An administrator configures virtual networking in an Azure subscription. The subscription contains a virtual network named VNet1 with two subnets named Subnet1 and Subnet2. Subnet1 is associated with a network security group (NSG) named NSG-Subnet1. Subnet2 is associated with an NSG named NSG-Subnet2.
A virtual machine named VM1 is deployed in Subnet1 and its network interface (NIC) is associated with an NSG named NSG-NIC1. VM1 is also associated with an Application Security Group (ASG) named ASG-AppServer.
A virtual machine named VM2 is deployed in Subnet2 and is associated with an ASG named ASG-Database.
NSG-NIC1 contains the following outbound security rules:
* Priority 150: Allow outbound TCP port 1433 from ASG-AppServer to ASG-Database.
* Priority 300: Deny outbound TCP port 1433 from Any to Any.
NSG-Subnet1 contains the following outbound security rules:
* Priority 120: Deny outbound TCP port 1433 from Any to Any.
* Priority 220: Allow outbound TCP port 1433 from ASG-AppServer to ASG-Database.
What is the outcome when VM1 attempts to initiate a connection to VM2 on TCP port 1433?
- The connection is blocked by the subnet-level NSG (NSG-Subnet1).Cevap
- BThe connection is allowed because the NIC-level NSG outbound rule has a lower priority number than the subnet-level NSG deny rule.
- CThe connection is blocked by the NIC-level NSG (NSG-NIC1).
- DThe connection is allowed because the subnet-level NSG allows traffic targeting the ASG-Database group at priority 220.