
Answer-first summary for fast verification
Answer: Create a Cloud Storage bucket to store your logs in the EUROPE-WEST1 region. Modify your application code to ship logs directly to your bucket for increased efficiency.
The correct answer is A because it meets all requirements while minimizing operational overhead. The key constraint is the 12-year retention period, which exceeds Cloud Logging's maximum of 3650 days (10 years). Option A uses Cloud Storage directly, which supports retention periods up to 100 years, satisfies the European data residency requirement by using the EUROPE-WEST1 region, and minimizes overhead by eliminating intermediate processing steps. Option B and D are invalid due to the 10-year retention limit. Option C introduces unnecessary complexity with Pub/Sub as an intermediate step, increasing operational overhead compared to direct Cloud Storage integration. While some community members preferred B for avoiding code changes, the retention requirement makes it non-compliant, and modifying application code to write directly to Cloud Storage is a straightforward, efficient solution that aligns with the goal of minimizing overhead.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are deploying a web application on Compute Engine. Business requirements dictate that application logs must be retained for 12 years and all data must remain within European boundaries. You need to implement a storage solution that minimizes operational overhead and is cost-effective. What should you do?
A
Create a Cloud Storage bucket to store your logs in the EUROPE-WEST1 region. Modify your application code to ship logs directly to your bucket for increased efficiency.
B
Configure your Compute Engine instances to use the Google Cloud's operations suite Cloud Logging agent to send application logs to a custom log bucket in the EUROPE-WEST1 region with a custom retention of 12 years.
C
Use a Pub/Sub topic to forward your application logs to a Cloud Storage bucket in the EUROPE-WEST1 region.
D
Configure a custom retention policy of 12 years on your Google Cloud's operations suite log bucket in the EUROPE-WEST1 region.