- A
Change the allow rule priority to a number lower than 200.
NSG rules are evaluated in ascending priority order, so the lower number is processed first. Because Deny-All-Inbound at 200 is taking effect before the allow rule at 250, the connection is blocked. Moving the allow rule to a priority such as 150 ensures the specific HTTPS exception is matched before the broad deny rule.
- B
Change the deny rule priority to 65000 so it is evaluated first.
Why wrong: A higher numeric priority is evaluated later, not earlier, so this would not fix the problem correctly.
- C
Convert the allow rule to an outbound rule instead of inbound.
Why wrong: The issue is inbound access to the VM, so an outbound rule would not affect the connection attempt.
- D
Replace the NSG with a route table so HTTPS can pass through the subnet.
Why wrong: Route tables affect next-hop selection, not packet अनुमति decisions for inbound traffic.
AZ-104 Implement and Manage Virtual Networking Practice Question
This AZ-104 practice question tests your understanding of implement and manage virtual networking. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. 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.
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?
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
Change the allow rule priority to a number lower than 200.
The Deny-All-Inbound rule with priority 200 is evaluated before the Allow-Admin-HTTPS rule with priority 250 because NSG rules are processed in order of ascending priority (lower numbers are evaluated first). Since the deny rule matches all inbound traffic, it blocks the HTTPS connection before the allow rule can be evaluated. To resolve this, the allow rule must have a priority lower than 200 (e.g., 150) so it is evaluated first and permits the traffic from the specified public IP.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Change the allow rule priority to a number lower than 200.
Why this is correct
NSG rules are evaluated in ascending priority order, so the lower number is processed first. Because Deny-All-Inbound at 200 is taking effect before the allow rule at 250, the connection is blocked. Moving the allow rule to a priority such as 150 ensures the specific HTTPS exception is matched before the broad deny rule.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Change the deny rule priority to 65000 so it is evaluated first.
Why it's wrong here
A higher numeric priority is evaluated later, not earlier, so this would not fix the problem correctly.
When this WOULD be correct
This option would be correct if the question stated that the deny rule was blocking traffic that should be allowed, and the goal was to ensure the deny rule is evaluated last (e.g., to allow all other traffic by default). For example, if the question said: 'An NSG has an allow rule for RDP and a deny-all rule with priority 100. The administrator wants to ensure that the deny-all rule is evaluated last. What should be done?'
- ✗
Convert the allow rule to an outbound rule instead of inbound.
Why it's wrong here
The issue is inbound access to the VM, so an outbound rule would not affect the connection attempt.
- ✗
Replace the NSG with a route table so HTTPS can pass through the subnet.
Why it's wrong here
Route tables affect next-hop selection, not packet अनुमति decisions for inbound traffic.
When this WOULD be correct
A question where a VM in a subnet cannot reach the internet or another network due to missing or incorrect routes (e.g., no default route to the internet), and the solution is to add a route table with a proper next hop.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓Change the allow rule priority to a number lower than 200.Correct answer▾
Why this is correct
NSG rules are evaluated in ascending priority order, so the lower number is processed first. Because Deny-All-Inbound at 200 is taking effect before the allow rule at 250, the connection is blocked. Moving the allow rule to a priority such as 150 ensures the specific HTTPS exception is matched before the broad deny rule.
✗Change the deny rule priority to 65000 so it is evaluated first.Wrong answer — click to see why▾
Why this is wrong here
In Azure, NSG rules are evaluated in priority order, with lower numbers evaluated first. A deny rule with priority 200 is evaluated before an allow rule with priority 250, so changing the deny rule priority to 65000 (a higher number) would cause it to be evaluated later, but the allow rule still has a higher priority number (250) than the deny rule (200), so the deny rule would still be evaluated first. The correct fix is to lower the allow rule priority below 200.
★ When this WOULD be the correct answer
This option would be correct if the question stated that the deny rule was blocking traffic that should be allowed, and the goal was to ensure the deny rule is evaluated last (e.g., to allow all other traffic by default). For example, if the question said: 'An NSG has an allow rule for RDP and a deny-all rule with priority 100. The administrator wants to ensure that the deny-all rule is evaluated last. What should be done?'
Why candidates choose this
Candidates may think that increasing the deny rule's priority number (making it lower priority) will allow the allow rule to take effect, but they overlook that the allow rule's priority (250) is already higher than the deny rule's (200), so the deny rule is still evaluated first. They might also confuse priority numbers with precedence, thinking higher numbers are evaluated first.
✗Convert the allow rule to an outbound rule instead of inbound.Wrong answer — click to see why▾
Why this is wrong here
The issue is that the Deny-All-Inbound rule with priority 200 is evaluated before the Allow-Admin-HTTPS rule with priority 250, blocking the traffic. Changing the allow rule to outbound would not affect inbound HTTPS traffic, which is the problem.
★ When this WOULD be the correct answer
In a scenario where a VM needs to initiate HTTPS connections to an external server, and outbound traffic is being blocked by a default deny outbound rule, adding an outbound allow rule with appropriate priority would resolve the issue.
Why candidates choose this
Candidates may confuse inbound and outbound traffic directions, thinking that allowing outbound HTTPS would permit the connection, or they might misremember that NSG rules are stateful and assume outbound rules affect inbound traffic.
✗Replace the NSG with a route table so HTTPS can pass through the subnet.Wrong answer — click to see why▾
Why this is wrong here
Route tables control traffic routing between subnets and on-premises networks, not traffic filtering. They cannot permit or deny specific ports like HTTPS; NSGs are required for that.
★ When this WOULD be the correct answer
A question where a VM in a subnet cannot reach the internet or another network due to missing or incorrect routes (e.g., no default route to the internet), and the solution is to add a route table with a proper next hop.
Why candidates choose this
Candidates may confuse routing (route tables) with filtering (NSGs), thinking that a route table can allow traffic by directing it, rather than understanding that NSGs are the firewall for port-based access control.
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often assume higher priority numbers mean higher precedence, but in Azure NSGs, lower priority numbers are evaluated first, so a deny rule with a lower number will block traffic before a higher-numbered allow rule can permit it.
Detailed technical explanation
How to think about this question
Azure NSGs evaluate rules in priority order, from lowest to highest number, and stop processing once a matching rule is found (the first match wins). The default DenyAllInbound rule has priority 65000, but custom deny rules at lower priorities can override allows. In this scenario, the deny rule at 200 matches all inbound traffic, so the allow rule at 250 is never reached. A common real-world scenario is when an administrator adds a high-priority deny rule for security but forgets to place critical allow rules at even lower priorities, causing connectivity failures.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.
Visual reference
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Implement and Manage Virtual Networking — study guide chapter
Learn the concepts, then practise the questions
- →
Implement and Manage Virtual Networking practice questions
Targeted practice on this topic area only
- →
All AZ-104 questions
1,170 questions across all exam domains
- →
AZ-104 study guide
Full concept coverage aligned to exam objectives
- →
AZ-104 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AZ-104 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Manage Azure Identities and Governance practice questions
Practise AZ-104 questions linked to Manage Azure Identities and Governance.
Implement and Manage Storage practice questions
Practise AZ-104 questions linked to Implement and Manage Storage.
Deploy and Manage Azure Compute practice questions
Practise AZ-104 questions linked to Deploy and Manage Azure Compute.
Implement and Manage Virtual Networking practice questions
Practise AZ-104 questions linked to Implement and Manage Virtual Networking.
Monitor and Maintain Azure Resources practice questions
Practise AZ-104 questions linked to Monitor and Maintain Azure Resources.
AZ-104 Azure RBAC practice questions
Practise AZ-104 questions linked to AZ-104 Azure RBAC.
AZ-104 storage account practice questions
Practise AZ-104 questions linked to AZ-104 storage account.
AZ-104 virtual network practice questions
Practise AZ-104 questions linked to AZ-104 virtual network.
AZ-104 NSG practice questions
Practise AZ-104 questions linked to AZ-104 NSG.
AZ-104 Azure Monitor practice questions
Practise AZ-104 questions linked to AZ-104 Azure Monitor.
AZ-104 backup practice questions
Practise AZ-104 questions linked to AZ-104 backup.
AZ-104 managed identity practice questions
Practise AZ-104 questions linked to AZ-104 managed identity.
Practice this exam
Start a free AZ-104 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-104 question test?
Implement and Manage Virtual Networking — This question tests Implement and Manage Virtual Networking — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Change the allow rule priority to a number lower than 200. — The Deny-All-Inbound rule with priority 200 is evaluated before the Allow-Admin-HTTPS rule with priority 250 because NSG rules are processed in order of ascending priority (lower numbers are evaluated first). Since the deny rule matches all inbound traffic, it blocks the HTTPS connection before the allow rule can be evaluated. To resolve this, the allow rule must have a priority lower than 200 (e.g., 150) so it is evaluated first and permits the traffic from the specified public IP.
What should I do if I get this AZ-104 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
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 →
Keep practising
More AZ-104 practice questions
- A storage automation service principal must upload, read, and delete blob data in one container by using Microsoft Entra…
- A subnet contains several application servers. You need to allow inbound TCP 3389 only from a management subnet named Su…
- A subscription admin wants to investigate who changed a resource and also review the platform-generated events for that…
- Based on the exhibit, which Azure feature should the administrator use to track this kind of platform-wide service issue…
- An administrator wants a script running on an Azure VM to create a resource in Azure without storing any passwords or cl…
- A PowerShell script runs on an Azure VM every night and uses Azure CLI commands to create tags and VM resources in anoth…
Last reviewed: Jun 11, 2026
This AZ-104 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-104 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.