mediummultiple choiceObjective-mapped

A company has an Azure virtual network with a subnet hosting internal web applications. The security team needs to allow inbound HTTPS traffic only from the company's corporate network IP range (203.0.113.0/24). All other inbound traffic must be denied. They want to use a network security group (NSG) associated with the subnet. Which inbound security rule configuration meets this requirement?

Question 1mediummultiple choice
Full question →

A company has an Azure virtual network with a subnet hosting internal web applications. The security team needs to allow inbound HTTPS traffic only from the company's corporate network IP range (203.0.113.0/24). All other inbound traffic must be denied. They want to use a network security group (NSG) associated with the subnet. Which inbound security rule configuration meets this requirement?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

One inbound rule: Allow HTTPS from 203.0.113.0/24 with priority 100. No other rules. Rely on the default deny-all rule.

The default deny-all rule has priority 65000, which is lower than the allow rule. But any other traffic will be denied by the default rule. However, if there are other allow rules (like default allow vnet inbound), they may allow traffic from other sources. The scenario requires denying all other traffic, so a custom deny rule is needed to override any potential allow rules.

B

Best answer

Two inbound rules: Allow HTTPS from 203.0.113.0/24 with priority 100, and Deny All from Any with priority 110.

The allow rule (priority 100) permits HTTPS from the corporate IP. The deny rule (priority 110) blocks all other inbound traffic. Since the deny rule has a lower priority number (higher priority) than any default rules, it effectively blocks everything except the allowed HTTPS traffic.

C

Distractor review

Two inbound rules: Deny All from Any with priority 100, and Allow HTTPS from 203.0.113.0/24 with priority 110.

The deny rule with priority 100 would block all traffic, including the HTTPS traffic from the corporate IP, because the deny rule is evaluated first (lower number = higher priority). The allow rule would never be applied.

D

Distractor review

One inbound rule: Deny All from Any with priority 100. No allow rules. Use application security groups.

This would block all inbound traffic, including HTTPS from the corporate network, which is not allowed. ASGs do not change the need for allow rules.

Common exam trap

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.

Technical deep dive

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.

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.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-500 question test?

CIDR notation defines the prefix length.

What is the correct answer to this question?

The correct answer is: Two inbound rules: Allow HTTPS from 203.0.113.0/24 with priority 100, and Deny All from Any with priority 110. — NSGs process rules by priority order. To allow only specific source IPs on HTTPS and deny all other inbound traffic, you need an allow rule with the source IP range for HTTPS and a lower-priority deny-all rule for any source. The deny rule must have a priority higher (lower number) than the default deny-all rule (which is already present) to ensure it is evaluated before the default. However, the default deny inbound rule has priority 65000, so a custom deny rule with priority 4096 (or similar) will block all other traffic before the default is considered. The allow rule must be even higher priority (lower number) than the deny rule.

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

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.