AZ-104 Manage Azure Identities and Governance Practice Question
A developer already has permission to create resource groups. The company wants to allow deployments only in the East US and West US regions. Which service should enforce this rule?
⚠ Common exam trap
Many candidates confuse Azure RBAC (who can act) with Azure Policy (what is allowed), leading candidates to mistakenly choose RBAC for region restrictions when RBAC cannot enforce resource configuration constraints.
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
✓
Azure Policy, because it can restrict which regions are allowed for deployments.
Azure Policy is the correct service because it enforces organizational rules by evaluating resource configurations against policy definitions. In this scenario, a built-in or custom policy can restrict allowed regions for all resources, ensuring deployments only occur in East US and West US. Unlike RBAC, which controls who can perform actions, Azure Policy controls what resource configurations are permitted, making it the appropriate tool for region restriction.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Azure RBAC, because region selection is part of user permissions.
Why it's wrong here
Azure RBAC grants permissions through role definitions that list management actions, but it has no concept of allowable deployment regions. Even a user with the Contributor role can create resources in any location unless an Azure Policy with a deny effect (such as 'Allowed locations') explicitly rejects the request. RBAC only authorizes an identity to perform an action; it does not evaluate or enforce attributes like the region of a resource during deployment. Thus, RBAC is about access control, not compliance enforcement for geographic restrictions.
When this WOULD be correct
Azure RBAC would be correct if the question asked: 'A developer needs to be allowed to create resource groups but not delete them. Which service should enforce this rule?' In that case, RBAC can assign a role with specific permissions like 'Contributor' to allow creation but not deletion.
- ✓
Azure Policy, because it can restrict which regions are allowed for deployments.
Why this is correct
This is correct because Azure Policy can enforce a list of allowed locations at deployment time. The developer may still have RBAC permission to create resources, but the policy can deny deployments outside East US and West US. That makes Policy the proper control for region compliance, while RBAC handles access rights separately.
- ✗
A network security group, because it can block unsupported regions.
Why it's wrong here
A network security group (NSG) is a stateful packet-filtering firewall that governs traffic to and from subnets or network interfaces using rules based on source/destination IP, port, and protocol. NSGs operate at the network layer after a resource has been deployed and are completely unaware of Azure Resource Manager provisioning requests or the physical Azure region in which a resource is placed. They cannot intercept deployment-time decisions or block a resource from being created in an unsupported region. Therefore, NSGs are entirely the wrong tool for enforcing location restrictions.
When this WOULD be correct
A question asks: 'You need to block all inbound traffic from the internet to a specific subnet in Azure. Which service should you use?' In that case, an NSG with appropriate inbound rules would be correct.
- ✗
A read-only lock, because it limits changes to approved regions.
Why it's wrong here
Azure resource locks are management-layer safeguards that prevent accidental deletion or modification by denying all change operations within the locked scope. A read-only lock (CanNotDelete) blocks any management action that would alter a resource, but it does not analyze the region of a new deployment request. In fact, applying a read-only lock to a resource group prevents any new resource from being deployed because deployment requires write permissions on the group, which the lock denies. This makes the lock not only ineffective for region compliance but also disruptive to normal operations.
When this WOULD be correct
A read-only lock would be correct if the question asked: 'Which mechanism prevents accidental deletion or modification of a critical resource group?'
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓Azure Policy, because it can restrict which regions are allowed for deployments.Correct answer▾
Why this is correct
This is correct because Azure Policy can enforce a list of allowed locations at deployment time. The developer may still have RBAC permission to create resources, but the policy can deny deployments outside East US and West US. That makes Policy the proper control for region compliance, while RBAC handles access rights separately.
✗Azure RBAC, because region selection is part of user permissions.Wrong answer — click to see why▾
Why this is wrong here
Azure RBAC controls permissions to perform actions on resources, but it does not have the capability to restrict which Azure regions can be used for deployments. Region restriction is a governance requirement, not an access control one.
★ When this WOULD be the correct answer
Azure RBAC would be correct if the question asked: 'A developer needs to be allowed to create resource groups but not delete them. Which service should enforce this rule?' In that case, RBAC can assign a role with specific permissions like 'Contributor' to allow creation but not deletion.
Why candidates choose this
Candidates may confuse RBAC with policy because both involve 'rules' and 'permissions', and they might think that region selection is a permission that can be granted or denied via RBAC roles.
✗A network security group, because it can block unsupported regions.Wrong answer — click to see why▾
Why this is wrong here
Network security groups (NSGs) filter traffic at the subnet or NIC level, not control which Azure regions can be used for resource deployments. They cannot restrict region selection during deployment.
★ When this WOULD be the correct answer
A question asks: 'You need to block all inbound traffic from the internet to a specific subnet in Azure. Which service should you use?' In that case, an NSG with appropriate inbound rules would be correct.
Why candidates choose this
Candidates may confuse network-level restrictions with deployment restrictions, thinking NSGs can block regions by filtering traffic to regional endpoints.
✗A read-only lock, because it limits changes to approved regions.Wrong answer — click to see why▾
Why this is wrong here
A read-only lock prevents modifications to resources but does not restrict which Azure regions can be used for deployments; region restrictions require Azure Policy.
★ When this WOULD be the correct answer
A read-only lock would be correct if the question asked: 'Which mechanism prevents accidental deletion or modification of a critical resource group?'
Why candidates choose this
Candidates may confuse 'locking' with 'restricting' and think a read-only lock can limit deployment regions, not understanding that locks only affect write operations, not location choices.
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Quick reference
Access Control Model Comparison
| Model | Acronym | Who Controls Access? | Best For |
|---|---|---|---|
| Discretionary Access Control | DAC | Resource owner | Small teams, file shares |
| Mandatory Access Control | MAC | System / security labels | Classified govt / military |
| Role-Based Access Control | RBAC | Administrator (via roles) | Enterprise environments |
| Attribute-Based Access Control | ABAC | Policy engine (user + resource attributes) | Fine-grained, dynamic policies |
| Rule-Based Access Control | RuBAC | System rules / ACLs | Firewall rules, network ACLs |
Go deeper
Related to this question
Learn chapter
Dynamic Membership Groups
Key term
Azure Policy
Azure Policy is a service in Microsoft Azure that lets you create, assign, and manage rules to ensure your resources stay compliant with your company standards and service-level agreements.
Key term
Region
A region is a distinct geographic location where a cloud provider operates multiple data centers that are connected by low-latency networks and provide cloud services.
About these practice questions
One of 1,049 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-104 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-104 exam.