Azure Administrator AZ-104 · Manage Azure Identities and Governance · hard

A cloud governance architect assigns an Azure Policy definition with the Modify effect at the subscription scope to automatically add a CostCenter = 4020 tag to any resource group missing that tag. New resource groups created after the assignment receive the tag automatically, but 35 existing resource groups created last year still lack the tag. What must the architect create so Azure Policy updates those 35 existing resources?

Published · Last updated · checked before publication — how we verify questions

Options

  • AChange the Azure Policy definition effect from Modify to Audit
  • BApply a CanNotDelete resource lock to the subscription root scope
  • CCreate an Azure Policy Remediation Task using the managed identityCorrect answer
  • DRestart the virtual machines running inside the 35 resource groups

Answer: C. Create an Azure Policy Remediation Task using the managed identity

Policy definitions using the Modify or DeployIfNotExists effects automatically evaluate new or updated resources during ARM requests, but to remediate pre-existing non-compliant resources, you must create a Remediation Task using the policy assignment's managed identity.

Why the other options are wrong

  • A. Change the Azure Policy definition effect from Modify to Audit — The Audit effect only logs a compliance warning in the Activity Log and never modifies tags.
  • B. Apply a CanNotDelete resource lock to the subscription root scope — Resource locks prevent deletion and do not remediate missing tags on existing resource groups.
  • D. Restart the virtual machines running inside the 35 resource groups — Rebooting guest OS virtual machines does not trigger ARM resource-group tag remediation.

All Manage Azure Identities and Governance questions and the topic overview →

Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.