nerdexam
Microsoft

AZ-104 · Question #762

You have an Azure subscription that contains two peered virtual networks named VNet1 and VNet2. VNet1 has a VPN gateway that uses static routing, The on-premises network has a VPN connection that…

The correct answer is B. service chaining and user-defined routes (UDRs). To allow on-premises users to access a VM in VNet2 via VNet1's VPN gateway while minimizing costs, enable gateway transit on the VNet peering and use UDRs in VNet2.

Submitted by haru.x· Mar 4, 2026Configure and manage virtual networking

Question

You have an Azure subscription that contains two peered virtual networks named VNet1 and VNet2. VNet1 has a VPN gateway that uses static routing, The on-premises network has a VPN connection that uses the VPN gateway of VNet1. You need to configure access for users on the on-premises network to connect to a virtual machine on VNet2. The solution must minimize costs. Which type of connectivity should you use?

Options

  • AAzure Firewall with a private IP address
  • Bservice chaining and user-defined routes (UDRs)
  • CAzure Application Gateway
  • DExpressRoute circuits to VNet2

How the community answered

(31 responses)
  • A
    23% (7)
  • B
    58% (18)
  • C
    6% (2)
  • D
    13% (4)

Why each option

To allow on-premises users to access a VM in VNet2 via VNet1's VPN gateway while minimizing costs, enable gateway transit on the VNet peering and use UDRs in VNet2.

AAzure Firewall with a private IP address

Azure Firewall would incur significant additional costs and might be an unnecessary overhead for simple routing needs.

Bservice chaining and user-defined routes (UDRs)Correct

To extend on-premises connectivity to a peered virtual network (VNet2) through VNet1's existing VPN gateway, you must enable 'Gateway transit' on the VNet peering connection from VNet1 to VNet2. Additionally, User-Defined Routes (UDRs) in VNet2 should be configured to direct traffic destined for the on-premises network back through VNet1's gateway, leveraging existing infrastructure and minimizing costs.

CAzure Application Gateway

Azure Application Gateway is a Layer 7 load balancer and web application firewall, not a routing solution for on-premises to peered VNet traffic, and would add substantial cost.

DExpressRoute circuits to VNet2

Deploying ExpressRoute circuits to VNet2 would be a costly and complex solution, requiring a new ExpressRoute setup, which violates the 'minimize costs' requirement.

Concept tested: VNet peering gateway transit and UDRs

Source: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-peering#gateway-transit

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice