mediummultiple choiceObjective-mapped

A Linux VM in a subnet must accept SSH only from the corporate admin subnet 10.8.4.0/24. The subnet NSG currently has an Allow-SSH rule for Any at priority 300 and a Deny-SSH rule for Any at priority 200. Administrators from 10.8.4.0/24 still cannot connect. What change should the administrator make?

Question 1mediummultiple choice
Full question →

A Linux VM in a subnet must accept SSH only from the corporate admin subnet 10.8.4.0/24. The subnet NSG currently has an Allow-SSH rule for Any at priority 300 and a Deny-SSH rule for Any at priority 200. Administrators from 10.8.4.0/24 still cannot connect. 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

Change the deny rule protocol from TCP to Any so the allow rule is evaluated first.

Rule protocol changes do not alter priority order, so the deny would still win.

B

Best answer

Add an Allow-SSH rule for 10.8.4.0/24 with a priority lower than 200.

NSG rules are evaluated by priority, and the lowest number wins. A deny rule at 200 blocks SSH before the allow at 300 is considered. The fix is to add a more specific allow rule for the admin subnet with a higher priority, such as 100, so it is evaluated first. That keeps SSH restricted to approved administrators while preserving the existing deny for everyone else.

C

Distractor review

Move the existing Allow-SSH rule to priority 400 so it applies later.

Moving the allow to a higher number makes it even less likely to be evaluated before the deny rule.

D

Distractor review

Add a route table to the subnet so the SSH packets follow a different path.

Routing does not override an NSG deny. The traffic is blocked by the security rule, not by path selection.

Common exam trap

Common exam trap: authentication is not authorization

Logging in proves the user can authenticate. It does not automatically mean the user is allowed to enter privileged or configuration mode. Watch for AAA authorization, privilege level and command authorization details.

Technical deep dive

How to think about this question

This kind of question is testing the difference between identity and permission. A user may successfully log in to a router because authentication is working, but still fail to enter configuration mode because authorization is missing, misconfigured or mapped to a lower privilege level.

KKey Concepts to Remember

  • Authentication checks who the user is.
  • Authorization controls what the user is allowed to do after login.
  • Privilege levels affect access to EXEC and configuration commands.
  • AAA, TACACS+ and RADIUS can separate login success from command access.

TExam Day Tips

  • Do not assume successful login means full administrative access.
  • Look for words such as cannot enter configuration mode, privilege level, authorization or command access.
  • Separate login problems from permission problems before choosing the answer.

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?

Authentication checks who the user is.

What is the correct answer to this question?

The correct answer is: Add an Allow-SSH rule for 10.8.4.0/24 with a priority lower than 200. — The current deny rule at priority 200 is matched before the broader allow rule at 300, so SSH is blocked for everyone. To allow only the corporate admin subnet, the administrator must create a more specific allow rule with a lower priority number than the deny, such as 100. That rule should match the source subnet and TCP 22. This preserves least privilege and uses NSG evaluation order correctly. Why others are wrong: Changing protocol settings does not affect priority, so the deny still takes precedence. Lowering the existing allow to 400 makes it evaluate even later. A route table cannot fix an NSG denial because routing decisions happen independently of security filtering. The problem is rule order and specificity, not packet path.

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.