You are on the data governance team and are implementing security requirements to deploy resources. You need to ensure that resources are limited to only the europe-west3 region. You want to follow Google-recommended practices.
What should you do?
A.
Set the constraints/gcp.resourceLocations organization policy constraint to in:europe-west3-locations.
B.
Deploy resources with Terraform and implement a variable validation rule to ensure that the region is set to the europe-west3 region for all resources.
C.
Set the constraints/gcp.resourceLocations organization policy constraint to in:eu-locations.
D.
Create a Cloud Function to monitor all resources created and automatically destroy the ones created outside the europe-west3 region.
- The constraints/gcp.resourceLocations organization policy constraint is used to define where resources in the organization can be created.
- Setting it to in:europe-west3-locations would specify that resources can only be created in the europe-west3 region.
B, D
B - Increase the Cloud Composer 2 environment size from medium to large.
Increasing the environment size will provide more resources (including memory) to the entire environment, which should help mitigate memory usage issues. This will also support scaling if the jobs demand more resources.
D. Increase the memory available to the Airflow workers.
Increasing memory for Airflow workers will directly address the memory usage issue that's causing the pod evictions. By allocating more memory to the workers, they can handle larger tasks or more intensive workloads without failing due to memory constraints.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
raaad
Highly Voted 1 year, 3 months agoSanjeevRoy91
1 year, 1 month agob3e59c2
Most Recent 3 months, 2 weeks agochrissamharris
7 months agohrishi19
5 months, 1 week agoJyoGCP
1 year, 2 months agoMatt_108
1 year, 3 months agoscaenruy
1 year, 3 months ago