easymultiple choiceObjective-mapped

Exhibit

Effective routes for Subnet-Apps:
0.0.0.0/0 -> Virtual appliance 10.1.1.4
10.50.1.0/24 -> Internet
10.0.0.0/8 -> Virtual network
Observed destination: 10.50.1.20

Based on the exhibit, which next hop will Azure use for traffic from the VM to 10.50.1.20?

Question 1easymultiple choice
Full question →

Based on the exhibit, which next hop will Azure use for traffic from the VM to 10.50.1.20?

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 all traffic always follows the default route.

The default route is only used when no more specific route matches. A longer prefix takes precedence over 0.0.0.0/0.

B

Best answer

Internet, because the /24 route is more specific than the default route.

Azure uses longest-prefix match when selecting a route. The destination 10.50.1.20 falls within 10.50.1.0/24, which is more specific than the 0.0.0.0/0 default route. Therefore, the Internet next hop is chosen instead of the virtual appliance.

C

Distractor review

Virtual network, because private IP addresses always stay inside Azure.

Private destination addresses do not automatically stay in the virtual network when a more specific user-defined route exists.

D

Distractor review

No route is selected, so the packet is dropped before leaving the subnet.

A matching route does exist in the table, so Azure will not drop the packet for lack of routing information.

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 /24 route is more specific than the default route. — Azure route selection uses longest-prefix match. The exhibit includes a default route to a virtual appliance, but it also includes a more specific /24 route for 10.50.1.0/24 that points to Internet. Because 10.50.1.20 belongs to that more specific prefix, Azure uses the Internet next hop. This is a good example of how user-defined routes can override a broader default route when the prefix is more specific. Why others are wrong: The default route is not always used; it is a fallback. Private IP addresses can still follow a user-defined route to a specific next hop. A route exists for the destination, so the packet is not dropped at route lookup time.

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.