Question 19 of 1,170
Implement and Manage Virtual NetworkingmediumMultiple ChoiceObjective-mapped

How to Route All Outbound Internet Traffic via a Network Virtual Appliance

This AZ-104 practice question tests your understanding of implement and manage virtual networking. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A security team requires all outbound internet traffic from a workload subnet to pass through an NVA at 10.1.4.4. The subnet is already associated with an NSG that allows the traffic. Which UDR should the administrator add to the route table for that subnet?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Destination 0.0.0.0/0 with next hop type Virtual appliance and next hop IP 10.1.4.4.

Option B is correct because a User Defined Route (UDR) with destination 0.0.0.0/0 and next hop type 'Virtual appliance' forces all outbound internet traffic from the subnet to be forwarded to the NVA at 10.1.4.4 for inspection. The 0.0.0.0/0 prefix matches all internet-bound traffic, and the 'Virtual appliance' next hop type enables routing to a private IP address within the virtual network, overriding the default system route that would otherwise send traffic directly to the Internet.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Destination 10.1.4.4/32 with next hop type Internet.

    Why it's wrong here

    This route does not send default outbound traffic through the appliance. It points to the wrong next hop type.

    When this WOULD be correct

    This option would be correct if the requirement was to force all traffic destined to the NVA's IP address (10.1.4.4) to go out to the internet, for example, to bypass the NVA for management traffic or to test connectivity.

  • Destination 0.0.0.0/0 with next hop type Virtual appliance and next hop IP 10.1.4.4.

    Why this is correct

    To force all internet-bound traffic through a network virtual appliance, the route table needs a default route that matches 0.0.0.0/0 and sends traffic to the appliance's private IP. The next hop type must be Virtual appliance, and the next hop IP should be 10.1.4.4. This overrides Azure's default system route for internet traffic from that subnet, while still allowing NSG rules to control whether the traffic is permitted.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Destination 0.0.0.0/0 with next hop type Virtual network gateway.

    Why it's wrong here

    A virtual network gateway is used for VPN or ExpressRoute paths, not for sending traffic to an NVA inside the VNet.

    When this WOULD be correct

    This option would be correct if the requirement was to route all outbound internet traffic through an on-premises network via a VPN or ExpressRoute gateway, for example, when using forced tunneling to send internet-bound traffic through a corporate network.

  • Destination 10.1.4.0/24 with next hop type None.

    Why it's wrong here

    A None next hop would blackhole matching traffic instead of forwarding it through the security appliance.

    When this WOULD be correct

    This option would be correct if the requirement was to prevent traffic from the workload subnet from reaching the NVA's subnet (10.1.4.0/24), for example, to isolate management traffic. In that case, a route with next hop type None would blackhole traffic to that subnet.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.

Destination 0.0.0.0/0 with next hop type Virtual appliance and next hop IP 10.1.4.4.Correct answer

Why this is correct

To force all internet-bound traffic through a network virtual appliance, the route table needs a default route that matches 0.0.0.0/0 and sends traffic to the appliance's private IP. The next hop type must be Virtual appliance, and the next hop IP should be 10.1.4.4. This overrides Azure's default system route for internet traffic from that subnet, while still allowing NSG rules to control whether the traffic is permitted.

Destination 10.1.4.4/32 with next hop type Internet.Wrong answer — click to see why

Why this is wrong here

The destination 10.1.4.4/32 with next hop type Internet would route traffic destined to the NVA itself to the internet, not through the NVA. The requirement is to route all outbound internet traffic (0.0.0.0/0) through the NVA, not traffic to the NVA.

★ When this WOULD be the correct answer

This option would be correct if the requirement was to force all traffic destined to the NVA's IP address (10.1.4.4) to go out to the internet, for example, to bypass the NVA for management traffic or to test connectivity.

Why candidates choose this

Candidates may mistakenly think that adding a route to the NVA's IP address will force traffic through it, not understanding that the default route (0.0.0.0/0) is needed to redirect all internet-bound traffic.

Destination 0.0.0.0/0 with next hop type Virtual network gateway.Wrong answer — click to see why

Why this is wrong here

This option sets the next hop to Virtual network gateway, which sends traffic to Azure VPN or ExpressRoute gateways, not to the NVA. The requirement is to route all outbound internet traffic through the NVA at 10.1.4.4, so the next hop must be Virtual appliance with that IP.

★ When this WOULD be the correct answer

This option would be correct if the requirement was to route all outbound internet traffic through an on-premises network via a VPN or ExpressRoute gateway, for example, when using forced tunneling to send internet-bound traffic through a corporate network.

Why candidates choose this

Candidates may confuse the Virtual network gateway next hop type with the Virtual appliance type, or assume that any gateway can route traffic to the internet, not realizing that Virtual network gateway is specifically for site-to-site connectivity.

Destination 10.1.4.0/24 with next hop type None.Wrong answer — click to see why

Why this is wrong here

Destination 10.1.4.0/24 with next hop type None would only affect traffic destined to the NVA's subnet, not all outbound internet traffic. The requirement is to route all outbound internet traffic (0.0.0.0/0) through the NVA, so this route does not apply to internet-bound traffic.

★ When this WOULD be the correct answer

This option would be correct if the requirement was to prevent traffic from the workload subnet from reaching the NVA's subnet (10.1.4.0/24), for example, to isolate management traffic. In that case, a route with next hop type None would blackhole traffic to that subnet.

Why candidates choose this

Candidates might think that specifying the NVA's subnet as the destination is sufficient to route traffic through it, misunderstanding that a default route (0.0.0.0/0) is needed to capture all internet-bound traffic.

Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse the 'Virtual appliance' next hop type with 'Virtual network gateway' or mistakenly think a specific destination like the NVA's IP is needed, rather than understanding that 0.0.0.0/0 is required to capture all outbound internet traffic.

Detailed technical explanation

How to think about this question

When a UDR with 0.0.0.0/0 and next hop 'Virtual appliance' is applied to a subnet, Azure creates a forced tunneling route that overrides the default system route for internet traffic. The NVA must have IP forwarding enabled on its network interface and be configured to route traffic (e.g., via NAT or proxy) to the internet; otherwise, traffic will be dropped. In practice, this setup is commonly used for centralized outbound inspection, and the NVA's subnet often has its own route to the internet (e.g., via an Azure Firewall or a public IP) to avoid asymmetric routing.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

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.

Practice this exam

Start a free AZ-104 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Implement and Manage Virtual Networking — This question tests Implement and Manage Virtual Networking — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Destination 0.0.0.0/0 with next hop type Virtual appliance and next hop IP 10.1.4.4. — Option B is correct because a User Defined Route (UDR) with destination 0.0.0.0/0 and next hop type 'Virtual appliance' forces all outbound internet traffic from the subnet to be forwarded to the NVA at 10.1.4.4 for inspection. The 0.0.0.0/0 prefix matches all internet-bound traffic, and the 'Virtual appliance' next hop type enables routing to a private IP address within the virtual network, overriding the default system route that would otherwise send traffic directly to the Internet.

What should I do if I get this AZ-104 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on AZ-104

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A security team requires all outbound traffic from a subnet to pass through an Azure Firewall at 10.1.0.4, including internet-bound traffic from the VMs. What should the administrator configure?

medium
  • A.Assign a NAT gateway to the subnet and leave the default routing in place.
  • B.Create a route table with a 0.0.0.0/0 route to 10.1.0.4 and associate it with the subnet.
  • C.Enable service endpoints for the subnet so outbound traffic stays private.
  • D.Deploy a public IP on each VM and use NSG rules to inspect the traffic.

Why B: Option B is correct because creating a route table with a default route (0.0.0.0/0) pointing to the Azure Firewall private IP (10.1.0.4) and associating it with the subnet forces all outbound traffic, including internet-bound traffic, to be routed through the firewall. This ensures the firewall can inspect and control all egress traffic as required by the security team.

Keep practising

More AZ-104 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.