mediummulti selectObjective-mapped

A subnet already has a 0.0.0.0/0 route that sends traffic to a virtual appliance at 10.1.1.4. One server in that subnet must reach 172.16.1.0/24 directly through the Internet, while all other traffic should still use the appliance. Which two actions are required? Select two.

Question 1mediummulti select
Full question →

A subnet already has a 0.0.0.0/0 route that sends traffic to a virtual appliance at 10.1.1.4. One server in that subnet must reach 172.16.1.0/24 directly through the Internet, while all other traffic should still use the appliance. Which two actions are required? Select two.

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

Add a more specific user-defined route for 172.16.1.0/24 with next hop type Internet.

A longer prefix beats the broader 0.0.0.0/0 route, so only that destination uses the Internet path.

B

Best answer

Associate the route table with the subnet that contains the server.

The route table must be linked to the subnet before Azure can apply the custom next-hop selection.

C

Distractor review

Create an NSG rule that allows outbound Internet traffic.

NSGs control filtering, but they do not determine which next hop Azure chooses for the packet.

D

Distractor review

Enable a service endpoint for the Internet destination.

Service endpoints are for supported Azure services, not for routing general Internet traffic directly.

E

Distractor review

Change the subnet address space to a smaller CIDR.

Subnet size does not decide next-hop behavior when a specific UDR already matches the destination.

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 user-defined route for 172.16.1.0/24 with next hop type Internet. — Azure uses longest-prefix match when choosing routes. A /24 route to Internet overrides a broader /0 default route for only that destination, while all other traffic still follows the appliance route. The route table must also be associated with the correct subnet, otherwise the custom route is never applied. Together, these two changes create a precise exception without disturbing the rest of the subnet's forced tunneling behavior. Why others are wrong: NSG rules may still be needed for security, but they do not decide the next hop. Service endpoints are limited to supported PaaS services and do not apply to arbitrary Internet IPs. Changing the subnet size does not alter route precedence or create the exception 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.