An administrator configures network security for a virtual machine named `VM1` in an Azure subscription. `VM1` is connected to a subnet named `SubnetA`. The network interface of `VM1` is associated with an Application Security Group (ASG) named `ASG-Web` and has an associated Network Security Group (NSG) named `NSG-NIC`. `SubnetA` has an associated NSG named `NSG-Subnet`.
`NSG-Subnet` contains the following inbound security rules:
* Priority 100: Allow inbound TCP traffic on port 80 from Any to `ASG-Web`
* Priority 200: Deny inbound TCP traffic on port 80 from Any to Any
`NSG-NIC` contains the following inbound security rules:
* Priority 150: Deny inbound TCP traffic on port 80 from Any to Any
* Priority 250: Allow inbound TCP traffic on port 80 from Any to `ASG-Web`
A user attempts to connect to `VM1` on port 80 from the internet.
What is the result of the connection attempt?
- AThe connection is allowed because the rule with priority 100 in the subnet-level NSG allows the traffic, bypassing network interface-level checks.
- The connection is denied because the network interface-level NSG processes the deny rule with priority 150 before the allow rule with priority 250.Answer
- CThe connection is allowed because the rule with priority 250 in the network interface-level NSG specifically targets the Application Security Group (ASG) of the destination.
- DThe connection is denied because the subnet-level NSG processes the deny rule with priority 200 first, blocking the traffic before evaluating the network interface-level NSG.