You have an Azure subscription that contains a virtual network named `VNet1`. `VNet1` contains two subnets:
- `Subnet-Web` ()
- `Subnet-DB` ()
The following virtual machines are deployed in `VNet1`:
- `VM-Web1` is in `Subnet-Web` and its network interface is associated with an Application Security Group named `ASG-Web`.
- `VM-DB1` is in `Subnet-DB` and its network interface is associated with an Application Security Group named `ASG-DB`.
The following Network Security Groups (NSGs) are configured and associated:
- `NSG-Subnet` is associated with `Subnet-Web` and contains the following outbound security rule:
- Priority:
- Source: `*`
- Destination:
- Port: `*`
- Protocol: `Any`
- Action: `Deny`
- `NSG-NIC-DB` is associated with the network interface of `VM-DB1` and contains the following inbound security rule:
- Priority:
- Source:
- Destination: `*`
- Port: `*`
- Protocol: `Any`
- Action: `Deny`
All other NSG settings and rules are at their default values.
You need to allow SSH (TCP port ) and HTTPS (TCP port ) connections from `VM-Web1` to `VM-DB1`. The solution must follow the principle of least privilege.
Which two actions should you perform? (Select two.)
- In `NSG-Subnet`, add an outbound security rule with a priority of that allows TCP ports and from `ASG-Web` to `ASG-DB`.Answer
- In `NSG-NIC-DB`, add an inbound security rule with a priority of that allows TCP ports and from `ASG-Web` to `ASG-DB`.Answer
- CIn `NSG-Subnet`, add an outbound security rule with a priority of that allows TCP ports and from `ASG-Web` to `ASG-DB`.
- DIn `NSG-NIC-DB`, add an inbound security rule with a priority of that allows TCP ports and from `ASG-Web` to `ASG-DB`.
- EIn `NSG-Subnet`, add an inbound security rule with a priority of that allows TCP ports and from `ASG-Web` to `ASG-DB`.