- A
Virtual appliance 10.1.1.4, because the user-defined route controls all 10.x.x.x traffic.
Why wrong: The UDR is broader, but a more specific system route to the peered VNet can take precedence.
- B
Internet, because traffic not explicitly matched by the UDR leaves through the default route.
Why wrong: This destination is explicitly covered by a more specific peering route, so Internet is not chosen.
- C
None, because Azure cannot route to peered VNets when a UDR exists on the subnet.
Why wrong: UDRs and peering can coexist, and Azure still selects the most specific valid route.
- D
VNet peering, because the peered VNet prefix is more specific than the broader UDR.
Azure uses longest-prefix match first. The peered VNet has a /16 route to 10.12.4.25, while the UDR only matches 10.0.0.0/8. The /16 system route is more specific, so the packet follows VNet peering rather than the virtual appliance. This is a common design trap when administrators expect every UDR to override all other routes.
AZ-104 Implement and Manage Virtual Networking Practice Question
This AZ-104 practice question tests your understanding of implement and manage virtual networking. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A subnet has a user-defined route for 10.0.0.0/8 with next hop Virtual appliance 10.1.1.4. The VNet is peered with VNet-Shared, whose address space is 10.12.0.0/16. A VM in the subnet sends traffic to 10.12.4.25. Which next hop will Azure use?
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
VNet peering, because the peered VNet prefix is more specific than the broader UDR.
Azure uses the most specific matching route to determine next hop. The user-defined route (UDR) for 10.0.0.0/8 has a broader prefix length (/8) than the VNet peering route for 10.12.0.0/16 (/16). Since 10.12.4.25 falls within the peered VNet's address space, the more specific /16 route from VNet peering takes precedence over the UDR, directing traffic through the peering connection.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Virtual appliance 10.1.1.4, because the user-defined route controls all 10.x.x.x traffic.
Why it's wrong here
The UDR is broader, but a more specific system route to the peered VNet can take precedence.
When this WOULD be correct
If the UDR had a more specific prefix (e.g., 10.12.0.0/16) or if the traffic was destined to an IP within the UDR's range but not covered by a more specific route (e.g., 10.0.0.1), then the virtual appliance would be the next hop.
- ✗
Internet, because traffic not explicitly matched by the UDR leaves through the default route.
Why it's wrong here
This destination is explicitly covered by a more specific peering route, so Internet is not chosen.
When this WOULD be correct
If the subnet had no UDR and no VNet peering, and the VM sent traffic to an IP not matching any VNet or peering route, Azure would use the default system route (0.0.0.0/0, next hop Internet) for internet-bound traffic.
- ✗
None, because Azure cannot route to peered VNets when a UDR exists on the subnet.
Why it's wrong here
UDRs and peering can coexist, and Azure still selects the most specific valid route.
When this WOULD be correct
If the UDR had a more specific route (e.g., 10.12.0.0/16) with next hop Virtual appliance, and the VNet peering was not configured to use the remote gateway or had a conflicting route, then Azure would use the UDR and traffic would not reach the peered VNet directly.
- ✓
VNet peering, because the peered VNet prefix is more specific than the broader UDR.
Why this is correct
Azure uses longest-prefix match first. The peered VNet has a /16 route to 10.12.4.25, while the UDR only matches 10.0.0.0/8. The /16 system route is more specific, so the packet follows VNet peering rather than the virtual appliance. This is a common design trap when administrators expect every UDR to override all other routes.
Related concept
Read the scenario before looking for a memorised answer.
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.
✓VNet peering, because the peered VNet prefix is more specific than the broader UDR.Correct answer▾
Why this is correct
Azure uses longest-prefix match first. The peered VNet has a /16 route to 10.12.4.25, while the UDR only matches 10.0.0.0/8. The /16 system route is more specific, so the packet follows VNet peering rather than the virtual appliance. This is a common design trap when administrators expect every UDR to override all other routes.
✗Virtual appliance 10.1.1.4, because the user-defined route controls all 10.x.x.x traffic.Wrong answer — click to see why▾
Why this is wrong here
The UDR for 10.0.0.0/8 is less specific than the VNet peering route for 10.12.0.0/16, so Azure uses the most specific prefix match (peering), not the UDR.
★ When this WOULD be the correct answer
If the UDR had a more specific prefix (e.g., 10.12.0.0/16) or if the traffic was destined to an IP within the UDR's range but not covered by a more specific route (e.g., 10.0.0.1), then the virtual appliance would be the next hop.
Why candidates choose this
Candidates may incorrectly assume that a user-defined route overrides all other routes for its address prefix, ignoring Azure's longest prefix match rule and the existence of more specific routes from peering.
✗Internet, because traffic not explicitly matched by the UDR leaves through the default route.Wrong answer — click to see why▾
Why this is wrong here
Azure uses the most specific prefix match. The VNet peering route for 10.12.0.0/16 is more specific than the UDR's 10.0.0.0/8, so traffic to 10.12.4.25 uses VNet peering, not the Internet.
★ When this WOULD be the correct answer
If the subnet had no UDR and no VNet peering, and the VM sent traffic to an IP not matching any VNet or peering route, Azure would use the default system route (0.0.0.0/0, next hop Internet) for internet-bound traffic.
Why candidates choose this
Candidates may incorrectly assume that any traffic not explicitly matched by a UDR automatically goes to the Internet, forgetting that more specific routes (like VNet peering) take precedence over the default route.
✗None, because Azure cannot route to peered VNets when a UDR exists on the subnet.Wrong answer — click to see why▾
Why this is wrong here
Azure can route to peered VNets even when a UDR exists; the UDR's 10.0.0.0/8 prefix is less specific than the peered VNet's 10.12.0.0/16, so the more specific peering route is preferred.
★ When this WOULD be the correct answer
If the UDR had a more specific route (e.g., 10.12.0.0/16) with next hop Virtual appliance, and the VNet peering was not configured to use the remote gateway or had a conflicting route, then Azure would use the UDR and traffic would not reach the peered VNet directly.
Why candidates choose this
Candidates may mistakenly think that a UDR overrides all other routing, including peering, or that peering is disabled when any custom route exists on the subnet.
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?”
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates assume a user-defined route for a broad range (like 10.0.0.0/8) overrides all traffic to that range, forgetting that Azure's longest prefix match rule gives precedence to more specific routes, such as those from VNet peering.
Detailed technical explanation
How to think about this question
Azure routing uses the longest prefix match algorithm, where a /16 route always wins over a /8 for addresses within the /16 range. System routes for VNet peering are automatically added with a next hop type of 'VNet peering' and a priority that respects prefix length. In practice, this means you can have a UDR for a large address block (e.g., 10.0.0.0/8) while still allowing specific peered VNet ranges (e.g., 10.12.0.0/16) to bypass the virtual appliance, enabling selective traffic inspection.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.
Visual reference
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Implement and Manage Virtual Networking — study guide chapter
Learn the concepts, then practise the questions
- →
Implement and Manage Virtual Networking practice questions
Targeted practice on this topic area only
- →
All AZ-104 questions
1,170 questions across all exam domains
- →
AZ-104 study guide
Full concept coverage aligned to exam objectives
- →
AZ-104 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AZ-104 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Manage Azure Identities and Governance practice questions
Practise AZ-104 questions linked to Manage Azure Identities and Governance.
Implement and Manage Storage practice questions
Practise AZ-104 questions linked to Implement and Manage Storage.
Deploy and Manage Azure Compute practice questions
Practise AZ-104 questions linked to Deploy and Manage Azure Compute.
Implement and Manage Virtual Networking practice questions
Practise AZ-104 questions linked to Implement and Manage Virtual Networking.
Monitor and Maintain Azure Resources practice questions
Practise AZ-104 questions linked to Monitor and Maintain Azure Resources.
AZ-104 Azure RBAC practice questions
Practise AZ-104 questions linked to AZ-104 Azure RBAC.
AZ-104 storage account practice questions
Practise AZ-104 questions linked to AZ-104 storage account.
AZ-104 virtual network practice questions
Practise AZ-104 questions linked to AZ-104 virtual network.
AZ-104 NSG practice questions
Practise AZ-104 questions linked to AZ-104 NSG.
AZ-104 Azure Monitor practice questions
Practise AZ-104 questions linked to AZ-104 Azure Monitor.
AZ-104 backup practice questions
Practise AZ-104 questions linked to AZ-104 backup.
AZ-104 managed identity practice questions
Practise AZ-104 questions linked to AZ-104 managed identity.
Practice this exam
Start a free AZ-104 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AZ-104 question test?
Implement and Manage Virtual Networking — This question tests Implement and Manage Virtual Networking — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: VNet peering, because the peered VNet prefix is more specific than the broader UDR. — Azure uses the most specific matching route to determine next hop. The user-defined route (UDR) for 10.0.0.0/8 has a broader prefix length (/8) than the VNet peering route for 10.12.0.0/16 (/16). Since 10.12.4.25 falls within the peered VNet's address space, the more specific /16 route from VNet peering takes precedence over the UDR, directing traffic through the peering connection.
What should I do if I get this AZ-104 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More AZ-104 practice questions
- A storage automation service principal must upload, read, and delete blob data in one container by using Microsoft Entra…
- A subnet contains several application servers. You need to allow inbound TCP 3389 only from a management subnet named Su…
- A subscription admin wants to investigate who changed a resource and also review the platform-generated events for that…
- Based on the exhibit, which Azure feature should the administrator use to track this kind of platform-wide service issue…
- An administrator wants a script running on an Azure VM to create a resource in Azure without storing any passwords or cl…
- A PowerShell script runs on an Azure VM every night and uses Azure CLI commands to create tags and VM resources in anoth…
Last reviewed: Jun 11, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.