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
In Azure Policy, what is an initiative?
- A single rule that checks one resource property
- A group of policy definitions assigned as one item
- A role that lets users create policy assignments
- 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.
Which of these are Azure Policy effects?
- deny
- audit
- modify
- CanNotDelete
- 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.
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.
