An administrator is configuring network security for a multi-tier application in an Azure subscription. The environment contains a virtual network named `VNet1` () with two subnets: `Subnet-Web` () and `Subnet-App` ().
- `Subnet-Web` is associated with a Network Security Group (NSG) named `NSG-Subnet-Web`.
- `Subnet-Web` contains a virtual machine named `VM-Web`. The network interface of `VM-Web` is associated with an Application Security Group (ASG) named `ASG-Web-Servers` and an NSG named `NSG-NIC-Web`.
- `Subnet-App` is associated with an NSG named `NSG-Subnet-App` that contains only default rules.
- `Subnet-App` contains a virtual machine named `VM-App` (). The network interface of `VM-App` is associated with an ASG named `ASG-App-Servers`.
The inbound security rules for the NSGs are configured as follows:
| Priority | Source | Source Port | Destination | Destination Port | Protocol | Action |
|---|---|---|---|---|---|---|
| 110 | 10.1.2.0/24 | * | * | 443 | TCP | Allow |
| 140 | ASG-App-Servers | * | ASG-Web-Servers | 443 | TCP | Deny |
| Priority | Source | Source Port | Destination | Destination Port | Protocol | Action |
|---|---|---|---|---|---|---|
| 120 | ASG-App-Servers | * | ASG-Web-Servers | 443 | TCP | Deny |
| 150 | 10.1.2.0/24 | * | * | 443 | TCP | Allow |
A user attempts to establish an HTTPS connection from `VM-App` to `VM-Web`.
What is the result of the connection attempt?
- The connection is blocked at the network interface level (NSG-NIC-Web) because the rule with priority 120 takes precedence over the rule with priority 150.Answer
- BThe connection is blocked at the subnet level (NSG-Subnet-Web) because the rule with priority 140 takes precedence over the rule with priority 110.
- CThe connection is blocked at the subnet level (NSG-Subnet-Web) because security rules referencing Application Security Groups (ASGs) always override IP address range rules.
- DThe connection is allowed because the rule with priority 110 at the subnet level and the rule with priority 150 at the network interface level both allow the traffic.