mediummultiple choiceObjective-mapped

A VM in a subnet must send traffic to 10.50.0.0/16 through an on-premises VPN gateway, while all other destinations should use the Internet. Which route should be added to the subnet's route table?

Question 1mediummultiple choice
Full question →

A VM in a subnet must send traffic to 10.50.0.0/16 through an on-premises VPN gateway, while all other destinations should use the Internet. Which route should be added to the subnet's route table?

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

Destination 10.50.0.0/16 with next hop type Virtual network gateway.

This specific route overrides the default system route only for the on-premises prefix.

B

Distractor review

Destination 0.0.0.0/0 with next hop type Virtual network gateway.

A default route would send all traffic to the gateway, not only the target prefix.

C

Distractor review

Destination 10.50.0.0/16 with next hop type Service endpoint.

Service endpoints are for PaaS service access, not for routing to on-premises networks.

D

Distractor review

Destination 10.50.0.0/16 with next hop type Internet.

The Internet next hop cannot direct traffic into an on-premises VPN path.

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: Destination 10.50.0.0/16 with next hop type Virtual network gateway. — A user-defined route should be created for the specific on-premises prefix 10.50.0.0/16 with next hop type Virtual network gateway. Azure uses the most specific matching route, so that prefix will go to the VPN gateway while all other destinations continue to follow the default system route to the Internet. This approach gives precise control without forcing every packet through the gateway. Why others are wrong: A default route to the VPN gateway would send all traffic through the tunnel, which is not the stated requirement. Service endpoints do not forward traffic to on-premises networks. The Internet next hop is the opposite of what is needed for the corporate prefix. The key is to match only the on-premises CIDR and leave the rest of the traffic untouched.

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.