- A
Use service endpoints for each tier.
Why wrong: Service endpoints are for Azure services, not subnet isolation.
- B
Create separate VNets for each tier and use VNet peering.
Why wrong: More complex than necessary.
- C
Deploy Azure Firewall in the VNet and route all traffic through it.
Why wrong: Overkill and adds cost.
- D
Configure NSGs on each subnet with appropriate allow rules.
NSGs can filter traffic between subnets.
Quick Answer
The answer is to configure NSGs on each subnet with appropriate allow rules. This is the minimum configuration for multi-tier subnet isolation using NSGs because each Network Security Group acts as a stateful firewall at the subnet level, allowing you to explicitly permit only the required traffic flows: internet to web, web to app, and app to db, while implicitly denying everything else. On the Microsoft Azure Security Engineer Associate AZ-500 exam, this scenario tests your understanding of least-privilege network segmentation and the distinction between native Azure tools and premium services—a common trap is over-engineering the solution with Azure Firewall or VNet peering when NSGs alone suffice. Remember that NSGs are free, built-in, and applied directly to subnets within the same VNet, making them the simplest and most cost-effective choice for this isolation pattern. A helpful memory tip: think of the three-tier handshake—web opens to the world, app talks only to web, db talks only to app—and let NSGs enforce each handshake with a single allow rule per subnet.
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.
You are designing a network security solution for a multi-tier application in Azure. The web tier must be accessible from the internet, the application tier only from the web tier, and the database tier only from the application tier. All tiers are in different subnets of the same VNet. What is the minimum configuration?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"minimum / minimize"Why it matters: Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.
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
Configure NSGs on each subnet with appropriate allow rules.
Option A is correct because NSGs on each subnet can control inbound traffic: allow internet to web, allow web to app, allow app to db. Option B is wrong because Azure Firewall is not required. Option C is wrong because VNet peering is not needed. Option D is wrong because service endpoints are for Azure services.
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.
- ✗
Use service endpoints for each tier.
Why it's wrong here
Service endpoints are for Azure services, not subnet isolation.
- ✗
Create separate VNets for each tier and use VNet peering.
Why it's wrong here
More complex than necessary.
- ✗
Deploy Azure Firewall in the VNet and route all traffic through it.
Why it's wrong here
Overkill and adds cost.
- ✓
Configure NSGs on each subnet with appropriate allow rules.
Why this is correct
NSGs can filter traffic between subnets.
Clue confirmation
The clue word "minimum / minimize" in the question point toward this answer.
Related concept
CIDR notation defines the prefix length.
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 media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
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.
- →
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 — CIDR notation defines the prefix length..
What is the correct answer to this question?
The correct answer is: Configure NSGs on each subnet with appropriate allow rules. — Option A is correct because NSGs on each subnet can control inbound traffic: allow internet to web, allow web to app, allow app to db. Option B is wrong because Azure Firewall is not required. Option C is wrong because VNet peering is not needed. Option D is wrong because service endpoints are for Azure services.
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.
Are there clue words in this question I should notice?
Yes — watch for: "minimum / minimize". Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.
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 →
Same concept, more angles
3 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 are designing network security for a three-tier application. You need to isolate each tier (web, application, data) and control traffic between them. Which TWO Azure services should you use to achieve this? (Choose two.)
medium- ✓ A.Network Security Groups (NSGs)
- B.VNet peering
- C.Azure Policy
- D.Azure Firewall
- ✓ E.Application Security Groups (ASGs)
Why A: Options A and C are correct. NSGs provide traffic filtering at the subnet or NIC level. ASGs allow grouping of VMs and referencing them in NSG rules. Option B is wrong because Azure Firewall is a centralized firewall, but for simple tier isolation, NSGs and ASGs suffice. Option D is wrong because VNet peering connects VNets, not tiers within a VNet. Option E is wrong because Azure Policy does not enforce network traffic rules.
Variation 2. You are designing network security for a multi-tier application. The web tier must be accessible from the internet, but the database tier must only be accessible from the web tier. Both tiers are in the same virtual network. Which Azure service should you use to restrict traffic between the tiers?
easy- A.Route table
- ✓ B.Network Security Group (NSG)
- C.Azure Firewall
- D.Application Security Groups (ASGs)
Why B: Option C is correct because a Network Security Group (NSG) can be associated with the subnet or NIC of the database tier to allow only inbound traffic from the web tier's private IP addresses or subnet. Option A is wrong because Application Security Groups (ASGs) are used to group VMs but still require NSG rules. Option B is wrong because Azure Firewall is a managed firewall, but it's overkill and costlier than an NSG for simple subnet-to-subnet filtering. Option D is wrong because a route table controls routing, not filtering.
Variation 3. You are designing a network security solution for a multi-tier application running in Azure. The front-end VMs must only accept traffic from Azure Front Door. Back-end VMs must only accept traffic from the front-end tier. You plan to use NSGs and ASGs. Which configuration should you use to meet these requirements with minimal administrative overhead?
medium- A.Create NSG rules that allow traffic from the Front Door service tag and from the front-end VM IP addresses.
- B.Use service tags for Azure Front Door and for the front-end subnet.
- C.Use VNet peering between the front-end and back-end subnets, and configure route tables.
- ✓ D.Place front-end VMs in an ASG, back-end VMs in another ASG. Configure NSG rules referencing these ASGs.
Why D: Option C is correct because using Application Security Groups (ASGs) allows you to define network security policies based on application groups, and you can reference an ASG as the source or destination in NSG rules. By placing front-end VMs in an ASG and back-end VMs in another ASG, you can create NSG rules that restrict traffic accordingly. Option A is wrong because using individual VM IP addresses is not scalable. Option B is wrong because service tags for Azure Front Door exist, but they don't cover front-end VMs. Option D is wrong because VNet peering alone does not provide traffic filtering.
Last reviewed: Jun 20, 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.