The answer is that the policy does not apply to existing resources; it only blocks new or updated ones. This is because Azure Policy with the 'deny' effect evaluates resources during creation or update requests, preventing non-compliant configurations from being provisioned, but it does not retroactively scan or alter resources that already exist. On the Microsoft Azure Solutions Architect Expert AZ-305 exam, this distinction tests your understanding of policy effects and their scope—a common trap is assuming 'deny' remediates existing non-compliant VMs, when in fact you need a 'deployIfNotExists' or 'modify' effect with a remediation task to enforce compliance on legacy resources. Remember, deny is a gatekeeper for new deployments, not a janitor for old ones. Memory tip: "Deny defends the door, but doesn't clean the floor."
AZ-305 Practice Question: Design identity, governance, and monitoring solutions
This AZ-305 practice question tests your understanding of design identity, governance, and monitoring solutions. 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.
You are tasked with ensuring that all VMs in the subscription have Azure Hybrid Benefit enabled for Windows Server. You create the Azure Policy shown in the exhibit. However, after assignment, the compliance report shows that some D-series VMs are still non-compliant. What is the most likely cause?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "most likely"
Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The policy does not apply to existing resources; it only blocks new or updated ones.
Azure Policy with the 'deny' effect only blocks new or updated resources that violate the policy; it does not automatically remediate existing non-compliant resources. The D-series VMs were likely created before the policy was assigned, so they remain non-compliant until they are redeployed or a remediation task is triggered. To enforce compliance on existing resources, you would need to use a 'deployIfNotExists' or 'modify' effect with a remediation task.
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.
✗
The 'deny' effect is incorrectly configured; it should be 'audit' to show compliance.
Why it's wrong here
'audit' would only log compliance, not deny. The intent is to deny, but the issue is existing resources.
✓
The policy does not apply to existing resources; it only blocks new or updated ones.
Why this is correct
The 'deny' effect only prevents creation or update of non-compliant resources; existing VMs remain non-compliant.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
✗
The 'like' operator does not match standard D-series SKUs.
Why it's wrong here
The 'like' operator with pattern 'Standard_D*' matches any SKU starting with 'Standard_D', so this is not the issue.
✗
The policy is scoped to a management group that excludes the resource group containing the VMs.
Why it's wrong here
The policy assignment scope is not mentioned as an issue; the exhibit shows the policy rule, not the assignment scope.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often assume Azure Policy automatically applies to all resources in scope, but they overlook the fundamental difference between 'deny' (only blocks new/updated resources) and 'deployIfNotExists'/'modify' (can remediate existing resources).
Trap categories for this question
Command / output trap
The policy assignment scope is not mentioned as an issue; the exhibit shows the policy rule, not the assignment scope.
Detailed technical explanation
How to think about this question
Azure Policy's 'deny' effect is evaluated at resource creation or update time via Azure Resource Manager (ARM) and does not retroactively apply to existing resources. To remediate existing non-compliant resources, you must use a 'deployIfNotExists' or 'modify' policy effect combined with a managed identity and a remediation task, which runs a deployment or modification on the resource. This distinction is critical for governance scenarios where you need to enforce settings like Azure Hybrid Benefit across both existing and new VMs.
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
An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this AZ-305 question in full detail.
Design identity, governance, and monitoring solutions — This question tests Design identity, governance, and monitoring solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The policy does not apply to existing resources; it only blocks new or updated ones. — Azure Policy with the 'deny' effect only blocks new or updated resources that violate the policy; it does not automatically remediate existing non-compliant resources. The D-series VMs were likely created before the policy was assigned, so they remain non-compliant until they are redeployed or a remediation task is triggered. To enforce compliance on existing resources, you would need to use a 'deployIfNotExists' or 'modify' effect with a remediation task.
What should I do if I get this AZ-305 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
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-305 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-305 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.