AZ-500 Secure networking Practice Question
You need to block outbound internet access from all VMs in a VNet except for specific allowed destinations (e.g., Microsoft updates). You cannot use a third-party NVA. Which Azure service should you use to meet this requirement?
⚠ Common exam trap
Many exam-takers confuse NSGs with a firewall, thinking NSGs can filter outbound traffic by FQDN or application identity, but NSGs only support IP-based rules and cannot inspect application-layer protocols like HTTPS to allow specific destinations such as Microsoft Updates.
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
✓
Azure Firewall
Azure Firewall is a managed, cloud-native network security service that can filter outbound traffic from VMs in a VNet based on fully qualified domain names (FQDNs), IP addresses, and port/protocol rules. It supports application rules (e.g., allow *.update.microsoft.com) and network rules, enabling you to block all outbound internet access except for specific allowed destinations like Microsoft Updates. Unlike NSGs, Azure Firewall provides stateful inspection and centralized logging, making it the correct choice for this requirement without a third-party NVA.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Azure Bastion
Why it's wrong here
Azure Bastion is a fully managed PaaS service that provides secure inbound RDP/SSH connectivity to Azure VMs directly from the Azure portal over TLS. It is not deployed inline in the network path and has no ability to inspect, filter, or block outbound traffic from VMs to the internet. Because it only facilitates control-plane access (port 443 to the Bastion host) and never carries data-plane traffic, it cannot enforce an outbound internet blocking policy.
- ✓
Azure Firewall
Why this is correct
Azure Firewall is a managed, stateful firewall service that acts as a central egress filter in a hub VNet. By creating a route table with a default route (0.0.0.0/0) to the firewall's private IP, all outbound VM traffic can be forced through it. Azure Firewall supports application rules with fully qualified domain names (FQDNs) and network rules with IP/port/protocol, allowing you to deny all outbound internet traffic while selectively permitting only specific FQDNs. This makes it the appropriate solution for the requirement to block outbound internet access except for approved destinations.
- ✗
Network Security Groups (NSGs)
Why it's wrong here
Network Security Groups (NSGs) filter traffic at layers 3 and 4 using source/destination IP addresses, protocol, and port numbers. They cannot inspect application-layer payloads or evaluate FQDNs, so you cannot create a rule that blocks all outbound internet access except a specific domain. Even if you used service tags or IP address ranges, dynamic CDNs and changing endpoints would make such IP-based rules incomplete and fragile. Thus, NSGs alone are insufficient for outbound FQDN-based filtering and denial-of-internet scenarios.
- ✗
Azure Virtual Network NAT
Why it's wrong here
Azure Virtual Network NAT is a managed outbound SNAT service that translates your VMs' private IP addresses to one or more public IP addresses for outbound access to the internet. It is a purely connectivity-enabling component: it does not include any rule engine, allow/deny logic, or application-layer inspection capability. Once NAT is configured, all outbound traffic is forwarded to its public IP without any ability to selectively block destinations. Therefore, it can never be used to deny or control outbound internet access; it only provides address translation.
Go deeper
Related to this question
About these practice questions
This AZ-500 question is part of Courseiva's 194-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.