
Answer-first summary for fast verification
Answer: 1. Install a Cloud Logging agent on all instances. 2. Create a sink to export logs into a regional Cloud Storage bucket. 3. Create an Object Lifecycle rule to move files into a Coldline Cloud Storage bucket after one month. 4. Configure a retention policy at the bucket level using bucket lock.
The correct answer is A. To address the requirements, you should install a Cloud Logging agent on all instances to collect logs and export them to a Cloud Storage bucket. This approach is efficient for managing large volumes of logs. Creating a lifecycle rule to move older logs to Coldline storage after 30 days helps minimize storage costs as Coldline is optimized for infrequently accessed data. Additionally, setting a bucket-level retention policy with bucket lock ensures compliance by guaranteeing that logs are retained for at least two years. This approach not only follows Google-recommended practices but also balances cost optimization and compliance needs effectively.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your company operates an application on multiple instances of Compute Engine that generates 1 TB of logs daily. Due to compliance requirements, these logs must be retained for at least two years. Additionally, the logs need to be readily available for active querying for the first 30 days. After this period, the logs should be archived for auditing purposes. You aim to design a storage solution that meets compliance requirements, minimizes costs, and aligns with Google Cloud best practices. What should you do?
A
B
C
D