easymultiple choiceObjective-mapped

Exhibit

Subnet-Web configuration:
- NAT gateway: nat-web
- Route table association: rt-web
Route table rt-web:
- 0.0.0.0/0 -> Virtual appliance 10.1.0.4
- 10.1.0.0/16 -> Virtual network
Observed issue: Internet-bound traffic still exits through the virtual appliance.

Based on the exhibit, what should the administrator change so outbound internet traffic uses the NAT gateway?

Question 1easymultiple choice
Full question →

Based on the exhibit, what should the administrator change so outbound internet traffic uses the NAT gateway?

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

Detach the subnet from the NAT gateway.

Removing the NAT gateway would reduce outbound options, not direct traffic to the desired egress path.

B

Best answer

Remove the 0.0.0.0/0 user-defined route to the virtual appliance.

A user-defined default route overrides the subnet's normal internet egress behavior and sends traffic to the appliance instead. Removing that route lets the NAT gateway handle outbound connections from the subnet.

C

Distractor review

Change the route table source address to 10.1.0.4.

Route tables do not use a source address field in that way, and this does not alter outbound path selection.

D

Distractor review

Enable a service endpoint on the subnet.

Service endpoints are for access to supported Azure services, not for choosing outbound internet routing.

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 user-defined route to the virtual appliance. — The 0.0.0.0/0 user-defined route forces all internet-bound traffic to the virtual appliance, so the NAT gateway never becomes the active egress path. To use NAT gateway behavior, the administrator must remove or replace that default UDR. Once that route is gone, the subnet can use the NAT gateway for outbound internet traffic. Why others are wrong: Detaching the NAT gateway is the opposite of what is needed. There is no route-table source setting for this purpose, and service endpoints are unrelated to outbound internet routing. The default route is the real cause of the traffic path.

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.