An organization deploys a two-tier application within a single Azure Virtual Network named VNet-Prod. The virtual network contains two subnets: Subnet-Frontend and Subnet-Backend.
The following resources are configured:
* VM-App is deployed in Subnet-Frontend and its network interface is associated with an Application Security Group (ASG) named ASG-App.
* VM-Data is deployed in Subnet-Backend and its network interface is associated with an ASG named ASG-Data.
* NSG-Subnet-Front is associated with Subnet-Frontend and contains the following outbound security rule:
* Priority: 150, Source: ASG-App, Destination: ASG-Data, Port: 5432, Protocol: TCP, Action: Allow
* NSG-Nic-Data is associated with the network interface of VM-Data and contains the following inbound security rules:
* Rule A: Priority 110, Source: ASG-App, Destination: Any, Port: 5432, Protocol: TCP, Action: Deny
* Rule B: Priority 120, Source: Any, Destination: ASG-Data, Port: 5432, Protocol: TCP, Action: Allow
No other custom network security group (NSG) rules are configured. Subnet-Backend has no associated NSG, and VM-App has no network interface-level NSG.
VM-App attempts to establish a TCP connection to VM-Data on port 5432.
What is the outcome of this connection attempt?
- The connection is denied because the inbound Rule A in NSG-Nic-Data has a lower priority number, representing higher precedence, and matches the traffic from VM-App.Cevap
- BThe connection is allowed because the inbound Rule B in NSG-Nic-Data has a higher priority number and specifically targets ASG-Data, overriding the more general Rule A.
- CThe connection is allowed because the outbound rule in NSG-Subnet-Front has a higher priority value than Rule A in NSG-Nic-Data, which overrides the inbound block.
- DThe connection is denied because the default outbound security rules in NSG-Subnet-Front block all cross-subnet traffic within the same virtual network by default.