mediummultiple choiceObjective-mapped

A subnet has a user-defined route for 0.0.0.0/0 that sends all outbound traffic to a network virtual appliance for inspection. The business now attaches a NAT gateway to the subnet and wants internet-bound traffic to use the NAT gateway's public IP, while traffic to private corporate prefixes should still go to the appliance. What should the administrator change?

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 network virtual appliance for inspection. The business now attaches a NAT gateway to the subnet and wants internet-bound traffic to use the NAT gateway's public IP, while traffic to private corporate prefixes should still go to the appliance. What should the administrator change?

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

Leave the route table unchanged because the NAT gateway always overrides a default UDR.

A NAT gateway does not override a more specific or equal routing decision from a UDR.

B

Best answer

Remove the 0.0.0.0/0 UDR and add only the specific private-prefix routes that must go to the appliance.

A NAT gateway provides outbound internet translation when the subnet uses the default internet route. If a 0.0.0.0/0 UDR sends traffic to an appliance, that route wins and the NAT gateway is bypassed. To meet both requirements, keep specific routes for corporate/private prefixes toward the appliance and let internet-bound traffic follow the system route, where the NAT gateway can provide stable outbound IPs.

C

Distractor review

Disable source NAT on the network virtual appliance.

Changing SNAT behavior on the appliance does not change the Azure routing decision that sends traffic there first.

D

Distractor review

Create a private endpoint for internet traffic so outbound packets stay in Azure.

Private endpoints are for private access to PaaS services, not for general internet egress control.

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: Remove the 0.0.0.0/0 UDR and add only the specific private-prefix routes that must go to the appliance. — The key issue is that a default UDR to the network virtual appliance forces all outbound traffic away from the subnet's system route, so the NAT gateway never gets used for internet destinations. The right design is to remove the catch-all default route and instead route only the required private prefixes to the appliance. Then internet-bound traffic follows the normal internet path and can be SNATed by the NAT gateway with a stable public IP. Why others are wrong: A NAT gateway does not take precedence over a UDR that already directs traffic elsewhere. Disabling SNAT on the appliance may affect return paths, but it does not fix the subnet's next-hop choice. Private endpoints solve private service access, not internet egress. The routing table must be corrected first so the NAT gateway can actually be used for outbound internet traffic.

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.