The correct answer is that the creation of the virtual machine is denied. This happens because the Azure Policy deny effect explicitly blocks any resource creation request that does not comply with the defined policy rule; Azure Resource Manager evaluates the policy before provisioning, and if the VM request violates conditions like a required tag or location, the operation is immediately rejected. On the AZ-305 exam, this tests your understanding of how policy effects enforce governance at the subscription or management group level, often appearing in scenario-based questions where you must distinguish deny from other effects like audit or modify. A common trap is assuming deny only blocks non-compliant resources after creation, but it actually prevents provisioning entirely. Remember the mnemonic "Deny Definitively" — deny stops the request dead in its tracks before any resource is spun up.
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.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The creation of the virtual machine is denied.
The Azure Policy in the exhibit uses the 'deny' effect, which explicitly blocks any operation that does not comply with the policy rule. When a user attempts to create a virtual machine, Azure Resource Manager evaluates the policy before provisioning the resource. If the VM creation request does not meet the conditions defined in the policy (e.g., requiring a specific tag or location), the request is denied and the VM is not created. This is why option C is correct.
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 virtual machine is created, and an audit event is logged.
Why it's wrong here
The effect is 'deny', not 'audit'.
✗
The virtual machine is created only if it has a specific tag.
Read the scenario before looking for a memorised answer.
✗
The virtual machine is created only in a specific location.
Why it's wrong here
The policy does not check location.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse the 'deny' effect with 'audit' or 'append', assuming the VM will be created with a warning or modification, when in fact 'deny' completely blocks the operation.
Detailed technical explanation
How to think about this question
Azure Policy uses a JSON-based policy definition with an 'if-then' structure: the 'if' block defines the condition (e.g., resource type equals 'Microsoft.Compute/virtualMachines' and location not in allowed list), and the 'then' block specifies the effect (e.g., 'deny'). The 'deny' effect is enforced at the Azure Resource Manager API level, meaning the request is rejected before any resource is provisioned, and the user receives an HTTP 403 Forbidden error. This is different from 'audit', which allows creation but logs a compliance event.
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 creation of the virtual machine is denied. — The Azure Policy in the exhibit uses the 'deny' effect, which explicitly blocks any operation that does not comply with the policy rule. When a user attempts to create a virtual machine, Azure Resource Manager evaluates the policy before provisioning the resource. If the VM creation request does not meet the conditions defined in the policy (e.g., requiring a specific tag or location), the request is denied and the VM is not created. This is why option C is correct.
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.
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.