
Answer-first summary for fast verification
Answer: Store the logs in a Cloud Storage bucket with a 3-year retention period.
The requirement is to retain logs for 1 year for internal audits and 3 years for compliance. Cloud Storage retention policies ensure data cannot be deleted before the specified period. Option B sets a 3-year retention, which satisfies the compliance requirement (3 years) and inherently covers the 1-year internal audit need. Cloud Logging (Option C) cannot retain logs beyond 365 days. Option D introduces unnecessary complexity by requiring manual movement between buckets. Option A's bucket lock enforces immutability but does not inherently solve the retention period requirement better than B. Thus, Option B minimizes effort while meeting both retention needs.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You manage your company's ecommerce payment system on Google Cloud. Compliance requires retaining user logs for 3 years, while internal auditing needs them for 1 year. To reduce on-premises storage and ensure searchability, you need to store new logs in Google Cloud with minimal effort. What is the most efficient solution?
A
Store the logs in a Cloud Storage bucket with bucket lock turned on.
B
Store the logs in a Cloud Storage bucket with a 3-year retention period.
C
Store the logs in Cloud Logging as custom logs with a custom retention period.
D
Store the logs in a Cloud Storage bucket with a 1-year retention period. After 1 year, move the logs to another bucket with a 2-year retention period.
No comments yet.