Google Cloud Professional Cloud Architect — Question 171

Your company has an application that is running on multiple instances of Compute Engine. It generates 1 TB per day of logs. For compliance reasons, the logs need to be kept for at least two years. The logs need to be available for active query for 30 days. After that, they just need to be retained for audit purposes. You want to implement a storage solution that is compliant, minimizes costs, and follows Google-recommended practices. What should you do?

Answer options

Correct answer: A

Explanation

Option A is correct because it utilizes a Cloud Logging agent for efficient log collection, exports logs to a Cloud Storage bucket, and implements lifecycle rules and retention policies ensuring compliance and cost-effectiveness. Option B lacks the use of a Cloud Logging agent, making it less efficient. Option C doesn't meet the long-term storage requirement as it directs logs to BigQuery, which is more costly for retention. Option D also directs logs to BigQuery, lacking compliance with the retention policy needed for audit purposes.