mediummultiple choiceObjective-mapped

A company has an Azure virtual network with a subnet that hosts a web application. They want to allow inbound HTTPS traffic from any source on the internet (0.0.0.0/0) and block all other inbound traffic. They associate a network security group (NSG) with the subnet. What is the minimum number of inbound security rules required to achieve this?

Question 1mediummultiple choice
Full question →

A company has an Azure virtual network with a subnet that hosts a web application. They want to allow inbound HTTPS traffic from any source on the internet (0.0.0.0/0) and block all other inbound traffic. They associate a network security group (NSG) with the subnet. What is the minimum number of inbound security rules required to achieve this?

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 allowing HTTPS from Internet, and one inbound rule DenyAllInbound.

The explicit deny rule is unnecessary because the default rule already denies all inbound traffic.

B

Best answer

One inbound rule allowing HTTPS from Internet.

The default NSG rules deny all inbound traffic; adding an allow rule for HTTPS is sufficient.

C

Distractor review

Two inbound rules: one allowing HTTPS from Internet, one allowing HTTP from Internet.

Only HTTPS is required; HTTP is not needed and would allow unwanted traffic.

D

Distractor review

Two inbound rules: one allowing HTTPS from Internet, one allowing RDP from Internet.

RDP should not be allowed from the internet.

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: One inbound rule allowing HTTPS from Internet. — Network security groups have default inbound rules that deny all inbound traffic except for the default allow rules (like VNet and Azure Load Balancer). Adding a single allow rule for HTTPS will allow that traffic; all other traffic is implicitly denied by the default deny rules. No explicit deny rule is needed.

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.