Your organization must comply with the regulation to keep instance logging data within Europe. Your workloads will be hosted in the Netherlands in region europe-west4 in a new project. You must configure Cloud Logging to keep your data in the country. What should you do?
A. Configure the organization policy constraint gcp.resourceLocations to europe-west4.
B. Configure log sink to export all logs into a Cloud Storage bucket in europe-west4.
C. Create a new log bucket in europe-west4, and redirect the _Default bucket to the new bucket.
D. Set the logging storage region to europe-west4 by using the gcloud CLI logging settings update.
Disclaimer
This is a practice question. There is no guarantee of coming this question in the certification exam.
Answer
D
Explanation
A. Configure the organization policy constraint gcp.resourceLocations to europe-west4.
(Logs will still remains at the non-compliant region.)
B. Configure log sink to export all logs into a Cloud Storage bucket in europe-west4.
(Logs will still remains at the non-compliant region.)
C. Create a new log bucket in europe-west4, and redirect the _Default bucket to the new bucket.
(This will apply to the project level, so new projects can log to a different regions and violets the requirements.)
D. Set the logging storage region to europe-west4 by using the gcloud CLI logging settings update.
(https://cloud.google.com/logging/docs/default-settings#config-logging
gcloud logging settings update –organization=ORGANIZATION_ID –storage-location=LOCATION)