QuestionQ272

VerifiedImplement and manage virtual networking

You have a virtual network named VNET1 that contains the subnets shown in the following table:

Question Image

You have Azure virtual machines that have the network configurations shown in the following table:

Question Image

For NSG1, you create the inbound security rule shown in the following table:

Question Image

For NSG2, you create the inbound security rule shown in the following table:

Question Image

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Yes or No
StatementsYesNo
VM2 can connect to the TCP port 1433 services on VM1.
VM1 can connect to the TCP port 1433 services on VM2.
VM2 can connect to the TCP port 1433 services on VM3.
Explanation

Inbound access to VM1 is controlled by both the subnet NSG on Subnet1 and the NIC NSG on VM1. Although NSG1 allows TCP 1433 from 10.10.2.0/24 to Subnet1, NSG2 explicitly denies TCP 1433 from 10.10.2.5 to 10.10.1.5, so VM2 cannot reach VM1 on that port. VM2 and VM3 are in Subnet2, which has no NSG, and neither VM has a NIC NSG, so default virtual-network inbound allow behavior permits traffic between VMs in the VNet. Therefore VM1 can reach VM2 on TCP 1433, and VM2 can reach VM3 on TCP 1433.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!