mediummultiple choiceObjective-mapped

A subnet already has a user-defined default route (0.0.0.0/0) that sends all outbound traffic to a network virtual appliance. The administrator now needs traffic to the on-premises network 10.50.0.0/16 to use the VPN gateway instead of the appliance. What should be added to the route table?

Question 1mediummultiple choice
Full question →

A subnet already has a user-defined default route (0.0.0.0/0) that sends all outbound traffic to a network virtual appliance. The administrator now needs traffic to the on-premises network 10.50.0.0/16 to use the VPN gateway instead of the appliance. What should be added to the 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

Distractor review

Remove the default route so the system route to the VPN gateway is used

Removing the default route would affect all non-specific destinations and is not the targeted fix.

B

Best answer

Add a user-defined route for 10.50.0.0/16 with next hop type Virtual network gateway

A more specific prefix takes precedence over the broader default route. By adding a route for 10.50.0.0/16 that points to the virtual network gateway, traffic to the on-premises network follows the gateway while all other destinations can still follow the default route to the appliance.

C

Distractor review

Change the subnet address space to a smaller CIDR block

Subnet sizing does not control next-hop selection and would not change routing behavior.

D

Distractor review

Enable a service endpoint for the on-premises prefix

Service endpoints apply to Azure service access, not to routing traffic toward on-premises networks.

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: Add a user-defined route for 10.50.0.0/16 with next hop type Virtual network gateway — Azure chooses routes by longest prefix match, then by route source priority. A default route of 0.0.0.0/0 is broad, so a more specific 10.50.0.0/16 UDR will override it for that destination. Pointing the route to the virtual network gateway ensures on-premises traffic bypasses the NVA, while all other traffic still follows the forced-tunnel path if needed. Why others are wrong: Removing the default route would change behavior for every destination, not just on-premises traffic. Subnet resizing does not affect route selection. Service endpoints are for reaching supported Azure services securely and do not send traffic to an on-premises next hop. The key is a more specific UDR that matches the target prefix.

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.