Courseiva
Implement and Manage Virtual NetworkingmediumMultiple ChoiceObjective-mapped

AZ-104 Implement and Manage Virtual Networking Practice Question

A subnet uses a route table with gateway route propagation disabled so internet-bound traffic can be forced through a network virtual appliance. After the change, VMs in the subnet can no longer reach servers in the on-premises network 172.16.0.0/16 over the VPN gateway. What should the administrator add to the route table?

⚠ Common exam trap

A common mix-up: candidates confuse routing (UDR) with filtering (NSG) or connectivity methods (service endpoints), assuming an NSG rule or service endpoint can fix a routing issue, when only a user-defined route with the correct next hop type can restore traffic flow to the on-premises network.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

A user-defined route for 172.16.0.0/16 with next hop type Virtual network gateway.

When gateway route propagation is disabled on a route table, the subnet no longer receives the default system routes that include the VPN gateway route for on-premises networks. To restore connectivity to 172.16.0.0/16, you must add a user-defined route (UDR) with next hop type 'Virtual network gateway', which explicitly directs traffic for that prefix through the VPN gateway. This overrides the missing propagated route and forces the traffic to the on-premises network correctly.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • A user-defined route for 172.16.0.0/16 with next hop type Virtual network gateway.

    Why this is correct

    When gateway route propagation is disabled, the subnet no longer learns on-premises routes automatically from the VPN gateway. Adding a specific route for the on-premises prefix with next hop Virtual network gateway restores reachability to that network while keeping the forced-tunneling design for other traffic.

  • A user-defined route for 172.16.0.0/16 with next hop type Internet.

    Why it's wrong here

    A user-defined route with next hop type Internet for 172.16.0.0/16 would force all traffic destined for the on-premises network to be sent to the Azure Internet edge, which is not a path to a private VPN tunnel. The virtual network gateway is reachable only via the virtual network's infrastructure, not through an Internet hop, so this route would misdirect the traffic and cause it to be dropped because Azure discards traffic sent to the Internet for private IP ranges. This makes the on-premises range unreachable and is the opposite of the intended hybrid connectivity.

    When this WOULD be correct

    This option would be correct if the question asked how to force internet-bound traffic from the subnet through a network virtual appliance, or if the on-premises network was reachable via the internet (e.g., using a public IP).

  • An NSG allow rule for TCP 172.16.0.0/16.

    Why it's wrong here

    An NSG is a stateful firewall that filters traffic by IP address, protocol, and port; it does not participate in route selection or modify the subnet's effective route table. In this scenario, the problem is that the subnet no longer learns the 172.16.0.0/16 route from the VPN gateway because gateway propagation is disabled. Even if an NSG allow rule permitted outbound TCP to that prefix, the subnet still has no next hop for it, so packets would be dropped or sent to the default route rather than to the virtual network gateway.

    When this WOULD be correct

    An NSG allow rule for 172.16.0.0/16 would be correct if the question described that VMs cannot reach on-premises servers due to an NSG denying the traffic, and the solution required allowing inbound or outbound traffic on a specific port (e.g., TCP 3389 for RDP).

  • A service endpoint for the on-premises network range.

    Why it's wrong here

    Service endpoints are only available for Microsoft Azure services, such as Azure Storage or Azure SQL Database, and they add routes to the public IP ranges of those services using the Microsoft backbone. You cannot configure a service endpoint for an arbitrary private IP prefix like 172.16.0.0/16, nor would it create a route to a VPN gateway or on-premises network. Even if you could, service endpoints do not affect traffic destined for external private networks, so they cannot replace the missing gateway route.

    When this WOULD be correct

    A service endpoint would be correct if the question asked how to ensure that traffic from a subnet to an Azure service (e.g., Azure Storage) stays within the Microsoft backbone and does not traverse the internet, while also restricting access to that service from only that subnet.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.

A user-defined route for 172.16.0.0/16 with next hop type Virtual network gateway.Correct answer

Why this is correct

When gateway route propagation is disabled, the subnet no longer learns on-premises routes automatically from the VPN gateway. Adding a specific route for the on-premises prefix with next hop Virtual network gateway restores reachability to that network while keeping the forced-tunneling design for other traffic.

A user-defined route for 172.16.0.0/16 with next hop type Internet.Wrong answer — click to see why

Why this is wrong here

The next hop type 'Internet' would route traffic destined for 172.16.0.0/16 to the internet, not to the on-premises network via the VPN gateway, breaking connectivity.

★ When this WOULD be the correct answer

This option would be correct if the question asked how to force internet-bound traffic from the subnet through a network virtual appliance, or if the on-premises network was reachable via the internet (e.g., using a public IP).

Why candidates choose this

Candidates may mistakenly think that because the route table has gateway route propagation disabled, they need to explicitly route all traffic, including on-premises traffic, to the internet as a default.

An NSG allow rule for TCP 172.16.0.0/16.Wrong answer — click to see why

Why this is wrong here

An NSG rule controls traffic at the network interface or subnet level based on ports and protocols, but it cannot route traffic to a VPN gateway. The issue is a missing route for 172.16.0.0/16, not a firewall rule.

★ When this WOULD be the correct answer

An NSG allow rule for 172.16.0.0/16 would be correct if the question described that VMs cannot reach on-premises servers due to an NSG denying the traffic, and the solution required allowing inbound or outbound traffic on a specific port (e.g., TCP 3389 for RDP).

Why candidates choose this

Candidates may confuse network security groups (NSGs) with routing, thinking that allowing traffic via NSG will fix connectivity, but NSGs do not provide routing paths.

A service endpoint for the on-premises network range.Wrong answer — click to see why

Why this is wrong here

Service endpoints are used to secure Azure service access to specific virtual networks, not to route traffic to on-premises networks. They do not affect routing to on-premises destinations like 172.16.0.0/16.

★ When this WOULD be the correct answer

A service endpoint would be correct if the question asked how to ensure that traffic from a subnet to an Azure service (e.g., Azure Storage) stays within the Microsoft backbone and does not traverse the internet, while also restricting access to that service from only that subnet.

Why candidates choose this

Candidates may confuse service endpoints with VPN or ExpressRoute connectivity, thinking they can extend network reach to on-premises, or they may believe service endpoints can replace route tables for hybrid connectivity.

Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

About these practice questions

One of 1,049 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.