easymultiple choiceObjective-mapped

Exhibit

Azure portal notes

Automation account: aa-appops
Target resource group: RG-App
Required actions:
- Restart virtual machines
- Read virtual machine properties
- Read network interface properties
Not allowed:
- Delete any resource
- Modify network settings
- Manage resources outside RG-App

Current built-in role testing:
Virtual Machine Contributor = can restart VMs, but also can manage disks and extensions
Reader = can read resources, but cannot restart VMs

Based on the exhibit, an automation account must restart virtual machines and read network interface settings in RG-App. Built-in roles are too broad because they also allow actions the team does not want. What should the administrator do?

Question 1easymultiple choice
Full question →

Based on the exhibit, an automation account must restart virtual machines and read network interface settings in RG-App. Built-in roles are too broad because they also allow actions the team does not want. What should the administrator do?

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

Assign the Reader role at RG-App, because reading permissions automatically include restart actions.

Reader is too limited for this requirement. It allows viewing resources but does not permit restart actions on virtual machines. The note in the exhibit explicitly says Reader cannot restart VMs, so it cannot satisfy the automation account's task.

B

Best answer

Create a custom role with only the required read and restart actions, then assign it at RG-App.

A custom role is the correct solution when built-in roles are broader than needed. By defining only the required VM restart action and read permissions for the VM and network interface, the administrator can keep permissions tightly limited to RG-App and avoid unnecessary capabilities such as deletion or network changes.

C

Distractor review

Assign Virtual Machine Contributor at the subscription scope so the automation account can reach all resources.

Virtual Machine Contributor includes more permissions than needed, and subscription scope would extend those permissions to every resource group. That would violate the requirement to keep access confined to RG-App and to avoid deletion or broader management capabilities.

D

Distractor review

Create a management group and move RG-App into it so only the needed actions are exposed.

Management groups organize subscriptions for governance, but they do not reduce permissions in the way described here. Moving a resource group to a management group does not automatically create a narrow permission set. The access problem is solved by a custom RBAC role, not by hierarchy changes.

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: Create a custom role with only the required read and restart actions, then assign it at RG-App. — A custom role is the right choice because the required permissions are specific and the built-in roles are either too broad or too limited. The administrator can define exactly the needed read actions plus the restart action, then assign that role at the RG-App scope. This delivers least privilege and keeps the automation account from deleting or modifying unrelated resources. Why others are wrong: Reader cannot restart VMs, so it fails the operational requirement. Virtual Machine Contributor is broader than needed and would allow actions the team explicitly wants to block. Management groups organize governance boundaries, but they do not substitute for a custom permission set. The problem is permissions, not subscription structure.

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.