Question 891 of 1,170
Implement and Manage Virtual NetworkinghardMultiple ChoiceObjective-mapped

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

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)

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.

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.

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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More AZ-104 practice questions

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

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.