Courseiva
Describe Azure management and governanceeasyMultiple ChoiceObjective-mapped

AZ-900 Describe Azure management and governance Practice Question

A company wants to enforce a naming convention on all Azure resources by automatically adding a tag with the environment name (e.g., 'Env-Prod' or 'Env-Dev') when a resource is created. They do not want to block resource creation if the tag is missing. Which Azure Policy effect should they use?

⚠ Common exam trap

Many candidates confuse Append with DeployIfNotExists, as both can 'add' something, but Append modifies the resource inline during creation, while DeployIfNotExists deploys a separate resource (like a diagnostic setting) after the resource exists.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Append

The Append effect adds a specified tag (e.g., 'Env-Prod' or 'Env-Dev') to a resource during creation or update without blocking the operation. This matches the requirement to enforce a naming convention via tags automatically while allowing resource creation to proceed even if the tag is missing.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Deny

    Why it's wrong here

    The Deny effect is incorrect because it actively blocks resource creation whenever the requested resource does not already meet the policy condition, such as lacking a required naming tag. While this can enforce compliance, it prevents the resource from being created at all, which is disruptive and does not add the missing tag to bring the resource into compliance afterwards. The goal is to encourage a naming convention by adding tags, not to reject resources outright.

    When this WOULD be correct

    Use Deny when the requirement is to prevent resource creation if a mandatory tag (e.g., cost center) is missing, and non-compliance must result in rejection of the request.

  • Audit

    Why it's wrong here

    The Audit effect is incorrect because it only generates a log entry and an alert when a resource does not meet the policy condition, leaving the resource unchanged. It provides visibility into non-compliance but does not actually enforce or apply the naming convention by adding tags to the resource. Since the company wants to automatically ensure that all resources have the correct tag, Audit alone is insufficient.

    When this WOULD be correct

    Use Audit when the requirement is to log non-compliant resources for reporting or monitoring, but not to automatically remediate or block creation. For example, to track resources missing a required tag without taking automatic action.

  • Append

    Why this is correct

    The Append effect is correct because it automatically adds the specified tag (and its value) to a resource during creation or update, without blocking the operation. This is ideal for enforcing a naming convention through metadata: you can append a tag such as 'NameStandard' or append a prefix to an existing tag field, ensuring every resource carries the required identifier while still allowing the resource to be provisioned. Because it modifies the resource in-place to make it compliant, it provides a non-disruptive enforcement mechanism.

  • DeployIfNotExists

    Why it's wrong here

    The DeployIfNotExists effect is incorrect because it is designed to deploy a separate, additional resource to make the environment compliant, such as creating a diagnostic setting or a virtual network, rather than modifying the target resource itself. It cannot directly add a tag to the resource under evaluation; it only triggers the deployment of supplemental resources when a required configuration is missing. For tagging or naming conventions, Append is the appropriate effect because it directly modifies the resource being created.

    When this WOULD be correct

    A company wants to ensure that all new resource groups have a specific network security group (NSG) deployed if one is not already present. They want to automatically deploy the NSG without blocking resource group creation. DeployIfNotExists would be the correct effect to trigger deployment of the NSG via a remediation task.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-900 exam frequently reuses these exact scenarios with slightly different constraints.

AppendCorrect answer

Why this is correct

The Append effect is correct because it automatically adds the specified tag (and its value) to a resource during creation or update, without blocking the operation. This is ideal for enforcing a naming convention through metadata: you can append a tag such as 'NameStandard' or append a prefix to an existing tag field, ensuring every resource carries the required identifier while still allowing the resource to be provisioned. Because it modifies the resource in-place to make it compliant, it provides a non-disruptive enforcement mechanism.

DenyWrong answer — click to see why

Why this is wrong here

Deny blocks resource creation if the condition is not met, but the company explicitly does not want to block creation when the tag is missing; they only want to add the tag automatically.

★ When this WOULD be the correct answer

Use Deny when the requirement is to prevent resource creation if a mandatory tag (e.g., cost center) is missing, and non-compliance must result in rejection of the request.

Why candidates choose this

Candidates may think Deny is the default effect to enforce compliance, not realizing that Append can add missing tags without blocking creation.

AuditWrong answer — click to see why

Why this is wrong here

Audit only logs non-compliant resources without automatically adding the missing tag, so it does not enforce the naming convention by adding the tag.

★ When this WOULD be the correct answer

Use Audit when the requirement is to log non-compliant resources for reporting or monitoring, but not to automatically remediate or block creation. For example, to track resources missing a required tag without taking automatic action.

Why candidates choose this

Candidates may confuse Audit with Append because both can detect missing tags, but Audit does not automatically add the tag, which is the key requirement here.

DeployIfNotExistsWrong answer — click to see why

Why this is wrong here

DeployIfNotExists is used to deploy resources or configurations when a resource doesn't meet a condition, but it requires a remediation task and does not automatically add tags during creation. The question asks for automatic tagging without blocking creation, which Append does by adding the tag at creation time.

★ When this WOULD be the correct answer

A company wants to ensure that all new resource groups have a specific network security group (NSG) deployed if one is not already present. They want to automatically deploy the NSG without blocking resource group creation. DeployIfNotExists would be the correct effect to trigger deployment of the NSG via a remediation task.

Why candidates choose this

Candidates may confuse 'DeployIfNotExists' as a way to add missing tags, but it is designed for deploying resources or configurations, not for modifying existing resource properties like tags at creation time.

Analysis generated from the official AZ-900blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

About these practice questions

One of 981 original AZ-900 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-900 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-900 exam.