AZ-305 · Question #69
Case Study 1 - Litware Existing Environment Azure Environment Litware has 10 Azure subscriptions that are linked to the Litware.com tenant and five Azure subscriptions that are linked to the…
Correct Sequence 1. Create an Azure policy definition that uses the deployIfNotExists effect 2. Create an Azure policy assignment 3. Invoke a remediation task --- Why This Order Step 1 - deployIfNotExists policy definition TDE is a child resource on a SQL database…
Question
Exhibit
Answer Area
Drag items
Explanation
Correct Sequence
- Create an Azure policy definition that uses the
deployIfNotExistseffect - Create an Azure policy assignment
- Invoke a remediation task
Why This Order
Step 1 - deployIfNotExists policy definition
TDE is a child resource on a SQL database (transparentDataEncryption), not a simple property. Enabling it requires deploying that child resource - which is exactly what deployIfNotExists does: it triggers a deployment when a compliant resource (the TDE child) is absent.
Why not Modify? The Modify effect is for adding/changing tags or simple properties on a resource itself. It cannot deploy sub-resources. Using Modify here would be technically incorrect and wouldn't enable TDE.
You must define the policy before you can assign it - hence Step 1.
Step 2 - Create a policy assignment
A policy definition has no effect until it is assigned to a scope. During assignment, Azure automatically provisions a system-assigned managed identity for the policy (required for deployIfNotExists to perform deployments).
This is why "Create a user-assigned managed identity" is a distractor - it's optional and unnecessary; the system-assigned identity is created automatically at assignment time.
Step 3 - Invoke a remediation task
The deployIfNotExists effect only acts on new or updated resources going forward. Existing non-compliant SQL databases (those already without TDE) are not automatically fixed. A remediation task explicitly triggers the policy logic against already-existing non-compliant resources.
Order matters: you cannot remediate before the policy is assigned, and you cannot assign before the definition exists.
Common Mistakes
| Mistake | Why it's wrong |
|---|---|
Choosing Modify instead of deployIfNotExists | Modify can't deploy child resources like TDE |
| Including "Create user-assigned managed identity" | Redundant - system-assigned identity is auto-created at assignment |
| Skipping the remediation task | Existing databases stay non-compliant without it |
| Reversing steps 1 and 2 | You cannot assign a policy that doesn't exist yet |
Topics
Community Discussion
No community discussion yet for this question.
