
Answer-first summary for fast verification
Answer: Route the logs to a single region Cloud Storage bucket with the archive storage class.
Option A is incorrect because updating the retention policy on the _Default log bucket to 7 years is an expensive option. Option B is incorrect as BigQuery is primarily suited for analytics, not long-term storage. Option C is incorrect since a multi-region standard storage class bucket is more costly than a single-region archive storage class bucket. Option D is the best choice as it offers the most cost-effective solution for long-term log storage. References: [Cloud Logging Routing Overview](https://cloud.google.com/logging/docs/routing/overview), [Cloud Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
As a DevOps Engineer in a Finance company managing the Cloud Landscape, you oversee several applications on GKE clusters that write logs to Cloud Logging. With a legal requirement to store logs for 7 years, what is the most cost-effective storage solution for these logs?
A
Update the retention policy on the _Default log bucket to 7 years.
B
Route the logs from Cloud Logging to BigQuery.
C
Route the logs to a multi-region Cloud Storage bucket with standard storage class.
D
Route the logs to a single region Cloud Storage bucket with the archive storage class.