mediummultiple choiceObjective-mapped

A subnet has these inbound NSG rules: Rule 100 denies TCP 3389 from Internet, Rule 200 allows TCP 3389 from 10.0.0.0/8, and Rule 300 allows TCP 3389 from AzureLoadBalancer. An administrator in 10.20.5.4 cannot RDP to a VM in the subnet. Why is the connection denied?

Question 1mediummultiple choice
Full question →

A subnet has these inbound NSG rules: Rule 100 denies TCP 3389 from Internet, Rule 200 allows TCP 3389 from 10.0.0.0/8, and Rule 300 allows TCP 3389 from AzureLoadBalancer. An administrator in 10.20.5.4 cannot RDP to a VM in the subnet. Why is the connection denied?

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

The deny rule at priority 100 matches before the allow rule at priority 200.

NSG rules are evaluated in priority order, and the lowest number is processed first. Even though 10.20.5.4 is inside 10.0.0.0/8, the deny rule for Internet at priority 100 can still be the effective match if the packet is classified through a broader source condition that fits earlier evaluation logic in the rule set. The key lesson is that priority order determines which rule wins, not how desirable the allow rule looks later in the list.

B

Distractor review

The AzureLoadBalancer service tag blocks all other inbound traffic on that port.

The AzureLoadBalancer tag does not block traffic from non-Azure sources; it only matches load balancer probe traffic.

C

Distractor review

The VM needs a public IP address for RDP to work from a private source.

A public IP is not required for RDP inside Azure or from an appropriate private network path.

D

Distractor review

NSG rules are processed by longest prefix match, so the /8 source loses to the /32 VM address.

NSGs do not use longest-prefix match. They are processed by priority, then rule match criteria.

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 at priority 100 matches before the allow rule at priority 200. — NSG evaluation is based on priority, and the lowest priority number wins. If a deny rule matches earlier than an allow rule, the connection is blocked even when the administrator expects the allow rule to apply. In operational troubleshooting, you should always check whether a broader deny rule has a higher precedence than the intended allow rule. Rule order is a common source of unexpected access failures in Azure networking. Why others are wrong: B confuses a service tag with a blocking mechanism. C is incorrect because private RDP access does not require a public IP. D describes routing behavior, not NSG rule processing.

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.