An administrator is configuring network security for a two-tier application in an Azure subscription. The subscription contains a virtual network named `VNet1` with two subnets: `Subnet-Web` (address space ) and `Subnet-DB` (address space ).
A virtual machine named `VM-Web1` is deployed in `Subnet-Web` and associated with an Application Security Group named `ASG-Web`.
A virtual machine named `VM-DB1` is deployed in `Subnet-DB` and associated with an Application Security Group named `ASG-DB`.
A Network Security Group named `NSG-Web` is associated with `Subnet-Web` and contains the following custom inbound rule:
- Name: `DenyInternetInbound`, Priority: , Source: `Internet`, Destination: `Any`, Port: `*`, Protocol: `Any`, Action: Deny
A Network Security Group named `NSG-DB` is associated with `Subnet-DB` and contains the following custom inbound rule:
- Name: `DenyVNetInbound`, Priority: , Source: `VirtualNetwork`, Destination: `Any`, Port: `*`, Protocol: `Any`, Action: Deny
No Network Security Groups are associated with the virtual machine network interfaces.
You must configure the NSGs to meet the following requirements:
1. Allow HTTPS traffic (port ) from the Internet to `VM-Web1` only.
2. Allow PostgreSQL traffic (port ) from `VM-Web1` to `VM-DB1` only.
3. Minimize the number of rules and adhere to the principle of least privilege.
Which two security rules should you create to meet the requirements?
- In `NSG-Web`, create an inbound rule with Priority , Source: `Internet`, Destination: `ASG-Web`, Port: , Action: Allow.Answer
- In `NSG-DB`, create an inbound rule with Priority , Source: `ASG-Web`, Destination: `ASG-DB`, Port: , Action: Allow.Answer
- CIn `NSG-Web`, create an inbound rule with Priority , Source: `Internet`, Destination: `ASG-Web`, Port: , Action: Allow.
- DIn `NSG-DB`, create an inbound rule with Priority , Source: `ASG-Web`, Destination: `ASG-DB`, Port: , Action: Allow.