Question 276 of 1,170
Implement and Manage Virtual NetworkingmediumMultiple 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. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. 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.

Exhibit

Effective routes on NIC vm-app01:

Address prefix     Next hop type              Source
10.20.0.0/16       Virtual network            System
10.30.0.0/16       Virtual network gateway    BGP
0.0.0.0/0          Virtual appliance          User

The VM is in 10.20.0.0/16 and is connected to a VPN gateway that advertises 10.30.0.0/16.

Based on the exhibit, what next hop will the VM use when it sends traffic to 10.30.5.10?

Exhibit

Effective routes on NIC vm-app01:

Address prefix     Next hop type              Source
10.20.0.0/16       Virtual network            System
10.30.0.0/16       Virtual network gateway    BGP
0.0.0.0/0          Virtual appliance          User

The VM is in 10.20.0.0/16 and is connected to a VPN gateway that advertises 10.30.0.0/16.

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

Virtual network gateway

The VM's effective route table shows a route for 10.30.5.0/24 with a next hop type of 'Virtual network gateway'. Since 10.30.5.10 falls within this prefix, the VM will use the virtual network gateway as the next hop. This overrides the default virtual network (local) route because it is a more specific prefix match.

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 at the user-defined next hop

    Why it's wrong here

    The default route is less specific than the route for 10.30.0.0/16, so it does not win.

    When this WOULD be correct

    If the question described a scenario where a user-defined route (UDR) is configured for the destination 10.30.5.0/24 with next hop set to 'Virtual appliance', and the VM is in a subnet associated with that route, then the correct answer would be the virtual appliance.

  • Virtual network gateway

    Why this is correct

    The BGP route to 10.30.0.0/16 is the most specific matching route and therefore takes precedence.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Internet

    Why it's wrong here

    There is no matching route to Internet for this destination, and a more specific route already exists.

    When this WOULD be correct

    If the destination IP were a public IP address (e.g., 8.8.8.8) and no forced tunneling or specific route existed, the next hop would be 'Internet' as the default route for internet-bound traffic.

  • Virtual network

    Why it's wrong here

    VNet local applies only to destinations inside 10.20.0.0/16, not to 10.30.5.10.

    When this WOULD be correct

    If the question asked for the next hop when a VM sends traffic to another VM in the same virtual network (e.g., 10.30.5.10 is within the VNet address space), the correct answer would be 'Virtual network' because Azure automatically routes within a VNet.

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.

Virtual network gatewayCorrect answer

Why this is correct

The BGP route to 10.30.0.0/16 is the most specific matching route and therefore takes precedence.

Virtual appliance at the user-defined next hopWrong answer — click to see why

Why this is wrong here

The exhibit shows that the route for 10.30.5.0/24 has a next hop type of 'Virtual network gateway', not 'Virtual appliance'. A user-defined route with a virtual appliance next hop would override the gateway, but no such route is present.

★ When this WOULD be the correct answer

If the question described a scenario where a user-defined route (UDR) is configured for the destination 10.30.5.0/24 with next hop set to 'Virtual appliance', and the VM is in a subnet associated with that route, then the correct answer would be the virtual appliance.

Why candidates choose this

Candidates may confuse user-defined routes (UDR) with system routes, or assume that any traffic to an external IP must go through a virtual appliance for inspection, even when no UDR is configured.

InternetWrong answer — click to see why

Why this is wrong here

The destination IP 10.30.5.10 is within the virtual network's address space, so traffic is routed internally via the virtual network gateway, not sent to the internet.

★ When this WOULD be the correct answer

If the destination IP were a public IP address (e.g., 8.8.8.8) and no forced tunneling or specific route existed, the next hop would be 'Internet' as the default route for internet-bound traffic.

Why candidates choose this

Candidates may mistakenly assume that any IP not explicitly in a route table goes to the internet, ignoring that 10.30.5.10 is a private IP within the VNet.

Virtual networkWrong answer — click to see why

Why this is wrong here

The VM's traffic to 10.30.5.10 is destined for an on-premises network connected via VPN/ExpressRoute, and the route table shows the next hop as the virtual network gateway, not the virtual network.

★ When this WOULD be the correct answer

If the question asked for the next hop when a VM sends traffic to another VM in the same virtual network (e.g., 10.30.5.10 is within the VNet address space), the correct answer would be 'Virtual network' because Azure automatically routes within a VNet.

Why candidates choose this

Candidates may confuse the destination IP being within the VNet's address space (if they misread the exhibit) or think that internal traffic always uses the virtual network as the next hop, overlooking the explicit route pointing to the gateway.

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 traffic to an IP within the virtual network's address space (10.0.0.0/16) will always use the 'Virtual network' next hop, but a more specific route (e.g., 10.30.5.0/24) with a different next hop type overrides it, leading to an incorrect choice of Option D.

Detailed technical explanation

How to think about this question

Azure uses longest prefix match (LPM) routing, where the most specific route (highest subnet mask) wins. The virtual network gateway next hop type is used for site-to-site VPN or ExpressRoute connections, forwarding traffic to the on-premises network. If the gateway is not connected or is misconfigured, traffic to 10.30.5.10 would be dropped, as Azure does not fall back to less specific routes.

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.

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: Virtual network gateway — The VM's effective route table shows a route for 10.30.5.0/24 with a next hop type of 'Virtual network gateway'. Since 10.30.5.10 falls within this prefix, the VM will use the virtual network gateway as the next hop. This overrides the default virtual network (local) route because it is a more specific prefix match.

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.