AZ-305 practice question 4 of 35

Your company plans to deploy various Azure App Service instances that will use Azure SQL databases. The App Service instances will be deployed at the…

Choose your answer, then check it against the explanation and the full breakdown below.

Domain Design infrastructure solutions

Your company plans to deploy various Azure App Service instances that will use Azure SQL databases. The App Service instances will be deployed at the same time as the Azure SQL databases. The company has a regulatory requirement to deploy the App Service instances only to specific Azure regions. The resources for the App Service instances must reside in the same region. You need to recommend a solution to meet the regulatory requirement. Solution: You recommend using an Azure policy to enforce the location of resource groups. Does this meet the goal?
Answer options
Question 4 of 35

Question breakdown

Tests
Design governance: enforce resource location with Azure Policy
Difficulty
Medium

Key idea: A resource group's location only stores its metadata, and resources inside it can be deployed to any region.

How to reach the answer

  1. The requirement is that the App Service resources themselves be deployed only to specific regions.
  2. The proposed solution restricts resource group locations.
  3. Resources in a resource group can be placed in a different region from the group itself.
  4. Restricting resource groups therefore does not stop App Service deployments to non-approved regions, so the goal is not met.

Each option

  • AIncorrect. Restricting where resource groups live does not restrict where the resources inside them are deployed.
  • BCorrect. Only a policy on resource locations, such as the built-in Allowed locations policy, would enforce the requirement.

Common trap: Assuming resources inherit their resource group's region, because the portal defaults new resources to the group's location.

In practice: Data-residency compliance is normally enforced by assigning the built-in 'Allowed locations' policy at the management group or subscription scope. 'Allowed locations for resource groups' is often added alongside it.

Remember: Resource group location is metadata only, so enforce residency with a resource-level Allowed locations policy.

Drafted with AI assistance and checked against the answer key.

Keep practicing

Take the free AZ-305 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other AZ-305 practice questions

Scroll to Top