Question 11 — AZ-104 Practice Exam 9
Arrange the steps to bring existing noncompliant resources into compliance using a deployIfNotExists/modify policy.
Instruction: Drag and drop the items into the correct order, starting with the first step at the top.
- Assign the policy or initiative at the required scope with parameters and attach a system- or user-assigned managed identity
- Create a remediation task targeting the noncompliant resources in scope
- Create or select a policy definition that uses deployIfNotExists or modify
- Platform applies remediation and updates the compliance state
Correct answers
- Create or select a policy definition that uses deployIfNotExists or modify
- Assign the policy or initiative at the required scope with parameters and attach a system- or user-assigned managed identity
- Create a remediation task targeting the noncompliant resources in scope
- Platform applies remediation and updates the compliance state
Explanations
Correct Order:
Create or select a policy definition that uses deployIfNotExists or modify
Assign the policy or initiative at the required scope with parameters and attach a system- or user-assigned managed identity
Create a remediation task targeting the noncompliant resources in scope
Platform applies remediation and updates the compliance state
You must first have a suitable policy definition. Next, the assignment binds it to scope and provides parameters plus a managed identity to execute changes. With those prerequisites, you initiate a remediation task to correct existing drift. Finally, the platform performs the remediation actions and reflects the result in the compliance posture; going forward, applicable new/updated resources can be auto-remediated by the same assignment.