hardmultiple choiceObjective-mapped

A subnet has a user-defined route for 0.0.0.0/0 that sends traffic to a network virtual appliance at 10.1.0.4. The same virtual network is peered to a hub VNet that has a system route for 10.50.16.0/20. A VM in the subnet sends traffic to 10.50.18.25. Which next hop will Azure use?

Question 1hardmultiple choice
Full question →

A subnet has a user-defined route for 0.0.0.0/0 that sends traffic to a network virtual appliance at 10.1.0.4. The same virtual network is peered to a hub VNet that has a system route for 10.50.16.0/20. A VM in the subnet sends traffic to 10.50.18.25. Which next hop will Azure use?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Internet, because the default route overrides more specific routes.

A default route is the least specific route available. It does not override a more specific route for the destination address.

B

Distractor review

Network virtual appliance at 10.1.0.4, because user-defined routes always win over system routes.

User-defined routes do not automatically win when another route is more specific. Azure still applies longest-prefix matching before choosing the winning route.

C

Best answer

Virtual network peering, because the /20 peering route is more specific than 0.0.0.0/0.

Azure first selects the most specific matching prefix. The destination 10.50.18.25 falls inside the /20 peering route, which is more specific than the 0.0.0.0/0 forced-tunneling route. Because the longest prefix wins, traffic is sent over the peering path rather than to the NVA or the internet.

D

Distractor review

None, because Azure disables routing when a subnet has both peering and a UDR.

Azure does not disable routing in this situation. It evaluates available routes and applies the route selection rules normally.

Common exam trap

Common exam trap: usable hosts are not the same as total addresses

Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.

Technical deep dive

How to think about this question

Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.

KKey Concepts to Remember

  • CIDR notation defines the prefix length.
  • Block size helps identify subnet boundaries.
  • Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
  • The required host count determines the smallest suitable subnet.

TExam Day Tips

  • Write the block size before choosing the subnet.
  • Check whether the question asks for hosts, subnets or a specific address range.
  • Do not confuse /24, /25, /26 and /27 host counts.

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.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

CIDR notation defines the prefix length.

What is the correct answer to this question?

The correct answer is: Virtual network peering, because the /20 peering route is more specific than 0.0.0.0/0. — Azure route selection starts with longest-prefix match. Although the subnet has a default UDR that sends all traffic to an NVA, the peering route to 10.50.16.0/20 is more specific and therefore wins for destination 10.50.18.25. User-defined routes can override system routes when prefixes are equal, but they do not override a more specific route. Why others are wrong: The internet is not chosen because the default route is less specific than the peering route. The NVA is not chosen because the /20 route is more specific than 0.0.0.0/0. Azure does not disable routing due to the presence of both peering and a UDR; it simply applies the standard route-selection logic.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.