- A
Audit
Why wrong: Audit would log that a resource was created without the required tag, but it would not prevent the creation. The company wants to block non-compliant resources.
- B
Deny
Deny prevents the creation or update of a resource that does not include the required tag. This enforces the policy at deployment time.
- C
DeployIfNotExists
Why wrong: DeployIfNotExists is used to auto-remediate existing resources, not to block creation of non-compliant resources.
- D
Modify
Why wrong: Modify can add tags during creation or update, but it does not block the creation if the tag is missing; it modifies the resource to include the tag. The requirement is to prevent creation, so Deny is appropriate.
Quick Answer
The answer is the Deny effect. This is the correct choice because the Deny effect actively blocks the creation or deployment of any Azure resource that does not comply with the policy rule, such as a missing required 'CostCenter' tag, ensuring non-compliant resources are never provisioned. In contrast, the Audit effect only logs compliance violations without preventing the operation. On the Microsoft Azure Fundamentals AZ-900 exam, this question tests your understanding of how Azure Policy effects enforce governance, often appearing as a scenario where you must choose between Audit and Deny. A common trap is selecting Audit, thinking logging is sufficient, but the requirement to automatically prevent creation demands Deny. Remember the mnemonic: "Deny to deny, Audit to allow."
AZ-900 Describe Azure management and governance Practice Question
This AZ-900 practice question tests your understanding of describe azure management 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.
A company has a policy that all Azure resources deployed to production subscriptions must be tagged with a 'CostCenter' tag. They want to automatically prevent the creation of any resource that does not include this tag. Which Azure Policy effect should they use in their policy definition?
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
Deny
The Deny effect is correct because it actively prevents the creation or deployment of any Azure resource that does not comply with the policy rule, such as missing the required 'CostCenter' tag. Unlike Audit, which only logs compliance violations without blocking the operation, Deny enforces the policy at the time of the resource creation request, ensuring non-compliant resources are never provisioned.
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 would log that a resource was created without the required tag, but it would not prevent the creation. The company wants to block non-compliant resources.
- ✓
Deny
Why this is correct
Deny prevents the creation or update of a resource that does not include the required tag. This enforces the policy at deployment time.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
DeployIfNotExists
Why it's wrong here
DeployIfNotExists is used to auto-remediate existing resources, not to block creation of non-compliant resources.
- ✗
Modify
Why it's wrong here
Modify can add tags during creation or update, but it does not block the creation if the tag is missing; it modifies the resource to include the tag. The requirement is to prevent creation, so Deny is appropriate.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse the Audit effect (which only reports non-compliance) with the Deny effect (which actively blocks the operation), mistakenly thinking that logging alone is sufficient to enforce a policy.
Detailed technical explanation
How to think about this question
Under the hood, Azure Policy's Deny effect works by intercepting the resource creation or update request at the Azure Resource Manager (ARM) level, returning an HTTP 403 Forbidden status if the resource does not satisfy the policy condition. This evaluation happens before the resource is provisioned, making it a true gate. A subtle behavior is that Deny can be overridden by a higher-scope policy with a different effect, or by using an exemption, which is important for troubleshooting in complex environments.
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 startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Describe Azure management and governance — study guide chapter
Learn the concepts, then practise the questions
- →
Describe Azure management and governance practice questions
Targeted practice on this topic area only
- →
All AZ-900 questions
1,031 questions across all exam domains
- →
Microsoft Azure Fundamentals AZ-900 study guide
Full concept coverage aligned to exam objectives
- →
AZ-900 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AZ-900 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Describe cloud concepts practice questions
Practise AZ-900 questions linked to Describe cloud concepts.
Describe Azure architecture and services practice questions
Practise AZ-900 questions linked to Describe Azure architecture and services.
Describe Azure management and governance practice questions
Practise AZ-900 questions linked to Describe Azure management and governance.
AZ-900 Azure services practice questions
Practise AZ-900 questions linked to AZ-900 Azure services.
AZ-900 pricing and support practice questions
Practise AZ-900 questions linked to AZ-900 pricing and support.
AZ-900 security and compliance practice questions
Practise AZ-900 questions linked to AZ-900 security and compliance.
AZ-900 governance practice questions
Practise AZ-900 questions linked to AZ-900 governance.
Practice this exam
Start a free AZ-900 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AZ-900 question test?
Describe Azure management and governance — This question tests Describe Azure management 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 is correct because it actively prevents the creation or deployment of any Azure resource that does not comply with the policy rule, such as missing the required 'CostCenter' tag. Unlike Audit, which only logs compliance violations without blocking the operation, Deny enforces the policy at the time of the resource creation request, ensuring non-compliant resources are never provisioned.
What should I do if I get this AZ-900 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 →
Same concept, more angles
1 more ways this is tested on AZ-900
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company requires that all resources deployed in a production Azure subscription must include a 'Department' tag. Resources without this tag must be automatically prevented from being created. Which Azure service should the company use to enforce this requirement?
medium- ✓ A.Azure Policy
- B.Azure Blueprints
- C.Azure Resource Manager
- D.Azure Cost Management
Why A: Azure Policy is the correct service because it allows you to create, assign, and manage policies that enforce specific rules on your Azure resources. In this scenario, you can define a policy that requires the 'Department' tag on all resources, and configure a deny effect to automatically prevent the creation of any resource that does not include this tag. This ensures compliance at the time of resource creation, without manual intervention.
Last reviewed: Jun 11, 2026
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.
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.