- A
Enable DNS proxy on the firewall policy
Correct. DNS proxy enables the firewall to act as a DNS proxy, accepting DNS queries from VMs and forwarding them to the configured DNS server.
- B
Configure a DNS forwarding rule
Why wrong: Incorrect. Azure Firewall does not have a DNS forwarding rule; DNS proxy is the feature that handles DNS traffic forwarding.
- C
Enable Threat Intelligence DNS logging
Why wrong: Incorrect. This feature logs DNS queries based on threat intelligence but does not route DNS traffic through the firewall.
- D
Create a NAT rule for DNS traffic
Why wrong: Incorrect. NAT rules are used to translate destination IP addresses/ports, not to proxy DNS queries.
Quick Answer
The correct answer is to enable DNS proxy on the firewall policy. This feature allows Azure Firewall to listen on port 53 and act as an intermediary, forwarding DNS queries from virtual machines in the spoke VNet to the configured custom DNS server, thereby ensuring all DNS traffic is logged and inspected. Simply setting a custom DNS server on the firewall is insufficient because the VMs themselves must be configured to use the firewall’s private IP address as their DNS server; the DNS proxy handles the forwarding and logging at the firewall level. On the AZ-500 exam, this scenario tests your understanding of how to enforce DNS inspection in a hub-and-spoke topology, and a common trap is assuming that a custom DNS server alone forces traffic through the firewall—without the proxy, VMs may bypass it. Memory tip: think “DNS proxy = port 53 forwarder” to remember it bridges the VMs to the custom DNS server while keeping all queries under firewall inspection.
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 uses Azure Firewall to filter outbound traffic. They want to ensure that all DNS queries from virtual machines in a spoke VNet are routed through the Azure Firewall for logging and inspection. They have already configured the firewall to use a custom DNS server. Which additional Azure Firewall feature must be enabled to ensure that the VMs use the firewall as a DNS proxy?
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
Enable DNS proxy on the firewall policy
Option A is correct because enabling DNS proxy on the Azure Firewall policy allows the firewall to act as a DNS proxy for the virtual machines in the spoke VNet. When DNS proxy is enabled, the firewall listens on port 53 and forwards DNS queries from the VMs to the configured custom DNS server, ensuring all DNS traffic is logged and inspected. This is required even after setting a custom DNS server on the firewall, as the VMs must be configured to use the firewall's private IP address as their DNS server, and the proxy handles the forwarding.
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.
- ✓
Enable DNS proxy on the firewall policy
- ✗
Configure a DNS forwarding rule
- ✗
Enable Threat Intelligence DNS logging
- ✗
Create a NAT rule for DNS traffic
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse enabling DNS proxy with simply configuring a custom DNS server on the firewall, or they think that a NAT rule or forwarding rule alone will route DNS traffic through the firewall, but without the DNS proxy feature, the firewall does not listen on port 53 and cannot intercept DNS queries from VMs.
Detailed technical explanation
How to think about this question
Under the hood, when DNS proxy is enabled on Azure Firewall, the firewall listens on UDP and TCP port 53 on its private IP address. The VMs in the spoke VNet must have their DNS server settings configured to point to the firewall's private IP (e.g., via DHCP or custom DNS settings on the VNet). The firewall then forwards the DNS queries to the custom DNS server specified in the firewall policy, and all responses are cached and returned to the VMs. This ensures that all DNS traffic is logged and can be inspected by Azure Firewall's threat intelligence and application rules. In a real-world scenario, this is critical for enforcing DNS security policies, such as blocking known malicious domains, and for auditing all DNS queries from workloads.
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
An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.
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: Enable DNS proxy on the firewall policy — Option A is correct because enabling DNS proxy on the Azure Firewall policy allows the firewall to act as a DNS proxy for the virtual machines in the spoke VNet. When DNS proxy is enabled, the firewall listens on port 53 and forwards DNS queries from the VMs to the configured custom DNS server, ensuring all DNS traffic is logged and inspected. This is required even after setting a custom DNS server on the firewall, as the VMs must be configured to use the firewall's private IP address as their DNS server, and the proxy handles the forwarding.
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 →
Keep practising
More AZ-500 practice questions
- A public web application should be protected from OWASP-style attacks and network-layer DDoS attacks. Which two Azure se…
- A security analyst uses Microsoft Defender for Cloud. They want to view a list of all security recommendations for their…
- A company uses Azure AD B2B collaboration to invite external vendors. They want to restrict the vendors to only be able…
- A company uses Defender for Servers Plan 2. Which two capabilities are included compared with a basic posture-only confi…
- A Sentinel detection should enrich alerts with business-critical asset context. Which two mechanisms are appropriate?
- A company uses Microsoft Defender for Cloud to manage its security posture. The compliance team wants to monitor the sub…
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.