easymultiple choiceObjective-mapped

A subnet has an NSG with a custom inbound deny-all rule at priority 200. You need to allow HTTPS traffic to a VM in that subnet from any source. Which action should you take?

Question 1easymultiple choice
Full question →

A subnet has an NSG with a custom inbound deny-all rule at priority 200. You need to allow HTTPS traffic to a VM in that subnet from any source. Which action should you take?

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

Create an inbound allow rule for TCP 443 with priority 300.

A lower-priority allow rule would still lose to the existing deny-all rule at priority 200.

B

Best answer

Create an inbound allow rule for TCP 443 with priority 100.

A smaller priority number is evaluated first, so a priority 100 allow rule will match before the deny-all rule.

C

Distractor review

Change the deny-all rule to outbound instead of inbound.

That would not solve the inbound HTTPS requirement and could weaken intended traffic controls.

D

Distractor review

Add a route table entry for port 443 traffic to the VM subnet.

Route tables control next hops, not allow or deny decisions for traffic permitted by an NSG.

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-104 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-104 question test?

CIDR notation defines the prefix length.

What is the correct answer to this question?

The correct answer is: Create an inbound allow rule for TCP 443 with priority 100. — NSG rules are processed by priority, and the lowest number wins. Because the deny-all inbound rule is at priority 200, any allow rule for HTTPS must have a lower number such as 100 to be evaluated first. The rule should also match inbound TCP traffic on port 443 from the desired source. Why others are wrong: Option A is evaluated after the deny rule, so it would not be effective. Option C changes the wrong direction and does not allow inbound HTTPS. Option D is unrelated because routing does not override NSG allow and deny decisions.

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