az-104 Practice Question 1747

Exam: az-104
Domain: Implement and manage virtual networking
Topic: Configure name resolution and routing
Difficulty: medium
A company named CloudTech wants to ensure that their Azure Virtual Machines can communicate with on-premises servers using a private connection. They have already established an ExpressRoute circuit. How should they proceed to enable this communication? (Choose one.)

Answer Options

A
Create a private DNS zone for the on-premises servers.
B
Configure a UDR with a 0.0.0.0/0 destination to the ExpressRoute gateway.
C
Set up a virtual network peering between the Azure VNet and the on-premises network.
D
Enable Azure Firewall on the Azure VMs.

Correct Answer

B: Configure a UDR with a 0.0.0.0/0 destination to the ExpressRoute gateway.

Explanation

The correct answer is B. By configuring a User Defined Route (UDR) with a 0.0.0.0/0 destination to the ExpressRoute gateway, you ensure that all traffic from the Azure VMs is routed through the ExpressRoute circuit to the on-premises servers. Option A is incorrect as it does not address the need for routing traffic through the ExpressRoute circuit. Option C is incorrect as it only sets up a private DNS zone, which would not route traffic through the ExpressRoute circuit. Option D is incorrect as it does not provide a way to route traffic from the Azure VMs to the on-premises servers.