An administrator is configuring network security for a two-tier application in an Azure subscription. The subscription contains a virtual network named with two subnets: and .
- is deployed in and has its network interface associated with an Application Security Group named .
- is deployed in and has its network interface associated with an Application Security Group named .
- A Network Security Group named is associated with .
- A Network Security Group named is associated with the network interface of .
You need to allow database traffic on TCP port from to while maintaining the principle of least privilege.
Which of the following actions should you perform? (Select two.)
- In NSG-Subnet, create an inbound security rule that allows TCP port 1433 traffic from source ASG-Web to destination ASG-Database.Cevap
- In NSG-NIC, create an inbound security rule that allows TCP port 1433 traffic from source ASG-Web to destination ASG-Database.Cevap
- CIn NSG-Subnet, create an outbound security rule that allows TCP port 1433 traffic from source ASG-Web to destination ASG-Database.
- DIn NSG-NIC, create an outbound security rule that allows TCP port 1433 traffic from source ASG-Web to destination ASG-Database.
- EAssociate ASG-Web with Subnet-Web.
Cevap
In NSG-Subnet, create an inbound security rule that allows TCP port 1433 traffic from source ASG-Web to destination ASG-Database; and in NSG-NIC, create an inbound security rule that allows TCP port 1433 traffic from source ASG-Web to destination ASG-Database.
For inbound traffic to a VM in a subnet that has a subnet-level NSG and whose NIC has a NIC-level NSG, the traffic is evaluated by the subnet NSG first, followed by the NIC NSG. To permit the connection, both NSGs must have an inbound rule allowing the traffic. Specifying ASG-Web as the source and ASG-Database as the destination on TCP port 1433 maintains the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Inbound traffic to an Azure virtual machine with NSGs associated at both the subnet and NIC levels must pass through rules in both NSGs. Using Application Security Groups allows grouping network interfaces to simplify security policies.