GCP Associate Cloud Engineer Practice Question 29: Org Policy Resource Locations
Google Cloud Associate Cloud Engineer · Test 3 · question 9 of 10
To meet data residency rules, your company must ensure that no team can create Google Cloud resources outside the European Union in any project of the organization.
What should you do?
Show answer and explanation
Answer:
The gcp.resourceLocations organization policy constraint limits the locations where supported resources can be created. Setting it at the organization node with an allowed value such as in:eu-locations is inherited by every folder and project and blocks creation elsewhere at request time.
Option B does not work because location is not a permission; roles cannot filter by region. Option C only detects the violation after the resource exists, so the data would already be in the wrong place. Option D controls network traffic and cannot prevent resource creation.
Reference: Restricting resource locations