Question 23 of 1,000
Secure networkingmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct configuration is an Allow HTTPS rule from the App subnet at priority 100, followed by a Deny All rule at priority 200. This works because Network Security Group rules are evaluated in ascending order of priority, where a lower number means higher precedence; the Allow rule at 100 matches and permits the desired HTTPS traffic first, and the catch-all Deny rule at 200 then blocks everything else, effectively implementing the security policy of allowing only specific traffic while denying all else. On the Microsoft Azure Security Engineer Associate AZ-500 exam, this scenario tests your understanding of NSG rule priority and the default implicit deny—a common trap is assuming a Deny All rule is unnecessary, but without it, the default allow rules would permit unintended traffic. Remember the memory tip: "Low number, high priority—allow first, then deny the rest."

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.

A company has an Azure virtual network with two subnets: App and Data. The App subnet hosts web servers, and the Data subnet hosts SQL databases. Security policy requires that only HTTPS traffic from the App subnet is allowed to the Data subnet, and all other inbound traffic to the Data subnet must be blocked. The solution must use a single network security group (NSG) associated to the Data subnet. Which NSG inbound rule configuration meets the requirement?

Question 1mediummultiple choice
Review the full subnetting walkthrough →

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

Allow HTTPS from App subnet priority 100, then Deny All priority 200

Option A is correct because NSG rules are evaluated in priority order, with lower numbers processed first. By placing the Allow HTTPS rule at priority 100, it matches and permits traffic from the App subnet to the Data subnet. The subsequent Deny All rule at priority 200 then blocks all other inbound traffic, satisfying the security policy with a single NSG on the Data subnet.

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.

  • Allow HTTPS from App subnet priority 100, then Deny All priority 200

    Why this is correct

    Correct. The Allow rule has higher priority (100) than the Deny All rule (200), so HTTPS from App subnet is allowed and all other traffic is blocked.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Deny All priority 100, then Allow HTTPS from App subnet priority 200

    Why it's wrong here

    Incorrect. The Deny All rule has higher priority (100) and would block all traffic, including HTTPS from App subnet, before the Allow rule is evaluated.

  • Allow HTTPS from App subnet priority 100, and Deny All from any source priority 100 (duplicate priority)

    Why it's wrong here

    Incorrect. NSG rules cannot have the same priority. Additionally, this configuration does not guarantee the correct order of evaluation.

  • Allow HTTPS from App subnet priority 100, no other rules

    Why it's wrong here

    Incorrect. Without a Deny All rule, the default implicit allow rule will permit all other inbound traffic to the Data subnet.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may think a Deny All rule is unnecessary because NSGs have an implicit deny at the end, but the explicit Deny All at a lower priority ensures that any traffic not matching the Allow rule is explicitly blocked, which is required by the policy and avoids reliance on the implicit default.

Detailed technical explanation

How to think about this question

NSG rules are processed in ascending priority order until a match is found; if no rule matches, traffic is denied by default. The Allow rule must be explicitly placed before the Deny All to ensure desired traffic is permitted. In Azure, NSGs are stateful, so return traffic from the Data subnet to the App subnet is automatically allowed, but inbound rules control the initial connection.

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

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

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.

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 — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Allow HTTPS from App subnet priority 100, then Deny All priority 200 — Option A is correct because NSG rules are evaluated in priority order, with lower numbers processed first. By placing the Allow HTTPS rule at priority 100, it matches and permits traffic from the App subnet to the Data subnet. The subsequent Deny All rule at priority 200 then blocks all other inbound traffic, satisfying the security policy with a single NSG on the Data subnet.

What should I do if I get this AZ-500 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 →

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. A company deploys Azure virtual machines in a virtual network. A security policy requires that only Remote Desktop Protocol (RDP) traffic from the corporate VPN's public IP address (203.0.113.0/26) is allowed. All other inbound RDP traffic must be denied. Which configuration should be applied to the network security group (NSG) associated with the VM subnet?

easy
  • A.Add an inbound rule to allow RDP from the Internet and a deny rule for RDP from the corporate IP.
  • B.Add an inbound rule to deny RDP from the corporate IP and a default deny all inbound.
  • C.Add an inbound rule to allow RDP from the corporate IP range, and add a default deny rule for all other inbound RDP traffic.
  • D.No additional rules are needed because the default NSG rules already deny RDP.

Why C: Option C is correct because the requirement is to allow RDP (TCP port 3389) only from the corporate VPN's public IP range (203.0.113.0/26) and deny all other inbound RDP traffic. An NSG processes rules in priority order; by adding an inbound allow rule for the corporate IP range with a high priority (e.g., 100) and relying on the default deny rule (which denies all inbound traffic not explicitly allowed), only RDP from the specified range is permitted. This matches the security policy precisely.

Keep practising

More AZ-500 practice questions

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