Google Cloud Professional Cloud Developer — Question 207
You manage your company's ecommerce platform's payment system, which runs on Google Cloud. Your company must retain user logs for 1 year for internal auditing purposes and for 3 years to meet compliance requirements. You need to store new user logs on Google Cloud to minimize on-premises storage usage and ensure that they are easily searchable. You want to minimize effort while ensuring that the logs are stored correctly. What should you do?
Answer options
- 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.
Correct answer: C
Explanation
The correct answer, C, is valid because Cloud Logging allows for the creation of custom logs with specific retention periods, meeting both internal auditing and compliance needs. Options A and B do not offer the flexibility needed for varied retention durations, while option D adds unnecessary complexity by requiring a transfer after one year.