You manage an Azure environment containing a virtual network named `VNet-Prod`. The virtual network has a subnet named `Subnet-App` ().
`Subnet-App` is associated with a Network Security Group (NSG) named `NSG-Subnet`.
A virtual machine named `VM-App1` is deployed in `Subnet-App` and has a network interface named `NIC-App1`. `NIC-App1` is associated with an NSG named `NSG-NIC`.
An Application Security Group (ASG) named `ASG-App` is created, and `NIC-App1` is associated with `ASG-App`.
`NSG-Subnet` contains the following inbound security rules:
* `Rule-Sub1`: Priority , Source: `Internet`, Destination: `ASG-App`, Destination Port: , Protocol: `TCP`, Action: `Allow`
* `Rule-Sub2`: Priority , Source: `Any`, Destination: `Any`, Destination Port: `Any`, Protocol: `Any`, Action: `Deny`
`NSG-NIC` contains the following inbound security rules:
* `Rule-Nic1`: Priority , Source: `203.0.113.50/32`, Destination: `Any`, Destination Port: , Protocol: `TCP`, Action: `Deny`
* `Rule-Nic2`: Priority , Source: `Internet`, Destination: `Any`, Destination Port: , Protocol: `TCP`, Action: `Allow`
A user attempts to establish an HTTPS connection from a client device on the internet with the public IP address to `VM-App1`.
What is the status of the connection attempt, and why?
- The connection is blocked at the network interface level because the rule with priority 110 has precedence over the rule with priority 200, resulting in a deny action.Answer
- BThe connection is successful because the subnet-level NSG allows the traffic through the rule with priority 120, and the NIC-level NSG allows it through the rule with priority 200 since both apply to the Internet source.
- CThe connection is blocked at the subnet level because the rule with priority 120 uses an Application Security Group as the destination, which is not supported in subnet-associated NSGs.
- DThe connection is blocked at the network interface level because the rule with priority 200 is ignored, as the Application Security Group is not specified as a destination in the NIC-level NSG rules.