‹ All AZ-900 questions

AZ-900 Practice Question 79: Policy Effects Deny vs Audit

Microsoft Azure Fundamentals (AZ-900) · Test 8 · question 9 of 10

Azure Management & Governancehard

A governance team needs two separate Azure Policy definitions. The first must block, outright, any new storage account that allows public blob access. The second must flag every existing virtual machine that lacks a required CostCenter tag, without stopping anyone from creating or updating a VM. Which pair of effects should the two definitions use, respectively?

Select one answer
Show answer and explanation

Answer:

  • A. Deny, then Audit

The deny effect prevents a resource request that doesn't match the policy from ever reaching the resource provider; the request fails with a 403, which is "block outright." The audit effect creates a warning in the activity log for a non-compliant resource and marks it non-compliant, but explicitly doesn't stop the request, which is "flag without blocking." That is exactly one deny definition and one audit definition, in that order.

Option B reverses the two needs: it would block a VM from being created or updated over a missing tag, which is too strict, while only flagging public blob access on a new storage account, which is too lax for the stated requirement. Option C misapplies both effects; append adds or overwrites a field on a matching resource during creation or update rather than blocking it, and modify alters properties of resources rather than merely reporting on them; neither stops a noncompliant storage account from being created. Option D pairs the wrong tools entirely: disabled turns off evaluation of a definition altogether, and manual requires a person to attest to compliance rather than the platform detecting it automatically.

Reference: Azure Policy definitions effect basics

Practice Test 8 ›

Study guides for AZ-900

Azure Administrator (AZ-104): jobs, salary and the examAzure administrator role, jobs and pay data, and the AZ-104 exam: five domains, 100 minutes, US$165 / ₹4,865, AZ-900 first or not, and what next.
Free cloud certifications in 2026: which are really freeWhich free cloud certifications are really free in 2026: Oracle's free OCI exams, and the voucher routes for AWS, Microsoft and Google, with prices.
AI-901 exam guide: Azure AI Fundamentals after AI-900AI-901 replaced AI-900: learn what changed, how much Python and Microsoft Foundry you need, exam costs in India, and how to prepare.
Microsoft Fabric certification: DP-700 vs DP-600Microsoft Fabric certification means two exams, DP-600 and DP-700. Their roles, skills, format, cost in India, and which one to take first.
Which cloud certification is best? AWS vs Azure vs GoogleWhich cloud certification is best for a beginner? AWS Cloud Practitioner, AZ-900 and Google Cloud Digital Leader compared: cost, format and which first.
Azure certification path 2026: AZ-900, AZ-104, AZ-305The Azure certification path for 2026 - AZ-900, AZ-104 and AZ-305 in order, what each covers, the AZ-305 prerequisite, renewal and what to skip.
Azure RBAC vs Azure Policy vs Entra roles vs resource locksHow Azure RBAC, Azure Policy, Microsoft Entra roles and resource locks differ, how scope inheritance works, and when deny beats audit.
Azure Storage redundancy - LRS, ZRS, GRS, GZRS and failoverHow LRS, ZRS, GRS, RA-GRS, GZRS and RA-GZRS differ, what failover does to your account, and how access tiers interact with redundancy.