mediummultiple choiceObjective-mapped

A subnet has a user-defined route for 0.0.0.0/0 that sends all outbound traffic to a virtual appliance. Traffic to 10.20.4.12 must instead go directly to an Azure VPN gateway. What should you configure?

Question 1mediummultiple choice
Full question →

A subnet has a user-defined route for 0.0.0.0/0 that sends all outbound traffic to a virtual appliance. Traffic to 10.20.4.12 must instead go directly to an Azure VPN gateway. What should you configure?

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

Add a network security group rule that allows traffic to 10.20.4.12.

NSGs filter traffic, but they do not choose the next hop for routing.

B

Best answer

Add a more specific UDR for 10.20.4.0/24 that uses the virtual network gateway next hop.

Azure uses longest-prefix match, so the more specific route overrides the broader 0.0.0.0/0 entry.

C

Distractor review

Increase the priority of the 0.0.0.0/0 route so it is preferred less often.

Route tables do not use priority numbers; prefix length and matching determine the chosen route.

D

Distractor review

Remove the VPN gateway association from the virtual network.

Removing the gateway would break the desired path instead of directing only this destination correctly.

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 more specific UDR for 10.20.4.0/24 that uses the virtual network gateway next hop. — User-defined routes control the next hop, and Azure selects the most specific matching route using longest-prefix match. Because 0.0.0.0/0 catches all outbound traffic, a destination-specific route for 10.20.4.0/24 will override it for addresses in that range. This lets only the required network use the VPN gateway while the rest of the subnet still follows the default virtual appliance route. Why others are wrong: NSG rules cannot influence routing decisions; they only allow or deny traffic. Route tables do not have a priority setting like NSGs, so increasing a priority number has no effect. Removing the VPN gateway association would not solve the routing problem and would likely eliminate the intended hybrid path entirely.

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.