AZ-104 Implement and Manage Virtual Networking Practice Question
A subnet has a NAT gateway attached, but outbound internet traffic from the VMs is still leaving through a network virtual appliance. The subnet's route table includes a user-defined route for 0.0.0.0/0 with the next hop set to Virtual appliance. The business wants internet traffic to use the NAT gateway while keeping any required specific routes to on-premises networks. What should the administrator do?
⚠ Common exam trap
The trap here is that candidates mistakenly think NAT gateways can coexist with a default UDR to a virtual appliance, or that disabling gateway propagation or adding more NAT gateways will override the UDR, when in fact the UDR's higher priority always wins for the 0.0.0.0/0 prefix.
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
✓
Remove the 0.0.0.0/0 user-defined route and keep only specific routes for private prefixes.
The user-defined route (UDR) for 0.0.0.0/0 with next hop Virtual appliance is overriding the NAT gateway's default route. NAT gateways require a default route (0.0.0.0/0) with next hop 'Internet' to direct outbound traffic through them. By removing the conflicting UDR and keeping only specific routes for on-premises prefixes, the subnet will use the NAT gateway for internet traffic while maintaining connectivity to on-premises networks via the remaining UDRs.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Keep the default route and add a second NAT gateway to the subnet.
Why it's wrong here
Azure does not allow multiple NAT gateways to be attached to the same subnet, so adding a second NAT gateway is not a valid configuration. Even if it were permitted, the existing 0.0.0.0/0 UDR pointing to a virtual appliance would still take precedence over the NAT gateway's system route, so outbound internet traffic would continue to bypass the NAT service. Removing or overriding that default route is the only way to restore NAT gateway operation.
When this WOULD be correct
In a scenario where a subnet already uses a NAT gateway for internet traffic but needs additional outbound capacity or redundancy, adding a second NAT gateway to the subnet (with proper routing) could distribute traffic. The question would not involve a conflicting UDR for 0.0.0.0/0.
- ✓
Remove the 0.0.0.0/0 user-defined route and keep only specific routes for private prefixes.
Why this is correct
A subnet-level 0.0.0.0/0 UDR to a virtual appliance overrides the system route that would otherwise let the NAT gateway handle internet-bound traffic. Removing that default route restores normal outbound internet handling through the NAT gateway, while more specific routes for on-premises or private destinations can remain in place. This preserves both functionality and control.
- ✗
Disable network security groups on the subnet so the NAT gateway becomes active.
Why it's wrong here
Network security groups (NSGs) filter traffic based on security rules at layers 3 and 4, but they do not participate in route selection or next-hop determination. A NAT gateway becomes active only when the effective route for 0.0.0.0/0 points to the NAT service; NSG settings have no effect on that system route or its precedence over a UDR. Disabling NSGs would remove a critical security boundary without resolving the conflicting default route, so outbound internet traffic would still be sent to the virtual appliance instead of the NAT gateway.
When this WOULD be correct
If a subnet has a NAT gateway but outbound traffic is blocked by NSG rules (e.g., default deny outbound), disabling NSGs would allow the NAT gateway to route traffic outbound. This would be correct when the issue is NSG filtering, not routing.
- ✗
Set gateway route propagation to Disabled so the NAT gateway is preferred.
Why it's wrong here
Gateway route propagation controls whether BGP-learned routes from a virtual network gateway are added to the subnet's effective route table; it does not influence the priority of user-defined routes. Disabling propagation only prevents dynamic on-premises or regional routes from being injected, leaving the 0.0.0.0/0 UDR to the virtual appliance untouched and still highest-priority. Since a NAT gateway's default route is a system route with lower precedence than any UDR, disabling propagation cannot make the NAT gateway the preferred next hop for internet-bound traffic.
When this WOULD be correct
In a scenario where a subnet has forced tunneling enabled (e.g., via VPN gateway) and you want to allow direct internet access from the subnet, you would disable gateway route propagation to prevent the forced tunneling route from overriding the NAT gateway's default route.
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.
✓Remove the 0.0.0.0/0 user-defined route and keep only specific routes for private prefixes.Correct answer▾
Why this is correct
A subnet-level 0.0.0.0/0 UDR to a virtual appliance overrides the system route that would otherwise let the NAT gateway handle internet-bound traffic. Removing that default route restores normal outbound internet handling through the NAT gateway, while more specific routes for on-premises or private destinations can remain in place. This preserves both functionality and control.
✗Keep the default route and add a second NAT gateway to the subnet.Wrong answer — click to see why▾
Why this is wrong here
Adding a second NAT gateway does not resolve the conflict; the 0.0.0.0/0 user-defined route with next hop Virtual appliance still overrides the NAT gateway for outbound internet traffic, because UDRs have higher priority than the default route to the NAT gateway.
★ When this WOULD be the correct answer
In a scenario where a subnet already uses a NAT gateway for internet traffic but needs additional outbound capacity or redundancy, adding a second NAT gateway to the subnet (with proper routing) could distribute traffic. The question would not involve a conflicting UDR for 0.0.0.0/0.
Why candidates choose this
Candidates may think that multiple NAT gateways can share the load or override the NVA, but they misunderstand that the UDR explicitly directs traffic to the NVA, and adding another NAT gateway does not change the route priority.
✗Disable network security groups on the subnet so the NAT gateway becomes active.Wrong answer — click to see why▾
Why this is wrong here
Disabling NSGs does not affect route selection; the NAT gateway is not used because the user-defined route for 0.0.0.0/0 with next hop Virtual appliance overrides the default route to the NAT gateway.
★ When this WOULD be the correct answer
If a subnet has a NAT gateway but outbound traffic is blocked by NSG rules (e.g., default deny outbound), disabling NSGs would allow the NAT gateway to route traffic outbound. This would be correct when the issue is NSG filtering, not routing.
Why candidates choose this
Candidates may mistakenly think NSGs can override routing decisions or that disabling them is a quick fix for connectivity issues, confusing security filtering with route preference.
✗Set gateway route propagation to Disabled so the NAT gateway is preferred.Wrong answer — click to see why▾
Why this is wrong here
Disabling gateway route propagation does not affect the priority of a NAT gateway over a user-defined route (UDR). The 0.0.0.0/0 UDR with next hop Virtual Appliance still has higher priority than the NAT gateway's default route, so traffic continues to use the NVA.
★ When this WOULD be the correct answer
In a scenario where a subnet has forced tunneling enabled (e.g., via VPN gateway) and you want to allow direct internet access from the subnet, you would disable gateway route propagation to prevent the forced tunneling route from overriding the NAT gateway's default route.
Why candidates choose this
Candidates may confuse gateway route propagation with route priority, thinking that disabling propagation removes competing routes and allows the NAT gateway to take over, but they overlook that the explicit UDR still exists and has higher precedence.
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
Go deeper
Related to this question
Learn chapter
VPN Gateway and ExpressRoute
Key term
Route table
A route table is a set of rules, called routes, that determine where network traffic from a subnet or virtual network is directed.
Key term
UDR
UDR is a user-defined routing rule that controls how network traffic moves between subnets or to external destinations in a cloud or on-premises environment.
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 →
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.