The answer is Deny, as it is the Azure Policy effect that blocks deployment of resources missing required tags like Environment. This works because when a policy with the Deny effect is assigned, Azure Resource Manager evaluates the request at deployment time and rejects it with a 403 Forbidden status if the condition is not met, preventing the resource from being created entirely. On the AZ-104 exam, this concept tests your understanding of how policy effects enforce compliance before resources exist, often appearing in scenario-based questions where you must choose between Deny, Audit, or Append. A common trap is confusing Deny with Audit, which only logs non-compliance without blocking; remember that Deny is proactive and stops the deployment dead. For a quick memory tip, think “Deny at deploy” to recall that this effect acts as a gatekeeper during resource creation.
AZ-104 Manage Azure Identities and Governance Practice Question
This AZ-104 practice question tests your understanding of manage azure identities and governance. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
Policy evaluation output
Definition name: Require-Environment
Assignment scope: /subscriptions/1111-2222
Compliance state: Non-compliant
Non-compliant resource: stapp01
Reason: Missing tag 'Environment'
Requirement: Any new resource created without the Environment tag must be prevented from deploying.
Based on the exhibit, which Azure Policy effect should be used so new resources without an Environment tag are blocked at deployment time?
Policy evaluation output
Definition name: Require-Environment
Assignment scope: /subscriptions/1111-2222
Compliance state: Non-compliant
Non-compliant resource: stapp01
Reason: Missing tag 'Environment'
Requirement: Any new resource created without the Environment tag must be prevented from deploying.
A
Audit
Why wrong: Audit reports non-compliance but allows the resource to be created, so it does not enforce the blocking requirement.
B
Append
Why wrong: Append can add or modify request content in some cases, but it is not the effect that directly blocks noncompliant deployments.
C
Deny
Deny stops the deployment when the condition is not met, which is exactly what is needed to block resources missing the required tag.
D
Disabled
Why wrong: Disabled turns off the policy and removes enforcement entirely, which would allow noncompliant resources to be created.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Deny
The Deny effect (Option C) is the correct choice because it actively blocks any deployment that does not meet the policy rule—in this case, resources lacking an Environment tag. When a policy with Deny is assigned, Azure Resource Manager evaluates the request during deployment and rejects it with a 403 (Forbidden) status if the condition is not satisfied, preventing the resource from being created entirely.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✗
Audit
Why it's wrong here
Audit reports non-compliance but allows the resource to be created, so it does not enforce the blocking requirement.
✗
Append
Why it's wrong here
Append can add or modify request content in some cases, but it is not the effect that directly blocks noncompliant deployments.
✓
Deny
Why this is correct
Deny stops the deployment when the condition is not met, which is exactly what is needed to block resources missing the required tag.
Related concept
Read the scenario before looking for a memorised answer.
✗
Disabled
Why it's wrong here
Disabled turns off the policy and removes enforcement entirely, which would allow noncompliant resources to be created.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse 'Audit' with 'Deny' because both can report non-compliance, but only Deny actively prevents the deployment, whereas Audit merely logs the violation without blocking it.
Detailed technical explanation
How to think about this question
Under the hood, Azure Policy with the Deny effect leverages Azure Resource Manager's role-based access control (RBAC) to evaluate policy rules before any resource creation or update. The policy rule uses a JSON-based condition (e.g., `"field": "tags['Environment']", "exists": "false"`) and, when matched, triggers a denial that is enforced at the API level, not just at the portal. This ensures that even automated deployments via ARM templates, Bicep, or Terraform are blocked if they violate the policy.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this AZ-104 question in full detail.
Manage Azure Identities and Governance — This question tests Manage Azure Identities and Governance — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Deny — The Deny effect (Option C) is the correct choice because it actively blocks any deployment that does not meet the policy rule—in this case, resources lacking an Environment tag. When a policy with Deny is assigned, Azure Resource Manager evaluates the request during deployment and rejects it with a 403 (Forbidden) status if the condition is not satisfied, preventing the resource from being created entirely.
What should I do if I get this AZ-104 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This AZ-104 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-104 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.