CertLumen

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

Implement and manage Azure Policy

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

A CanNotDelete lock is set on resource group rg-app. An administrator tries to delete a storage account in rg-app that has no lock of its own. What happens?

  1. AThe delete succeeds, because only resources that have a lock of their own are protected
  2. BThe delete succeeds, but the resource group is then marked read-only
  3. CThe delete is blocked only if the administrator is not an Owner
  4. DThe delete is blocked, because the account inherits the lock from the resource group
Show the answer

D. Locks are inherited by every child resource, including resources created after the lock was set. The most restrictive lock in the chain applies, and it applies to all users.

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 →