hardmultiple choiceObjective-mapped

A spoke subnet has a user-defined route for 10.60.0.0/16 that sends traffic to a virtual appliance at 10.1.0.4. The same subnet also learns a propagated route for 10.60.0.0/16 from a VPN gateway. A VM in the subnet sends traffic to 10.60.7.25. Which next hop will Azure use?

Question 1hardmultiple choice
Full question →

A spoke subnet has a user-defined route for 10.60.0.0/16 that sends traffic to a virtual appliance at 10.1.0.4. The same subnet also learns a propagated route for 10.60.0.0/16 from a VPN gateway. A VM in the subnet sends traffic to 10.60.7.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

Best answer

The virtual appliance at 10.1.0.4

A user-defined route with the same prefix takes precedence over a propagated route for that destination.

B

Distractor review

The VPN gateway

A propagated route exists, but it loses to the same-prefix user-defined route in this case.

C

Distractor review

The Internet

Neither the destination nor the routing configuration sends this private prefix to the Internet.

D

Distractor review

No next hop is available

Azure still has a valid route; it simply selects the user-defined route over the propagated one.

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: The virtual appliance at 10.1.0.4 — When Azure evaluates routes, longest prefix match comes first, and if prefixes are equal, the user-defined route wins over a propagated route. Because both routes match 10.60.0.0/16, the UDR to the virtual appliance is selected for traffic to 10.60.7.25. This is a common source of confusion in forced-tunneling designs, where an explicit UDR can override gateway-learned paths. Why others are wrong: The VPN gateway route is valid, but it is lower priority than the identical UDR. Internet is not chosen because a more specific private route exists. No next hop is incorrect because Azure has two usable routes and chooses the one with higher precedence. This question tests precedence, not route availability.

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.