AZ-104 exam dumps

AZ-104 practice question 35 of 289

Microsoft Certified: Azure Administrator Associate. Associate level, Microsoft. Free question with the correct answer and a full explanation.

AZ-104 Question 35

Single answer

You are an Azure Administrator for Contoso. The company requires all resources in a particular subscription to have a 'Department' tag for cost tracking. Additionally, any existing resources missing the 'Department' tag must be automatically tagged. Which Azure Policy effect should you use to meet both requirements in a single policy definition?

  1. A

    Deny

  2. B

    Append

  3. C

    Modify

  4. D

    AuditIfNotExists

Show answer and explanation

Correct answer: C

Explanation

The Modify effect is the correct choice because it not only enforces the 'Department' tag on newly created resources but also remediates existing resources by assigning the tag if they don’t have it.

  • A. Incorrect.

    Deny will block the creation of resources without the specified tag but will not automatically tag existing resources.

  • B. Incorrect.

    Append only adds the tag to new or updated resources at creation time without changing existing resources lacking the tag.

  • C. Correct.

    Modify can apply the tag to new and existing resources, automatically fixing noncompliant resources.

  • D. Incorrect.

    AuditIfNotExists merely logs resources that lack the tag but does not enforce or remediate it.

Timed practice exam

Take a AZ-104 practice test under exam conditions

60 questions in 60 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam