Question 709 of 1,000
Secure networkingeasyMultiple ChoiceObjective-mapped

AZ-500 NSGs have default inbound and outbound rules. 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. A key principle to apply: nSGs have default inbound and outbound rules.. 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 a subnet that hosts a web application. The security team wants to allow inbound HTTPS traffic (port 443) from the internet to the web servers, but block all other inbound traffic. They have a network security group (NSG) associated with the subnet. What is the minimal set of inbound rules required?

Question 1easymultiple 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

A rule allowing HTTPS from Internet, and no other rules (default deny all inbound).

Network security groups (NSGs) in Azure have a default deny-all inbound rule (rule 65500) that is automatically applied to all inbound traffic. Therefore, you only need to add an explicit allow rule for HTTPS (port 443) from the Internet. No additional deny rule is required because the default rule already blocks all other inbound traffic.

Key principle: NSGs have default inbound and outbound rules.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • A rule allowing HTTPS from Internet, and a default deny all rule.

    Why it's wrong here

    NSGs already have a default deny-all inbound rule; adding an explicit deny rule is unnecessary and does not represent the minimal set.

  • A rule allowing HTTPS from Internet, and no other rules (default deny all inbound).

    Why this is correct

    Correct. The default NSG rules deny all inbound internet traffic. Adding only an allow rule for HTTPS is sufficient.

    Related concept

    NSGs have default inbound and outbound rules.

  • A rule allowing HTTPS from Internet, and a rule explicitly denying all other inbound traffic.

    Why it's wrong here

    An explicit deny rule is redundant because the default deny already blocks all other traffic. This is not minimal.

  • A rule allowing HTTPS from any source, and a rule denying all other traffic with lower priority.

    Why it's wrong here

    Including an explicit deny rule is unnecessary. Also, the rule allowing HTTPS from any source would include traffic from the internet, but the explicit deny is not needed.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often think they must add an explicit deny rule to block all other traffic, not realizing that Azure NSGs already include a default deny-all inbound rule that is automatically applied at the lowest priority.

Detailed technical explanation

How to think about this question

Azure NSGs evaluate rules in priority order (lowest number = highest priority) and apply the first matching rule. The default inbound rule (65500) denies all traffic that does not match a higher-priority allow rule. This means that even if you add an explicit deny rule with a higher priority (e.g., 4096), it would only be evaluated if no allow rule matches first, but the default deny already covers all unmatched traffic. In practice, the minimal configuration is a single allow rule for HTTPS, relying on the built-in default deny.

KKey Concepts to Remember

  • NSGs have default inbound and outbound rules.
  • Default inbound rules include a 'DenyAllInbound' rule.
  • Custom rules with lower priority override default rules.
  • Traffic not explicitly allowed by custom rules is blocked by default deny rules.

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

NSGs have default inbound and outbound rules.

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.

Review nSGs have default inbound and outbound rules., then practise related AZ-500 questions on the same topic to reinforce the concept.

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 — NSGs have default inbound and outbound rules..

What is the correct answer to this question?

The correct answer is: A rule allowing HTTPS from Internet, and no other rules (default deny all inbound). — Network security groups (NSGs) in Azure have a default deny-all inbound rule (rule 65500) that is automatically applied to all inbound traffic. Therefore, you only need to add an explicit allow rule for HTTPS (port 443) from the Internet. No additional deny rule is required because the default rule already blocks all other inbound traffic.

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

Review nSGs have default inbound and outbound rules., then practise related AZ-500 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

NSGs have default inbound and outbound rules.

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

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.