mediummultiple choiceObjective-mapped

A backend VM must accept TCP 8443 only from the web tier. The subnet NSG already has a deny-all inbound rule at priority 200. The administrator adds an allow rule for the web tier at priority 300, but the connection still fails. What should be changed?

Question 1mediummultiple choice
Full question →

A backend VM must accept TCP 8443 only from the web tier. The subnet NSG already has a deny-all inbound rule at priority 200. The administrator adds an allow rule for the web tier at priority 300, but the connection still fails. What should be changed?

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

Change the allow rule to a lower priority number than 200.

NSG rules are processed in priority order, where the lowest number wins. The allow rule must be evaluated before the deny-all rule to permit the traffic.

B

Distractor review

Change the allow rule protocol from TCP to Any.

The failure is caused by rule priority, not protocol selection. Changing the protocol alone will not override an earlier deny rule.

C

Distractor review

Move the VM to a different subnet so the rule can apply.

Subnet placement does not change NSG evaluation. The same priority behavior applies in any subnet where the NSG is attached.

D

Distractor review

Add a route table entry for TCP 8443 to bypass the NSG.

Route tables control next-hop selection, not packet filtering. They cannot override an NSG deny decision.

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: Change the allow rule to a lower priority number than 200. — The allow rule must have a lower numeric priority than the deny-all rule. Azure NSGs evaluate rules from the lowest number to the highest, and the first matching rule wins. If the deny-all inbound rule is priority 200, an allow rule at 300 is never reached. Moving the allow rule ahead of the deny rule is the correct fix for this access issue. Why others are wrong: Changing protocol does not help when a lower-numbered deny rule already matches. Moving the VM to another subnet does not bypass NSG logic. Route tables influence forwarding decisions only; they do not control whether the NSG allows or blocks a packet.

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.