An administrator manages an Azure subscription containing a virtual network named `VNet1` with a subnet named `Subnet1`.
`Subnet1` is associated with a Network Security Group (NSG) named `NSG-Subnet`. `NSG-Subnet` has the following inbound security rule:
- Priority:
- Source: `ASG-Source`
- Destination: `ASG-Dest`
- Port:
- Protocol: TCP
- Action: Deny
`Subnet1` contains two virtual machines:
- `VM1` has a network interface associated with the Application Security Group (ASG) named `ASG-Source`.
- `VM2` has a network interface associated with the ASG named `ASG-Dest` and a Network Security Group (NSG) named `NSG-NIC`.
`NSG-NIC` has the following inbound security rule:
- Priority:
- Source: *
- Destination: *
- Port:
- Protocol: TCP
- Action: Allow
All other custom NSG rules are deleted, and only default rules remain.
A user attempts to establish a TCP connection on port from `VM1` to `VM2`.
What is the outcome of the connection attempt?
- AThe connection is allowed because the network interface-level Network Security Group (NSG) is evaluated before the subnet-level Network Security Group (NSG) for inbound traffic.
- The connection is blocked because the subnet-level Network Security Group (NSG) is evaluated first and denies the traffic, and a network interface-level Allow rule cannot override a subnet-level Deny rule.Cevap
- CThe connection is allowed because the rule in the network interface-level Network Security Group (NSG) has a higher priority () than the rule in the subnet-level Network Security Group (NSG) ().
- DThe connection is blocked because Application Security Groups (ASGs) cannot be applied to rules in a Network Security Group (NSG) that is associated with a subnet.