nerdexam
Microsoft

AZ-305 · Question #443

Hotspot Question You need to design an Azure policy that will implement the following functionality: - For new resources, assign tags and values that match the tags and values of the resource group…

This question tests knowledge of Azure Policy effects and the correct managed identity role required to implement tag inheritance with automated remediation using the principle of least privilege.

Submitted by joshua94· Mar 6, 2026Design identity, governance, and monitoring solutions

Question

Hotspot Question You need to design an Azure policy that will implement the following functionality: - For new resources, assign tags and values that match the tags and values of the resource group to which the resources are deployed. - For existing resources, identify whether the tags and values match the tags and values of the resource group that contains the resources. - For any non-compliant resources, trigger auto-generated remediation tasks to create missing tags and values. The solution must use the principle of least privilege. What should you include in the design? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibits

AZ-305 question #443 exhibit 1
AZ-305 question #443 exhibit 2

Answer Area

  • Azure Policy effect to use:
    AppendAuditMutateModify
  • Microsoft Entra object and role-based access control (RBAC) role to use for the remediation tasks:
    A managed identity with the Contributor roleA managed identity with the User Access Administrator roleA service principal with the Contributor roleA service principal with the User Access Administrator role

Explanation

This question tests knowledge of Azure Policy effects and the correct managed identity role required to implement tag inheritance with automated remediation using the principle of least privilege.

Approach. For the Policy Effect, you should use 'Modify' - this effect is used to add, update, or delete tags on resources during creation/update (for new resources) and supports remediation tasks for existing non-compliant resources. The 'Modify' effect evaluates existing resources for compliance and allows auto-generated remediation tasks to fix non-compliant resources by applying the missing tags. For the Managed Identity Role Assignment, you should assign the 'Contributor' role - however, following the principle of least privilege, the minimum required role is 'Tag Contributor', which grants only the permissions needed to write tags on resources without granting broader permissions. The Tag Contributor built-in role allows the managed identity used by the remediation task to add or update tags on existing resources without granting unnecessary access. The policy initiative should use the built-in 'Inherit a tag from the resource group if missing' policy definition, which uses the Modify effect and requires a managed identity with Tag Contributor permissions to perform remediation.

Concept tested. Azure Policy effects (specifically the 'Modify' effect for tag management and remediation), managed identity role assignments for remediation tasks, and the principle of least privilege when assigning roles to policy-managed identities.

Reference. https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects#modify

Topics

#Azure Policy#Resource tagging#Managed identities#RBAC

Community Discussion

No community discussion yet for this question.

Full AZ-305 Practice