Google Professional Cloud Security Engineer Question 349
Select 2Google Cloud PlatformYour organization has a Cloud Storage bucket that stores log files. Due to regulatory requirements, these logs must be retained for 365 days before being deleted. Additionally, you want to minimize storage costs by moving the logs to the Nearline storage class after 30 days of being created. How should you configure the object lifecycle policy to meet these requirements?
- A
Add a lifecycle rule to delete objects 365 days after their creation.
- B
Add a lifecycle rule to set the storage class to Nearline 30 days after object creation.
- C
Add a lifecycle rule to set the storage class to Coldline 30 days after object creation.
- D
Add a lifecycle rule to delete objects 30 days after their creation.
- E
Add a lifecycle rule to delete objects 365 days after being moved to Nearline.
Show answer and explanation
Correct answers: A, B
Explanation
To meet the requirements, you need to create two lifecycle rules: one to move objects to the Nearline storage class after 30 days to reduce costs, and another to delete objects 365 days after their creation to comply with regulatory retention policies. These rules ensure that the logs are retained for the required duration while optimizing storage costs.
- A. Correct.
This is correct because the objects must be deleted after 365 days to meet regulatory requirements.
- B. Correct.
This is correct because moving the objects to the Nearline storage class after 30 days will help minimize storage costs while keeping the logs accessible if needed within the retention period.
- C. Incorrect.
This is incorrect because the Coldline storage class is not specified in the requirements. The Nearline storage class is sufficient for minimizing costs.
- D. Incorrect.
This is incorrect because deleting objects 30 days after creation does not meet the regulatory requirement to retain the logs for 365 days.
- E. Incorrect.
This is incorrect because the deletion requirement is based on the objects' creation date, not when they were moved to Nearline.