CertLumen

Microsoft Azure Administrator (AZ-104) · Section 1 · 23% of the exam

Configure resource locks

One of the objectives of the Microsoft Azure Administrator (AZ-104) exam, in the section “Manage Azure identities and governance”. Here is what it covers, the points to remember and a question to try.

What it covers

RBAC says who can act; Azure Policy says what resources may look like, locks stop accidental deletion or change, and tags label resources for organization and cost. This lesson covers definitions, initiatives, assignments, effects and remediation, the two lock levels and their side effects, and tag rules, limits and inheritance.

Points to remember

  • Policy governs resource properties for everyone; RBAC governs who can act; locks stop delete/modify regardless of role.
  • Definition -> initiative (set) -> assignment at a scope; exclusions (notScopes) and exemptions skip resources.
  • Effects: Deny, Audit, Append, Modify, DeployIfNotExists, AuditIfNotExists, Disabled; evaluation order disabled, append/modify, deny, audit.
  • Modify and DeployIfNotExists use a managed identity; existing resources need a remediation task.
  • Evaluation: new assignment ~5 min then scan, resource change ~15 min, every 24 hours, or on demand with trigger-scan.

Try a question

The finance team must add and update cost-center tags on every resource in a subscription, but must not be able to change the resources themselves. Which role should they get on the subscription?

  1. AContributor
  2. BTag Contributor
  3. CReader
  4. DCost Management Contributor
Show the answer

B. Tag Contributor grants write access to the Microsoft.Resources/tags resource type, so users can tag any resource without having access to the resource itself. Contributor would also let them change the resources.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Azure Policy, resource locks and tags teaches this objective (about 55 minutes), and 20 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 81 objectives · Next objective →