Courseiva
Secure networkingmediumMultiple ChoiceObjective-mapped

AZ-500 Secure networking Practice Question

A company has an Azure virtual network with multiple subnets. They want to centrally inspect and log all outbound traffic to the internet. They also need to allow or deny traffic based on domain names (FQDNs). Which Azure resource should they deploy?

⚠ Common exam trap

Many candidates confuse Azure Firewall with Network Security Groups, mistakenly thinking NSGs can filter by domain names because they associate 'network security' with all traffic control, but NSGs lack Layer 7 capabilities and cannot inspect or filter based on FQDNs.

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 provides centralized outbound traffic inspection and logging. It supports application rules based on fully qualified domain names (FQDNs), enabling allow or deny decisions for outbound traffic to the internet using Layer 7 (application layer) filtering, which meets both requirements directly.

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 Firewall

    Why this is correct

    Azure Firewall is a fully managed, cloud-native firewall that can filter outbound internet traffic using application rules based on destination FQDNs, allowing or denying requests by hostname rather than only IP. It captures comprehensive diagnostic logs via diagnostic settings to Azure Monitor, where you can query the AzureDiagnostics table for denied/allowed flows. This combination of FQDN-level control and centralized, queryable logging directly meets the stated requirement.

  • Network Virtual Appliance (NVA) from Azure Marketplace

    Why it's wrong here

    An NVA from Azure Marketplace can perform deep packet inspection and log traffic, but it cannot natively filter outbound traffic based on domain names (FQDNs) at Layer 7 without additional configuration or a separate proxy component. It is tempting because NVAs are commonly deployed for centralised inspection and logging of internet-bound traffic in hub-and-spoke topologies, and would be correct if the requirement were solely for IP-based filtering or protocol inspection rather than FQDN-based allow/deny rules.

  • Azure Application Gateway with Web Application Firewall (WAF)

    Why it's wrong here

    Azure Application Gateway with Web Application Firewall (WAF) is a Layer 7 load balancer and WAF designed for inbound HTTP/S traffic to web applications, using rules like the OWASP Core Rule Set to inspect requests and block common exploits. It has no native capability to act as an outbound internet gateway, does not perform FQDN-based filtering for egress, and cannot centrally log all outbound traffic from multiple subnets in the required way. Its role is protecting north-south inbound traffic, not regulating server-initiated outbound connections.

  • Azure Network Security Groups (NSGs)

    Why it's wrong here

    Network Security Groups (NSGs) filter traffic at the subnet or network interface level using stateful rules that match on source/destination IP addresses, port ranges, and protocols; they lack any Layer 7 awareness and cannot resolve or restrict by FQDN. While NSG flow logs can record connections to a storage account, they are not a central outbound logging solution with per-rule application decisions, and flow logs require separate enablement and management. Thus NSGs cannot enforce hostname-based allow/deny rules or provide the centralized, queryable logging required.

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

About these practice questions

One of 194 original AZ-500 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.