mediummultiple choiceObjective-mapped

An administrator added an NSG rule named Allow-Admin-HTTPS with priority 250 to permit inbound TCP 443 from a single public IP. The NSG also contains a Deny-All-Inbound rule with priority 200. The administrator still cannot connect to the VM over HTTPS from the allowed IP. What should be changed to resolve the issue?

Question 1mediummultiple choice
Full question →

An administrator added an NSG rule named Allow-Admin-HTTPS with priority 250 to permit inbound TCP 443 from a single public IP. The NSG also contains a Deny-All-Inbound rule with priority 200. The administrator still cannot connect to the VM over HTTPS from the allowed IP. What should be changed to resolve the issue?

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 priority to a number lower than 200.

NSG rules are evaluated in ascending priority order, so the lower number is processed first. Because Deny-All-Inbound at 200 is taking effect before the allow rule at 250, the connection is blocked. Moving the allow rule to a priority such as 150 ensures the specific HTTPS exception is matched before the broad deny rule.

B

Distractor review

Change the deny rule priority to 65000 so it is evaluated first.

A higher numeric priority is evaluated later, not earlier, so this would not fix the problem correctly.

C

Distractor review

Convert the allow rule to an outbound rule instead of inbound.

The issue is inbound access to the VM, so an outbound rule would not affect the connection attempt.

D

Distractor review

Replace the NSG with a route table so HTTPS can pass through the subnet.

Route tables affect next-hop selection, not packet अनुमति decisions for inbound traffic.

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 priority to a number lower than 200. — The allow rule must be evaluated before the deny-all rule. In Azure NSGs, lower priority numbers win. Since the deny rule at 200 is ahead of the allow rule at 250, the traffic never reaches the exception. Lowering the allow rule's priority to a number below 200 is the correct way to permit only the intended administrator source IP on HTTPS. Why others are wrong: Raising the deny rule to a larger number would make it less likely to be evaluated early, but it still does not address the rule ordering problem as stated. Outbound rules do not control inbound connections. A route table cannot override NSG filtering because routing and security are separate functions.

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.