Subnet1 is associated to VNet1 and NIC1 connects VM1 to Subnet1. You need to apply ASG1 to VM1. What action will accomplish this?
Choose an answer
Tap an option to check your answer.
Correct answer: Associate NIC1 to ASG1.
Why this is the answer
To apply an Application Security Group (ASG) to a virtual machine (VM), you must associate the ASG directly with the network interface (NIC) attached to that VM. This is because ASGs filter network traffic at the NIC level, allowing you to define granular network security policies based on application workloads. Modifying the properties of ASG1 would change its rules or tags, but not apply it to any specific resource. Modifying the properties of NSG1 (Network Security Group) is incorrect because NSGs and ASGs are distinct security constructs. While NSGs filter traffic based on IP addresses and ports, ASGs filter based on application workloads and are applied to NICs or subnets.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed