mediummultiple choiceObjective-mapped

A subnet NSG contains a deny inbound rule for TCP 3389 from Any at priority 100 and an allow inbound rule for TCP 3389 from 10.4.1.0/24 at priority 200. Admin workstations in 10.4.1.0/24 cannot connect by RDP. What change should the administrator make?

Question 1mediummultiple choice
Full question →

A subnet NSG contains a deny inbound rule for TCP 3389 from Any at priority 100 and an allow inbound rule for TCP 3389 from 10.4.1.0/24 at priority 200. Admin workstations in 10.4.1.0/24 cannot connect by RDP. What change should the administrator make?

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

Replace the source IP range with an application security group in the allow rule.

Source grouping helps manageability, but it does not fix a higher-priority deny rule.

B

Distractor review

Change the protocol from TCP to Any in the allow rule.

The rule already matches RDP traffic; protocol broadening does not change priority order.

C

Best answer

Lower the allow rule priority number so it is evaluated before the deny rule.

NSG rules are evaluated from lowest number to highest, so the allow must come first.

D

Distractor review

Add a user-defined route to the subnet so RDP traffic bypasses the NSG.

Routing changes do not bypass NSG filtering, because NSGs still evaluate the packet.

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: Lower the allow rule priority number so it is evaluated before the deny rule. — Azure NSG rules are processed in priority order, where the lowest number is evaluated first. In this case, the deny rule at priority 100 matches before the allow rule at 200, so the connection is blocked even though the source is permitted. The fix is to assign the allow rule a lower number than 100, such as 90, so the intended management subnet is permitted before the broader deny rule is applied. Why others are wrong: Changing the source object type or protocol does not overcome a rule that is already denied earlier in the list. A user-defined route changes next-hop selection, not security enforcement. The core issue is the rule order, so the correct remediation must adjust priority rather than the address, protocol, or routing layer.

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.