mediummultiple choiceObjective-mapped

A company has an Azure virtual network with a subnet hosting web servers. The security policy requires that all inbound HTTP traffic must be sourced from a specific IP address range (203.0.113.0/24). All other inbound traffic must be denied. The subnet is associated with a network security group (NSG). Which set of inbound rules should they configure?

Question 1mediummultiple choice
Full question →

A company has an Azure virtual network with a subnet hosting web servers. The security policy requires that all inbound HTTP traffic must be sourced from a specific IP address range (203.0.113.0/24). All other inbound traffic must be denied. The subnet is associated with a network security group (NSG). Which set of inbound rules should they configure?

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

Best answer

Allow HTTP from 203.0.113.0/24 (priority 100), then Deny all inbound (priority 200)

Correct. The allow rule has a lower priority number (100) and is evaluated first. The subsequent deny-all rule (priority 200) blocks any traffic not matching the allow rule.

B

Distractor review

Deny all inbound (priority 100), then Allow HTTP from 203.0.113.0/24 (priority 200)

Incorrect. The deny-all rule has a lower priority, so it will be evaluated first and block all traffic, including HTTP from the allowed source. The allow rule would never be reached.

C

Distractor review

Allow HTTP from any (priority 100), then Deny all inbound (priority 200)

Incorrect. This would allow HTTP from any source, including from outside the specified range, violating the policy.

D

Distractor review

Only Allow HTTP from 203.0.113.0/24 (priority 100) with no explicit deny

Incorrect. Without an explicit deny rule to block other traffic, the default NSG rule (allow inbound from virtual network and load balancer) would allow other traffic not explicitly denied. To deny all other inbound, an explicit deny-all rule is needed.

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: Allow HTTP from 203.0.113.0/24 (priority 100), then Deny all inbound (priority 200) — NSG rules are evaluated in priority order (lowest number first). To allow only HTTP from a specific source and deny all other inbound traffic, you need an allow rule for HTTP from that source with a low priority, followed by a deny-all inbound rule with a higher priority (higher number). The deny-all rule should be placed after the allow rule. Option A correctly sequences the allow rule first.

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.