Question 381 of 1,000
Secure networkingmediumMultiple SelectObjective-mapped

Quick Answer

The answer is Network Security Group (NSG) and Azure Firewall. NSGs filter inbound internet traffic at the subnet or network interface level using stateful rules, while Azure Firewall provides centralized, enterprise-grade filtering with threat intelligence and application rules across the virtual network. On the Microsoft Azure Security Engineer Associate AZ-500 exam, this tests your ability to distinguish between network-layer controls and other Azure services; a common trap is confusing Azure Front Door (a global load balancer) or VPN Gateway (encryption only) with filtering tools. Remember that NSGs are your first line of defense for granular traffic control, while Azure Firewall handles broader policy enforcement and logging. A useful memory tip: think “NSG for the neighborhood, Firewall for the whole city” — NSGs protect specific subnets or NICs, whereas Azure Firewall secures the entire virtual network perimeter.

AZ-500 Secure networking Practice Question

This AZ-500 practice question tests your understanding of secure 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.

Which TWO Azure services can be used to filter inbound internet traffic to a virtual network? (Choose two.)

Question 1mediummulti select
Full question →

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

Options A and C are correct. NSGs filter traffic at the subnet/NIC level. Azure Firewall provides centralized filtering. Option B is wrong because Azure Front Door is a global load balancer. Option D is wrong because VPN gateway encrypts traffic but does not filter. Option E is wrong because Azure Bastion is a jump server.

Key principle: Count usable hosts — not total addresses — and remember that the network and broadcast addresses are not available to hosts in standard IPv4 subnets.

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

    Stateful firewall for inbound and outbound traffic.

    Related concept

    CIDR notation defines the prefix length.

  • Azure Bastion

    Why it's wrong here

    Provides secure RDP/SSH access, not traffic filtering.

  • Azure Front Door

    Why it's wrong here

    Global load balancer, not a firewall.

  • Network security group (NSG)

    Why this is correct

    Filters inbound and outbound traffic at the subnet or NIC level.

    Related concept

    CIDR notation defines the prefix length.

  • VPN gateway

    Why it's wrong here

    Encrypts traffic but does not filter.

Common exam traps

Common exam trap: usable hosts are not the same as total addresses

Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.

Detailed technical explanation

How to think about this question

Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.

KKey Concepts to Remember

  • CIDR notation defines the prefix length.
  • Block size helps identify subnet boundaries.
  • Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
  • The required host count determines the smallest suitable subnet.

TExam Day Tips

  • Write the block size before choosing the subnet.
  • Check whether the question asks for hosts, subnets or a specific address range.
  • Do not confuse /24, /25, /26 and /27 host counts.

Key takeaway

Count usable hosts — not total addresses — and remember that the network and broadcast addresses are not available to hosts in standard IPv4 subnets.

Real-world example

How this comes up in practice

A healthcare organisation deploys an application with a public-facing web tier and a private database tier. The database subnet has no public IP and only accepts connections from the web tier's security group. Questions like this test whether you can design cloud network isolation using VNets/VPCs, subnets, and security group rules.

What to study next

Got this wrong? Here's your next step.

Review block sizes, usable host formulas (2^n − 2), and how to find network and broadcast addresses for /24 through /30. Then practise related AZ-500 subnetting questions on CIDR, address ranges, and subnet selection.

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.

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 — CIDR notation defines the prefix length..

What is the correct answer to this question?

The correct answer is: Azure Firewall — Options A and C are correct. NSGs filter traffic at the subnet/NIC level. Azure Firewall provides centralized filtering. Option B is wrong because Azure Front Door is a global load balancer. Option D is wrong because VPN gateway encrypts traffic but does not filter. Option E is wrong because Azure Bastion is a jump server.

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

Review block sizes, usable host formulas (2^n − 2), and how to find network and broadcast addresses for /24 through /30. Then practise related AZ-500 subnetting questions on CIDR, address ranges, and subnet selection.

What is the key concept behind this question?

CIDR notation defines the prefix length.

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-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. You need to block inbound traffic from the internet to a specific subnet except for TCP port 443. Which Azure service should you use?

easy
  • A.Azure Web Application Firewall (WAF)
  • B.Azure Firewall
  • C.Network security group (NSG)
  • D.Azure DDoS Protection

Why C: Option A is correct because NSGs can have inbound rules to allow or deny traffic by port. Option B is wrong because Azure Firewall is a network/application firewall but NSGs are simpler for subnet-level filtering. Option C is wrong because WAF is for HTTP/HTTPS at the application layer. Option D is wrong because DDoS Protection does not filter by port.

Last reviewed: Jun 20, 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-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.