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

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.