AZ-304 Exam QuestionsBrowse all questions from this exam

AZ-304 Exam - Question 177


Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

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 creating resource groups based on locations and implementing resource locks on the resource groups.

Does this meet the goal?

Show Answer
Correct Answer: B

Creating resource groups based on locations and implementing resource locks on the resource groups does not meet the goal. Resource locks are designed to prevent accidental deletion or modification of resources, not for enforcing compliance with regulatory requirements regarding deployment regions. To ensure the resources are deployed only to specific Azure regions, Azure Policy should be used, as it allows you to define and enforce rules for resource properties and locations.

Discussion

4 comments
Sign in to comment
DannyGupta
May 14, 2021

Correct

syu31svc
Oct 5, 2021

No for sure, policy is to be used instead

pikk
Sep 11, 2021

Interresting to know D:

us3rOption: B
Feb 19, 2022

nope. Az.Policy