An administrator is configuring network security for an Azure subscription containing a virtual network named `VNet1`. `VNet1` contains two subnets: `Subnet-Web` () and `Subnet-DB` ().
* `VM-Web1` is deployed in `Subnet-Web`, and its network interface is associated with an Application Security Group (ASG) named `ASG-Web`.
* `VM-DB1` is deployed in `Subnet-DB`, and its network interface is associated with an ASG named `ASG-DB`.
* A Network Security Group (NSG) named `NSG-Subnet` is associated with both `Subnet-Web` and `Subnet-DB`. `NSG-Subnet` contains a custom inbound rule named `Deny-CrossSubnet` with a priority of that denies all traffic between the two subnets.
* An NSG named `NSG-NIC` is associated only with the network interface of `VM-DB1`. `NSG-NIC` contains a custom inbound rule named `Deny-SQL` with a priority of that denies inbound TCP traffic on port from any source.
You need to allow `VM-Web1` to establish a database connection to `VM-DB1` on TCP port . The solution must follow the principle of least privilege.
Which two security rules should you add to achieve this goal? (Select TWO)
- In `NSG-Subnet`, add an inbound rule with a priority of that allows TCP traffic on port from `ASG-Web` to `ASG-DB`.Answer
- In `NSG-NIC`, add an inbound rule with a priority of that allows TCP traffic on port from `ASG-Web` to `ASG-DB`.Answer
- CIn `NSG-Subnet`, add an inbound rule with a priority of that allows TCP traffic on port from `ASG-Web` to `ASG-DB`.
- DIn `NSG-NIC`, add an inbound rule with a priority of that allows TCP traffic on port from `ASG-Web` to `ASG-DB`.
- EIn `NSG-Subnet`, add an outbound rule with a priority of that allows TCP traffic on port from `ASG-Web` to `ASG-DB`.
- FIn `NSG-NIC`, add an inbound rule with a priority of that allows TCP traffic on port from `ASG-DB` to `ASG-Web`.