- A
Configure an Azure Load Balancer in the hub to distribute traffic from spokes to the firewall.
Why wrong: A load balancer distributes incoming traffic, but does not route outbound traffic from spoke VMs through the firewall. It would not force traffic to the firewall as a next hop.
- B
Create a user-defined route (UDR) in the spoke subnet with 0.0.0.0/0 pointing to the private IP of the Azure Firewall.
The UDR with default route pointing to the firewall's private IP ensures that all outbound internet traffic from the spoke VMs is forwarded to the firewall for inspection and logging.
- C
Use Azure Firewall Manager to automatically enforce a global default route on all spokes. This is the only configuration needed.
Why wrong: Azure Firewall Manager can be used to apply routes, but it must be configured to create UDRs on the spoke subnets. The statement is misleading because the route is still a UDR created by the manager; the key action is the route itself.
- D
Enable IP forwarding on the NICs of the spoke VMs so they forward traffic to the firewall.
Why wrong: IP forwarding is used when a VM acts as a network appliance, not to force outbound traffic. The routing must be done at the subnet level via UDRs.
Quick Answer
The correct answer is to create a user-defined route (UDR) in the spoke subnet with a 0.0.0.0/0 prefix pointing to the private IP of the Azure Firewall. This configuration forces all outbound internet traffic from spoke VMs to be routed through the firewall in the hub virtual network, ensuring every packet is inspected and logged as required. The technical concept here is that Azure’s default system route for 0.0.0.0/0 sends internet-bound traffic directly out, bypassing any security appliance; a UDR overrides this by setting the next hop to the firewall’s private IP, effectively funneling traffic through the hub. On the AZ-500 exam, this scenario tests your understanding of forced tunneling and network segmentation in a hub-spoke topology—a common trap is choosing Azure Firewall Manager or a VPN gateway, which handle policy distribution or site-to-site traffic, not default route enforcement. Remember the memory tip: “Zero-zero-zero-zero goes to the firewall’s door” to recall that the 0.0.0.0/0 UDR is the key to routing all spoke internet traffic through Azure Firewall.
AZ-500 Secure networking Practice Question
This AZ-500 practice question tests your understanding of secure networking. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. 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 company has a hub-spoke network topology in Azure. The spoke virtual networks contain Azure virtual machines that need to access the internet. The security team requires that all outbound internet traffic from the spoke VMs passes through the Azure Firewall deployed in the hub virtual network for inspection and logging. Which configuration should be implemented to ensure this traffic is routed through the firewall?
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
Create a user-defined route (UDR) in the spoke subnet with 0.0.0.0/0 pointing to the private IP of the Azure Firewall.
Option B is correct because a user-defined route (UDR) with the 0.0.0.0/0 prefix and the next hop set to the private IP address of the Azure Firewall forces all outbound internet traffic from the spoke subnet to be routed through the firewall in the hub. This ensures the traffic passes through the firewall for inspection and logging, as required by the security team.
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.
- ✗
Configure an Azure Load Balancer in the hub to distribute traffic from spokes to the firewall.
Why it's wrong here
A load balancer distributes incoming traffic, but does not route outbound traffic from spoke VMs through the firewall. It would not force traffic to the firewall as a next hop.
- ✓
Create a user-defined route (UDR) in the spoke subnet with 0.0.0.0/0 pointing to the private IP of the Azure Firewall.
Why this is correct
The UDR with default route pointing to the firewall's private IP ensures that all outbound internet traffic from the spoke VMs is forwarded to the firewall for inspection and logging.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Use Azure Firewall Manager to automatically enforce a global default route on all spokes. This is the only configuration needed.
Why it's wrong here
Azure Firewall Manager can be used to apply routes, but it must be configured to create UDRs on the spoke subnets. The statement is misleading because the route is still a UDR created by the manager; the key action is the route itself.
- ✗
Enable IP forwarding on the NICs of the spoke VMs so they forward traffic to the firewall.
Why it's wrong here
IP forwarding is used when a VM acts as a network appliance, not to force outbound traffic. The routing must be done at the subnet level via UDRs.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse Azure Firewall Manager's ability to propagate routes in a virtual WAN with the need for explicit UDRs in a traditional hub-spoke topology using a hub virtual network, leading them to incorrectly select option C as a one-click solution.
Detailed technical explanation
How to think about this question
Azure uses system routes for default 0.0.0.0/0 traffic, which normally sends internet-bound traffic directly out via the Azure backbone. A UDR overrides this by specifying a next hop type of 'Virtual appliance' and the firewall's private IP, which must be in a peered hub network. The route is applied at the subnet level, and the firewall must have its own route to the internet (e.g., via a default route to the AzureFirewallSubnet's public IP) to complete the path. This design is common in forced tunneling scenarios where all egress traffic must be inspected.
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.
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.
- →
Secure networking — study guide chapter
Learn the concepts, then practise the questions
- →
Secure networking practice questions
Targeted practice on this topic area only
- →
All AZ-500 questions
1,000 questions across all exam domains
- →
Microsoft Azure Security Engineer Associate AZ-500 study guide
Full concept coverage aligned to exam objectives
- →
AZ-500 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AZ-500 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Secure identity and access practice questions
Practise AZ-500 questions linked to Secure identity and access.
Secure compute, storage, and databases practice questions
Practise AZ-500 questions linked to Secure compute, storage, and databases.
Secure Azure using Microsoft Defender for Cloud and Microsoft Sentinel practice questions
Practise AZ-500 questions linked to Secure Azure using Microsoft Defender for Cloud and Microsoft Sentinel.
Manage identity and access practice questions
Practise AZ-500 questions linked to Manage identity and access.
Secure networking practice questions
Practise AZ-500 questions linked to Secure networking.
AZ-500 fundamentals practice questions
Practise AZ-500 questions linked to AZ-500 fundamentals.
AZ-500 scenario practice questions
Practise AZ-500 questions linked to AZ-500 scenario.
AZ-500 troubleshooting practice questions
Practise AZ-500 questions linked to AZ-500 troubleshooting.
Practice this exam
Start a free AZ-500 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-500 question test?
Secure networking — This question tests Secure networking — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Create a user-defined route (UDR) in the spoke subnet with 0.0.0.0/0 pointing to the private IP of the Azure Firewall. — Option B is correct because a user-defined route (UDR) with the 0.0.0.0/0 prefix and the next hop set to the private IP address of the Azure Firewall forces all outbound internet traffic from the spoke subnet to be routed through the firewall in the hub. This ensures the traffic passes through the firewall for inspection and logging, as required by the security team.
What should I do if I get this AZ-500 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 →
Same concept, more angles
1 more ways this is tested on AZ-500
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. Your company has a hub-and-spoke network topology in Azure. The hub virtual network contains an Azure Firewall and a VPN gateway. Spoke virtual networks are peered to the hub. You need to ensure that all outbound traffic from spoke VMs to the internet is routed through the Azure Firewall. What should you configure on the spoke virtual networks?
medium- A.Apply a network security group (NSG) to the spoke subnets with a deny rule for internet traffic
- B.Configure VNet peering with 'Use remote gateway' enabled
- ✓ C.Create a route table with a route for 0.0.0.0/0 pointing to the Azure Firewall private IP, and associate it with the spoke subnets
- D.Configure the Azure Firewall to use forced tunneling
Why C: Option C is correct because adding a route table with a default route (0.0.0.0/0) pointing to the Azure Firewall as the next hop forces all outbound traffic through the firewall. Option A is wrong because VNet peering does not automatically route internet traffic through a firewall. Option B is wrong because NSGs can control inbound/outbound rules but cannot route traffic. Option D is wrong because the firewall itself doesn't need a route table change.
Last reviewed: Jun 11, 2026
This AZ-500 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-500 exam.
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.
Sign in to join the discussion.