Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 9

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.

  1. Assign the policy or initiative at the required scope with parameters and attach a system- or user-assigned managed identity
  2. Create a remediation task targeting the noncompliant resources in scope
  3. Create or select a policy definition that uses deployIfNotExists or modify
  4. Platform applies remediation and updates the compliance state

Correct answers

  1. Create or select a policy definition that uses deployIfNotExists or modify
  2. Assign the policy or initiative at the required scope with parameters and attach a system- or user-assigned managed identity
  3. Create a remediation task targeting the noncompliant resources in scope
  4. 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.