You are managing an Azure environment with a single virtual network named `VNet1`. The virtual network contains two subnets: `Subnet-Web` and `Subnet-DB`.
The resources are configured as follows:
- A virtual machine named `VM-Web` is deployed in `Subnet-Web` and is associated with an Application Security Group named `ASG-Web`.
- A virtual machine named `VM-DB` is deployed in `Subnet-DB` and is associated with an Application Security Group named `ASG-DB`.
- A Network Security Group named `NSG-Subnet-DB` is associated with `Subnet-DB`.
- A Network Security Group named `NSG-NIC-DB` is associated with the network interface of `VM-DB`.
`NSG-Subnet-DB` contains the following inbound security rules:
| Priority | Source | Source Port | Destination | Destination Port | Protocol | Action |
|---|---|---|---|---|---|---|
| `ASG-Web` | `*` | `ASG-DB` | TCP | Allow | ||
| `VirtualNetwork` | `*` | `VirtualNetwork` | TCP | Deny |
`NSG-NIC-DB` contains the following inbound security rules:
| Priority | Source | Source Port | Destination | Destination Port | Protocol | Action |
|---|---|---|---|---|---|---|
| `VirtualNetwork` | `*` | `ASG-DB` | TCP | Deny | ||
| `ASG-Web` | `*` | `ASG-DB` | TCP | Allow |
`VM-Web` attempts to establish a database connection to `VM-DB` on TCP port .
What is the outcome of this connection attempt?
- The connection is blocked because the inbound rule with priority in `NSG-NIC-DB` matches and denies the traffic.Answer
- BThe connection is allowed because the inbound rule with priority in `NSG-Subnet-DB` allows the traffic, which takes precedence over network interface rules.
- CThe connection is allowed because the inbound rule with priority in `NSG-NIC-DB` specifically allows traffic from `ASG-Web` to `ASG-DB`.
- DThe connection is blocked because the inbound rule with priority in `NSG-Subnet-DB` denies the traffic.