AZ-104 Implement and Manage Virtual Networking Practice Question
A subnet has a user-defined route for 0.0.0.0/0 that sends all outbound traffic to a network virtual appliance for inspection. The business now attaches a NAT gateway to the subnet and wants internet-bound traffic to use the NAT gateway's public IP, while traffic to private corporate prefixes should still go to the appliance. What should the administrator change?
⚠ Common exam trap
Candidates often assume a NAT gateway automatically overrides any existing default route, but in Azure, a user-defined route (UDR) for 0.0.0.0/0 takes precedence over the NAT gateway's implicit default, so the UDR must be removed or made less specific to allow the NAT gateway to handle internet-bound traffic.
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 UDR and add only the specific private-prefix routes that must go to the appliance.
The 0.0.0.0/0 user-defined route (UDR) sends all outbound traffic to the network virtual appliance (NVA). A NAT gateway provides outbound connectivity with a public IP, but it only takes effect when there is no explicit 0.0.0.0/0 route overriding it. By removing the 0.0.0.0/0 UDR and adding only specific private-prefix routes (e.g., 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) pointing to the NVA, internet-bound traffic will use the NAT gateway (via its default route), while corporate traffic is still forced through the appliance.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Leave the route table unchanged because the NAT gateway always overrides a default UDR.
Why it's wrong here
A NAT gateway does not take precedence over a user-defined route (UDR). When a subnet has a 0.0.0.0/0 UDR with a virtual appliance as the next hop, that UDR is more specific in routing priority than the system default and will steer all internet-destined traffic to the appliance, bypassing the NAT gateway entirely. To use the NAT gateway for outbound internet, the default route must be the system route (or the NAT gateway next hop), not an appliance UDR.
When this WOULD be correct
In a scenario where a NAT gateway is attached to a subnet and there is no UDR for 0.0.0.0/0, the NAT gateway automatically handles all outbound internet traffic without needing any route changes.
- ✓
Remove the 0.0.0.0/0 UDR and add only the specific private-prefix routes that must go to the appliance.
Why this is correct
A NAT gateway provides outbound internet translation when the subnet uses the default internet route. If a 0.0.0.0/0 UDR sends traffic to an appliance, that route wins and the NAT gateway is bypassed. To meet both requirements, keep specific routes for corporate/private prefixes toward the appliance and let internet-bound traffic follow the system route, where the NAT gateway can provide stable outbound IPs.
- ✗
Disable source NAT on the network virtual appliance.
Why it's wrong here
Disabling source NAT on the network virtual appliance (NVA) changes how the appliance translates packets, but it does not change Azure's routing decision to send traffic to the appliance in the first place. The 0.0.0.0/0 UDR remains in the route table, so all outbound traffic, including internet-bound traffic, continues to be directed to the NVA, and the NAT gateway never sees it. The fix is to adjust the route table, not the appliance's SNAT settings.
When this WOULD be correct
In a scenario where the NVA is used for outbound internet traffic but the organization wants to preserve the original source IP for logging or compliance, disabling SNAT on the NVA would be correct. For example, if the NVA must forward traffic without translating the source IP to its own.
- ✗
Create a private endpoint for internet traffic so outbound packets stay in Azure.
Why it's wrong here
Private endpoints are Azure resources that provide a private IP address within a virtual network for accessing a specific PaaS service (such as Azure SQL, Storage, etc.); they have no role in general internet egress control. Creating a private endpoint for 'internet traffic' is meaningless because the internet is not a PaaS service, and private endpoints cannot override routing for all traffic. The only way to redirect outbound internet traffic to the NAT gateway is to remove the 0.0.0.0/0 UDR for the appliance.
When this WOULD be correct
An organization wants to securely access an Azure Storage account from on-premises without traversing the public internet. Creating a private endpoint for the storage account would be correct to route traffic through the Microsoft backbone.
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 UDR and add only the specific private-prefix routes that must go to the appliance.Correct answer▾
Why this is correct
A NAT gateway provides outbound internet translation when the subnet uses the default internet route. If a 0.0.0.0/0 UDR sends traffic to an appliance, that route wins and the NAT gateway is bypassed. To meet both requirements, keep specific routes for corporate/private prefixes toward the appliance and let internet-bound traffic follow the system route, where the NAT gateway can provide stable outbound IPs.
✗Leave the route table unchanged because the NAT gateway always overrides a default UDR.Wrong answer — click to see why▾
Why this is wrong here
A NAT gateway does not override a user-defined route (UDR) for 0.0.0.0/0; the UDR takes precedence, so traffic would still go to the network virtual appliance instead of the NAT gateway.
★ When this WOULD be the correct answer
In a scenario where a NAT gateway is attached to a subnet and there is no UDR for 0.0.0.0/0, the NAT gateway automatically handles all outbound internet traffic without needing any route changes.
Why candidates choose this
Candidates may mistakenly believe that a NAT gateway automatically overrides any existing default route, similar to how Azure default routes work, but UDRs have higher priority.
✗Disable source NAT on the network virtual appliance.Wrong answer — click to see why▾
Why this is wrong here
Disabling source NAT (SNAT) on the NVA does not change routing behavior; the UDR for 0.0.0.0/0 still forces all internet traffic through the NVA, bypassing the NAT gateway. The NAT gateway requires a direct route to the internet, not via the NVA.
★ When this WOULD be the correct answer
In a scenario where the NVA is used for outbound internet traffic but the organization wants to preserve the original source IP for logging or compliance, disabling SNAT on the NVA would be correct. For example, if the NVA must forward traffic without translating the source IP to its own.
Why candidates choose this
Candidates may think that disabling SNAT on the NVA allows traffic to bypass it, but routing is controlled by UDRs, not NAT settings. They confuse network address translation with routing decisions.
✗Create a private endpoint for internet traffic so outbound packets stay in Azure.Wrong answer — click to see why▾
Why this is wrong here
Private endpoints are used for inbound access to Azure PaaS services over a private IP, not for outbound internet traffic. They do not provide NAT or routing for internet-bound traffic from a subnet.
★ When this WOULD be the correct answer
An organization wants to securely access an Azure Storage account from on-premises without traversing the public internet. Creating a private endpoint for the storage account would be correct to route traffic through the Microsoft backbone.
Why candidates choose this
Candidates may confuse private endpoints with NAT or think that 'private' means all traffic stays internal, overlooking that private endpoints are for inbound access to Azure services, not outbound internet 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
Go deeper
Related to this question
Learn chapter
VPN Gateway and ExpressRoute
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.
Key term
Subnet
A subnet is a logical subdivision of an IP network, created by partitioning a larger network address space using subnet masks.
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.