Bitzu

AZ-900 ยท Governance and compliance

Azure Policy

Policy definitions and initiatives, evaluating and enforcing rules (deny, audit, remediate), assignment scope and inheritance down the hierarchy.

Key points

  • Evaluates Azure resources against rules written as policy definitions (JSON).
  • Definitions can be grouped into an initiative and assigned to a management group, subscription, resource group or resource; child scopes inherit the assignment.
  • Effects such as deny, audit or modify decide what happens, and remediation tasks can fix existing non-compliant resources.

Source: https://learn.microsoft.com/en-us/azure/governance/policy/overview

Practice questions

Single choice

In Azure Policy, what is an initiative?

  1. A single rule that checks one resource property
  2. A group of policy definitions assigned as one item
  3. A role that lets users create policy assignments
  4. A lock that stops policies from being changed
Show answer

Answer: B. A group of policy definitions assigned as one item

An initiative (policy set) groups several policy definitions toward one goal so they can be assigned and tracked as one item. It is not a role assignment or a lock.

Select all that apply

Which of these are Azure Policy effects?

  1. deny
  2. audit
  3. modify
  4. CanNotDelete
  5. ReadOnly
Show answer

Answer: A. deny, B. audit, C. modify

deny, audit and modify are policy effects. CanNotDelete and ReadOnly are resource lock levels, a separate feature.

True or false

Assigning a policy with the deny effect deletes existing resources that break the rule.

Show answer

Answer: False

False. Deny blocks new create or update requests; resources that already exist and match the rule are only marked non-compliant.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More AZ-900 topics in this module