mediummultiple choiceObjective-mapped

A company wants to stop users from deploying resources in any region except East US and West US. Users still need to be able to create resources if they choose an approved region. Which Azure feature should the administrator use?

Question 1mediummultiple choice
Full question →

A company wants to stop users from deploying resources in any region except East US and West US. Users still need to be able to create resources if they choose an approved region. Which Azure feature should the administrator use?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Azure RBAC with a Contributor role at the subscription scope.

RBAC controls who can act, but it does not enforce deployment rules such as allowed regions. Users could still deploy in any region if they have permission.

B

Best answer

Azure Policy with a deny effect assigned at the appropriate scope.

Azure Policy is designed for compliance and enforcement. A policy that checks the location property and uses a deny effect can block deployments outside the approved regions while still allowing valid deployments in East US or West US. This meets the requirement without changing the users' general ability to create resources.

C

Distractor review

A resource lock at the subscription level.

A lock protects existing resources from modification or deletion, but it does not evaluate whether a new resource is created in an approved region.

D

Distractor review

A tag requirement in Azure RBAC.

Tags can help organize and report on resources, but RBAC does not enforce tag-based or region-based deployment restrictions.

Common exam trap

Common exam trap: ACLs stop at the first match

ACLs are processed top to bottom. The first matching entry wins, and an implicit deny usually exists at the end.

Technical deep dive

How to think about this question

ACL questions test precision: source, destination, protocol, port and direction. A generally correct ACL can still fail if it is applied on the wrong interface or in the wrong direction.

KKey Concepts to Remember

  • Standard ACLs match source addresses.
  • Extended ACLs can match source, destination, protocol and ports.
  • The first matching ACL entry is used.
  • There is usually an implicit deny at the end.

TExam Day Tips

  • Check inbound versus outbound direction.
  • Read the ACL from top to bottom.
  • Look for a broader permit or deny above the intended line.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Standard ACLs match source addresses.

What is the correct answer to this question?

The correct answer is: Azure Policy with a deny effect assigned at the appropriate scope. — Azure Policy is the correct service because the requirement is about compliance enforcement, not permission management. A deny effect can block resource creation in disallowed regions while still permitting users to deploy resources in approved regions. This is exactly the kind of preventive control Azure Policy provides. RBAC alone cannot enforce location restrictions because it only determines whether a principal is allowed to perform an action. Why others are wrong: RBAC decides whether someone has permission, but it cannot enforce that the region is acceptable. A resource lock protects existing assets, not future compliance. Tags are useful for organization and reporting, but they do not restrict where resources can be deployed. The scenario specifically requires enforcement of a deployment rule.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.