Let’s Get Certified
Module 04 / 16 · Identities and governance

Apply policy, locks and cost controls

Select the governance mechanism that matches an enforceable requirement.

Apply policy, locks and cost controls

Management groups organize subscriptions into scopes for inherited assignments. Resource groups collect resources with a related lifecycle. Tags describe ownership and cost allocation. They are metadata and do not automatically flow from a resource group to each child. Azure Policy evaluates resources against assigned definitions and initiatives. An audit records noncompliance. A deny can prevent a noncompliant create or update.

A CanNotDelete resource lock protects against control-plane deletion but generally permits updates. A ReadOnly lock is broader and can affect operations implemented using POST. Budget alerts notify people when spend crosses configured thresholds. A budget alone does not stop consumption. Advisor recommendations provide opportunities to investigate before changing capacity.

Worked case

A team asks for a budget to stop deployments outside approved regions. Which two needs have been combined?

Check your reasoning

Use an Azure Policy assignment with an appropriate location rule to govern deployment location. Use a separate cost budget and notification path to monitor expenditure.

Second worked case

An organization assigned a region policy in audit mode and sees deployments outside the region. Has the assignment failed?

Check your reasoning

Audit records noncompliance. To prevent future out-of-policy deployments, evaluate a deny effect with tested scope and documented exemptions. Review existing resources individually.

Azure Policy effects · Official AZ-104 objectives for this domain

Related lesson in Microsoft Certified: Azure Fundamentals. Separate data governance, policy and protection.

Practice with the recording

A new policy audits storage accounts without a required tag. Existing accounts still lack the tag after a day. What would change that outcome?

Check your reasoning

Audit reports noncompliance. To apply a value to existing resources, choose an appropriate modify policy, authorize its managed identity and run remediation for the desired scope. Confirm the corrected tags and reevaluated compliance.

Current AZ-104 course · 14:43 · John Savill · AZ-104 Study Cram v2 · 54:35

Knowledge check

Apply policy, locks and cost controls quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · Remediating existing resources