mediummultiple choiceObjective-mapped

A subnet has a route table with these user-defined routes: 172.16.0.0/16 -> Virtual appliance 10.1.1.4 and 172.16.1.0/24 -> Internet. A VM in the subnet sends traffic to 172.16.1.20. Which next hop is used?

Question 1mediummultiple choice
Full question →

A subnet has a route table with these user-defined routes: 172.16.0.0/16 -> Virtual appliance 10.1.1.4 and 172.16.1.0/24 -> Internet. A VM in the subnet sends traffic to 172.16.1.20. Which next hop is used?

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

Virtual appliance 10.1.1.4, because the broader route was added first.

Route addition order does not matter when Azure selects the next hop for a destination.

B

Best answer

Internet, because the most specific route prefix always wins.

Azure chooses the longest matching prefix. The /24 route is more specific than the /16 route.

C

Distractor review

Virtual network gateway, because all traffic to private IP addresses uses the gateway by default.

A VPN gateway is not selected unless a matching route points to it or system routing requires it.

D

Distractor review

No next hop, because conflicting user-defined routes disable routing for that destination.

Conflicting routes are not disabled; Azure still uses the most specific valid route.

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: Internet, because the most specific route prefix always wins. — Azure routing uses the longest prefix match first. Both routes match 172.16.1.20, but 172.16.1.0/24 is more specific than 172.16.0.0/16, so the Internet next hop is selected. This behavior is independent of the order the routes were created. In Azure, route specificity determines the outcome before other less specific routes are considered. Why others are wrong: The broader route does not win simply because it was created first. A virtual network gateway is only used when a route points to it or a system route selects it. Azure does not stop routing because two routes overlap; it evaluates them and picks the most specific match.

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.