Google Cloud Professional Cloud Developer — Question 245
You recently developed a web application to transfer log data to a Cloud Storage bucket daily. Authenticated users will regularly review logs from the prior two weeks for critical events. After that, logs will be reviewed once annually by an external auditor. Data must be stored for a period of no less than 7 years. You want to propose a storage solution that meets these requirements and minimizes costs. What should you do? (Choose two.)
Answer options
- A. Use the Bucket Lock feature to set the retention policy on the data.
- B. Run a scheduled job to set the storage class to Coldline for objects older than 14 days.
- C. Create a JSON Web Token (JWT) for users needing access to the Coldline storage buckets.
- D. Create a lifecycle management policy to set the storage class to Coldline for objects older than 14 days.
- E. Create a lifecycle management policy to set the storage class to Nearline for objects older than 14 days.
Correct answer: A, D
Explanation
The correct answer includes using the Bucket Lock feature to ensure data retention for a minimum of 7 years and implementing a lifecycle management policy to transition older objects to Coldline, which is cost-effective for infrequently accessed data. Options B and E do not meet the retention requirement, while option C does not address the cost-effective storage management needed.