Courseiva

AZ-104 · topic practice

NSG practice questions

Practise AZ-104 NSG practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security

What the exam tests

What to know about NSG

NSG questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common NSG exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

NSG questions

20 questions · select your answer, then reveal the explanation

Question 1mediummultiple choice
Read the full NSG explanation →

Based on the exhibit, which Network Watcher tool should you use to determine whether an NSG allows or denies TCP 1433 traffic and which rule is responsible?

Exhibit

Troubleshooting notes:
- Source VM: vm-app01
- Destination VM: vm-sql01
- Port: TCP 1433
- Symptom: Connection times out
- Goal: Verify whether the packet is allowed or denied by NSG rules and identify the rule name
- Need a point-in-time check from the VM NIC perspective

Arrange the steps to create a virtual network in Azure with a subnet and deploy a VM.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 3mediummatching
Read the full NSG explanation →

A team is troubleshooting inbound access to Azure VMs. Match each NSG concept on the left with the most accurate behavior or troubleshooting implication on the right.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

The priority 100 rule is evaluated first, so it wins if both rules match the same traffic.

It controls traffic entering the subnet or NIC from another network location.

It filters traffic for a single VM and can be used in addition to a subnet NSG.

It matches any ephemeral source port and does not limit the sender's port selection.

It allows only HTTPS traffic that uses TCP and the specified destination port.

Question 4mediummulti select
Review the full subnetting walkthrough →

You are designing an Azure virtual network for a three-tier application. The frontend, application, and database tiers each require their own subnet. You need to ensure that the frontend tier can communicate with the application tier, but the database tier must be isolated from direct inbound traffic from the internet. Which three of the following actions should you include in your design? (Choose three.)

Question 5mediummultiple choice
Read the full NSG explanation →

A web tier and an app tier run on separate Azure VMs in the same region. Each VM's NIC is added to an application security group named WebASG or AppASG. The administrator must allow only the web tier to connect to the app tier on TCP 8443, and future VM scale-outs must be included automatically. Which NSG rule should be created?

Question 6mediummultiple choice
Review the full subnetting walkthrough →

A web tier and an app tier run in separate subnets. Each VM NIC is placed in an application security group named WebASG or AppASG. The administrator must allow only the web tier to reach the app tier on TCP port 8443 and block all other inbound traffic to the app tier. Which NSG rule should be created on the app subnet?

Question 7easymultiple choice
Read the full NSG explanation →

Based on the exhibit, why is the administrator's HTTPS test still being denied, and what should be changed?

Exhibit

Inbound NSG rules for Subnet-Prod:
Priority 200: Deny-HTTPS-Internet | Source: Internet | Destination: Any | Port: 443 | Action: Deny
Priority 250: Allow-HTTPS-Admin | Source: 203.0.113.20/32 | Destination: Any | Port: 443 | Action: Allow
Observed result: Traffic from 203.0.113.20 to the VM on TCP 443 is blocked.
Question 8mediummultiple choice
Read the full NSG explanation →

A VM cannot connect to another VM on TCP 1433. You need to determine whether an NSG is blocking the flow and identify which rule applies. Which Network Watcher tool should you use?

Question 9mediummultiple choice
Review the full subnetting walkthrough →

A team manages three backend servers in one subnet. The servers are replaced periodically, so their private IP addresses change. The NSG must allow inbound traffic from the web tier without updating individual IP addresses each time. Which destination object should be used in the NSG rule?

Question 10mediummultiple choice
Read the full NSG explanation →

Backend virtual machines are rebuilt frequently and often receive different private IP addresses. An administrator must allow the frontend tier to reach the backend tier on TCP 8443 without editing NSG rules every time the backend IP changes. What should the administrator use in the NSG rule?

Question 11mediummultiple choice
Review the full subnetting walkthrough →

A security team requires all outbound internet traffic from a workload subnet to pass through an NVA at 10.1.4.4. The subnet is already associated with an NSG that allows the traffic. Which UDR should the administrator add to the route table for that subnet?

Question 12hardmultiple choice
Review the full subnetting walkthrough →

A VM in AppSubnet must reach a database VM in DbSubnet on TCP 1433. AppSubnet's NSG has an outbound deny rule for TCP 1433 to Any at priority 200. DbSubnet's NSG has an inbound allow rule for TCP 1433 from ASG-App to ASG-Db at priority 300. Both NICs are in the correct application security groups. Connectivity tests fail. What should the administrator change?

Question 13mediummultiple choice
Read the full NSG explanation →

A three-tier application uses separate web and app VMs that are scaled in and out regularly. The administrator must allow only the web tier to connect to the app tier on TCP 8080 without continually updating IP addresses. What should be configured in the NSG rule?

Question 14easymulti select
Read the full NSG explanation →

A subscription admin wants to investigate who changed a resource and also review the platform-generated events for that subscription. Which two types of logs can be sent to Log Analytics and queried later? Select two.

Question 15hardmultiple choice
Read the full NSG explanation →

Based on the exhibit, what should the administrator change to allow only the web tier to reach the app tier on TCP 8443?

Exhibit

NSG: nsg-app
Inbound security rules:
- Priority 100  Deny   TCP 8443   Source: VirtualNetwork   Destination: AppTier-ASG
- Priority 200  Allow  TCP 8443   Source: WebTier-ASG      Destination: AppTier-ASG
- Priority 300  Allow  TCP 443    Source: VirtualNetwork   Destination: AppTier-ASG

ASG membership:
- VM-Web1 is in WebTier-ASG
- VM-App1 is in AppTier-ASG

Observed result:
- VM-Web1 cannot connect to VM-App1 on TCP 8443
Question 16mediummultiple choice
Read the full NSG explanation →

Why is centralized logging valuable during security incident response?

Question 17easymultiple choice
Read the full NSG explanation →

A team manages many application VMs and backend VMs. The VM IP addresses change whenever they are rebuilt, but the same traffic rule must always allow the app tier to reach the backend tier on TCP 8443. What should the administrator use in the NSG rule?

Question 18mediummultiple choice
Review the full subnetting walkthrough →

A VM in subnet S1 must accept RDP only from the administrator workstation at 203.0.113.25. The subnet NSG has a custom inbound deny-all rule at priority 200 and a custom allow-RDP rule at priority 300 for source 203.0.113.25, destination Any, TCP 3389. RDP is still blocked from the workstation. What should the administrator change?

Question 19mediummultiple choice
Read the full NSG explanation →

An administrator added an NSG rule named Allow-Admin-HTTPS with priority 250 to permit inbound TCP 443 from a single public IP. The NSG also contains a Deny-All-Inbound rule with priority 200. The administrator still cannot connect to the VM over HTTPS from the allowed IP. What should be changed to resolve the issue?

Question 20easymultiple choice
Read the full NSG explanation →

Based on the exhibit, what inbound NSG rule should the administrator add to allow only the web tier to reach the app tier on TCP 8080?

Exhibit

Application security groups:
- WebASG contains the web VM NICs
- AppASG contains the app VM NICs
App subnet NSG rules:
- Priority 300: Deny-All-Inbound | Source: Any | Destination: Any | Port: Any | Action: Deny
No allow rule exists for web-to-app traffic.

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused NSG sessions

Start a NSG only practice session

Every question in these sessions is drawn from the NSG domain — nothing else.

Related practice questions

Related AZ-104 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the AZ-104 exam test about NSG?
NSG questions test whether you can apply the concept in context, not just recognise a definition.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just NSG questions in a focused session?
Yes — the session launcher on this page draws every question from the NSG domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other AZ-104 topics?
Use the topic links above to move to related areas, or go back to the AZ-104 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the AZ-104 exam covers. They are not copied from any real exam or dump site.