mediummultiple choiceObjective-mapped

A company has a single Azure subscription that contains resource groups for several business units. The company's compliance team wants to enforce a rule: no virtual network (VNet) can be deployed in any resource group unless the VNet is in a specific allowed region (West Europe). The rule must also block the creation of VNets in disallowed regions, but the team must be able to selectively exempt certain resource groups (e.g., for disaster recovery testing) without altering the underlying rule definition. Which Azure feature should the compliance team implement?

Question 1mediummultiple choice
Full question →

A company has a single Azure subscription that contains resource groups for several business units. The company's compliance team wants to enforce a rule: no virtual network (VNet) can be deployed in any resource group unless the VNet is in a specific allowed region (West Europe). The rule must also block the creation of VNets in disallowed regions, but the team must be able to selectively exempt certain resource groups (e.g., for disaster recovery testing) without altering the underlying rule definition. Which Azure feature should the compliance team implement?

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

Best answer

Azure Policy with the 'Deny' effect assigned to the subscription, and create policy exemptions for the resource groups that need to deploy VNets in other regions.

Correct. Azure Policy with the 'Deny' effect prevents the creation of resources that do not meet the policy rule. Policy exemptions allow the team to exclude specific scopes from the policy assignment, enabling exceptions for disaster recovery testing without modifying the policy definition.

B

Distractor review

Azure role-based access control (RBAC) by creating a custom role that restricts the 'Microsoft.Network/virtualNetworks/write' action to only the West Europe region, and assign that role to all users.

Incorrect. RBAC controls who can perform actions, but it does not evaluate resource properties like region. Custom roles can restrict actions at a scope, but they cannot inspect the location parameter during the resource creation. Azure Policy is designed for this kind of property-based enforcement.

C

Distractor review

A resource lock on each resource group that prevents the creation of any resource in disallowed regions.

Incorrect. Resource locks only prevent deletion or modification of a resource group or resource; they cannot prevent creation of new resources based on properties like region. Also, a resource lock applies uniformly to a scope and cannot be selectively applied to specific resource types like VNets.

D

Distractor review

Azure Blueprints by defining a blueprint that only includes VNets in West Europe and assigning it to all resource groups.

Incorrect. Azure Blueprints are used to deploy and manage standardized environments (resource groups, policies, role assignments, etc.). However, they do not enforce ongoing compliance against future deployments outside the blueprint. To block non-compliant resources, a policy with 'Deny' effect is required.

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-900 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.

Question 1

A developer is building a serverless application that requires integration with an on-premises SQL Server database for real-time data processing. The on-premises network is connected to Azure via a site-to-site VPN. Which Azure service would allow the function to securely access the on-premises database without exposing it to the public internet?

Question 2

A solutions architect is designing a storage solution for a large media company. The company needs to store video files that are accessed infrequently but must be retained for several years for compliance. Which two Azure storage options meet these requirements? (Select two.)

Question 3

A company deploys a multi-tier application using Azure virtual machines. The web tier VMs must be evenly distributed across two distinct data centers within an Azure region to avoid a single point of failure from an infrastructure outage. Which Azure construct should they use to meet this requirement?

Question 4

A company wants to enforce a set of security policies across all their Azure subscriptions. They have created several individual policy definitions. Which Azure construct should they use to group these policies together and assign them as a single package?

Question 5

A company deploys a line-of-business application on an Azure virtual machine. The IT team wants to ensure the application remains secure. According to the shared responsibility model, which of the following security tasks is the sole responsibility of the customer (the company)?

Question 6

A company develops a web API that runs on Azure App Service. The development team wants to deploy a new version of the API to a staging environment, run integration tests against it, and then gradually shift production traffic to the new version. If any issues are detected, they want to immediately roll back to the previous version without redeploying. Which Azure App Service feature should the team use to meet these requirements?

FAQ

Questions learners often ask

What does this AZ-900 question test?

Standard ACLs match source addresses.

What is the correct answer to this question?

The correct answer is: Azure Policy with the 'Deny' effect assigned to the subscription, and create policy exemptions for the resource groups that need to deploy VNets in other regions. — Azure Policy can enforce organizational standards by evaluating resources for compliance with policy rules. The 'Deny' effect prevents creation of non-compliant resources. Policy exemptions allow specific scopes (like a resource group) to be excluded from the policy assignment while the policy definition remains unchanged. This is more flexible than using a resource lock (which only prevents deletion or modification), a custom role (which controls permissions, not resource properties), or a blueprint (which is used for deploying repeatable environments but does not inherently block non-compliant deployments).

What should I do if I get this AZ-900 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.