mediummultiple choiceObjective-mapped

A VM has an NSG with these inbound rules: Deny-RDP at priority 100 for TCP 3389 from Any, and Allow-RDP-Admins at priority 200 for TCP 3389 from 10.8.1.0/24. Admins from 10.8.1.0/24 still cannot connect by RDP. What change fixes access while keeping all other sources blocked?

Question 1mediummultiple choice
Full question →

A VM has an NSG with these inbound rules: Deny-RDP at priority 100 for TCP 3389 from Any, and Allow-RDP-Admins at priority 200 for TCP 3389 from 10.8.1.0/24. Admins from 10.8.1.0/24 still cannot connect by RDP. What change fixes access while keeping all other sources blocked?

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

Change the deny rule to protocol Any so the allow rule will be evaluated first.

Changing the protocol does not alter priority order, so the deny rule would still win if it remains higher precedence.

B

Distractor review

Add a UDR that sends TCP 3389 traffic to the VM subnet.

Route tables influence path selection, not NSG rule evaluation, so they will not fix an inbound deny decision.

C

Best answer

Move the allow rule to a lower priority number than 100.

NSG rules are evaluated in priority order, where the lowest number wins. Because the deny rule at priority 100 is matched before the allow rule at 200, the connection is blocked even for the admin subnet. Moving the allow rule to a priority such as 90 makes it the first matching rule, while the deny rule still blocks all other sources afterward.

D

Distractor review

Associate an application security group with the VM and keep the existing priorities.

Application Security Groups can simplify rule maintenance, but they do not override an earlier deny rule with a higher priority.

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: Move the allow rule to a lower priority number than 100. — NSG processing is based on priority, and the lowest numbered matching rule is applied first. In this case, the deny rule at priority 100 matches TCP 3389 from Any before the allow rule at 200 can be considered. The correct fix is to give the allow rule a lower number than the deny rule, such as 90, so the admin subnet is allowed while everyone else is still denied. Why others are wrong: Changing protocol settings does not change the evaluation order, so the deny still takes precedence. A UDR cannot override NSG behavior because routing and filtering are separate functions. An ASG can reduce IP management work, but it cannot make a lower-priority allow rule beat a higher-priority deny rule.

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.