CertLumen

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

Apply and manage tags on resources

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 policy was assigned to a subscription ten minutes ago. An administrator wants the compliance results for the resource group rg-app immediately instead of waiting for the next automatic cycle. What should the administrator do?

  1. ADelete and re-create the assignment
  2. BStart an on-demand scan, for example az policy state trigger-scan --resource-group rg-app
  3. CRun az policy remediation create for the assignment
  4. DWait 24 hours, because compliance can only be refreshed by the standard evaluation cycle
Show the answer

B. Besides evaluation after an assignment (about five minutes to apply), on resource changes, and every 24 hours, you can trigger an on-demand scan for a subscription or resource group with az policy state trigger-scan or Start-AzPolicyComplianceScan.

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 →