An administrator is managing an Azure subscription with a virtual network named `VNet1`. The virtual network contains two subnets: `Subnet-Web` () and `Subnet-DB` ().
`Subnet-Web` is associated with a Network Security Group (NSG) named `NSG-Subnet-Web`.
`Subnet-DB` is associated with an NSG named `NSG-Subnet-DB`.
Two virtual machines are deployed in `Subnet-Web`:
- `VM-Web1` (), whose network interface is associated with an Application Security Group (ASG) named `ASG-Web`.
- `VM-Web2` (), whose network interface has no ASG association.
One virtual machine is deployed in `Subnet-DB`:
- `VM-DB1` (), whose network interface is associated with an ASG named `ASG-Database` and an NSG named `NSG-NIC-DB`.
The Network Security Groups have the following security rules configured:
NSG-Subnet-Web (Outbound Rules):
- Priority 100: Port TCP 1433, Source: `*`, Destination: `ASG-Database`, Action: Allow
NSG-Subnet-DB (Inbound Rules):
- Priority 110: Port TCP 1433, Source: `ASG-Web`, Destination: `*`, Action: Allow
- Priority 120: Port TCP 1433, Source: `10.200.1.0/24`, Destination: `*`, Action: Deny
NSG-NIC-DB (Inbound Rules):
- Priority 130: Port TCP 1433, Source: `10.200.1.0/24`, Destination: `*`, Action: Allow
- Priority 140: Port TCP 1433, Source: `ASG-Web`, Destination: `*`, Action: Deny
Default rules apply to all NSGs.
An application on `VM-Web1` and an application on `VM-Web2` both attempt to establish a connection to a database running on `VM-DB1` over TCP port 1433.
Which statement correctly describes the outcome of these connection attempts?
- The connection from VM-Web1 is allowed, and the connection from VM-Web2 is blocked by the subnet-level NSG (NSG-Subnet-DB).Cevap
- BBoth connection attempts are blocked. The connection from VM-Web1 is blocked by the NIC-level NSG (NSG-NIC-DB), and the connection from VM-Web2 is blocked by the subnet-level NSG (NSG-Subnet-DB).
- CBoth connection attempts are allowed because the NIC-level NSG (NSG-NIC-DB) allows all inbound traffic on port 1433 from the 10.200.1.0/24 subnet.
- DThe connection from VM-Web1 is blocked by the NIC-level NSG (NSG-NIC-DB), and the connection from VM-Web2 is allowed.