mediummultiple choiceObjective-mapped

A subnet has an NSG with an inbound allow rule for TCP 3389 at priority 200 and an inbound deny rule for Internet traffic at priority 100. An administrator still cannot RDP to a virtual machine in the subnet from home. What is the most likely reason?

Question 1mediummultiple choice
Full question →

A subnet has an NSG with an inbound allow rule for TCP 3389 at priority 200 and an inbound deny rule for Internet traffic at priority 100. An administrator still cannot RDP to a virtual machine in the subnet from home. What is the most likely reason?

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

The allow rule is ignored because inbound rules cannot permit RDP.

NSGs can allow or deny RDP traffic. The issue is not the protocol itself, but how the rules are prioritized and matched.

B

Best answer

The deny rule wins because lower priority numbers are processed first.

Azure NSG rules are evaluated in priority order, and the lowest number is processed first. Because the deny rule has priority 100, it is evaluated before the allow rule at 200 and blocks the traffic.

C

Distractor review

NSG rules apply only to outbound traffic, so inbound traffic is unaffected.

NSGs filter both inbound and outbound traffic. Inbound traffic can absolutely be blocked by an NSG rule on the subnet or NIC.

D

Distractor review

The subnet NSG is ignored whenever the VM has a public IP address.

A public IP does not bypass NSG evaluation. Traffic still must satisfy the applicable inbound and outbound security 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-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: The deny rule wins because lower priority numbers are processed first. — Azure NSG rules are processed in ascending priority order, so lower numbers take precedence. In this scenario, the deny rule at priority 100 matches Internet traffic before the allow rule at 200 can be considered. That means the RDP session is blocked even though an allow rule exists. When troubleshooting, always check the effective rules and remember that the most specific desired allow must not be shadowed by an earlier deny. Why others are wrong: NSGs can allow RDP when the rule is correct, so the protocol itself is not the issue. NSGs filter both inbound and outbound directions, so inbound traffic is definitely in scope. A public IP does not bypass the NSG; security evaluation still occurs before the packet reaches the VM. The failure is explained by priority, not by the existence of the public IP or the inbound direction.

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.