‹ All AZ-900 questions

AZ-900 Practice Question 19: Azure Policy Allowed Locations

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

Azure Management & Governancemedium

To satisfy a data residency rule, a company must ensure that nobody can create new resources outside its two approved Azure regions. Existing resources must be left in place, and engineers must keep the permissions they already have. What should be assigned at the subscription scope?

Select one answer
Show answer and explanation

Answer:

  • B. An assignment of the built-in Allowed locations policy definition, which uses the Deny effect

Azure Policy compares the properties of resources against business rules and applies an effect when they do not match. Allowed locations is a built-in definition with the Deny effect whose stated job is to restrict the available locations for new resources, and it is the documented way to enforce geo-compliance requirements. Because a Deny effect is evaluated when a resource is created or updated, resources that already exist keep running; they are simply reported as non-compliant.

Option A is the wrong control entirely: a lock protects objects from deletion and says nothing about where a resource may be deployed. Option C misuses RBAC; Azure RBAC governs *who* may perform an action, so removing create permission would block all deployments rather than just those in the wrong region, and the stem requires engineers to keep their permissions. Option D constrains where the *user* is signing in from, not where the *resource* is deployed; a compliant engineer in an approved office could still deploy to a forbidden region.

Reference: Overview of Azure Policy

Practice Test 2 ›

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.