Google Professional Cloud Security Engineer Question 347
Select 3Google Cloud PlatformYour organization stores large amounts of data in a Google Cloud Storage bucket, and you have been tasked with optimizing storage costs while ensuring compliance with data retention policies. You need to create an object lifecycle configuration that: 1) Deletes objects older than 365 days. 2) Moves objects to Nearline storage after 90 days of being created. 3) Ensures that objects in the bucket are retained for at least 180 days. How should you configure the lifecycle policy?
- A
Add a rule to delete objects with a condition specifying 'age' greater than 365 days.
- B
Add a rule to move objects to Nearline storage with a condition specifying 'age' greater than 90 days.
- C
Add a rule to retain objects with a condition specifying 'age' less than 180 days.
- D
Add a rule to move objects to Coldline storage with a condition specifying 'age' greater than 90 days.
- E
Add a rule to retain objects with a condition specifying 'age' greater than 365 days.
Show answer and explanation
Correct answers: A, B, C
Explanation
To meet the requirements, you must configure three lifecycle rules: 1) Delete objects older than 365 days to reduce costs and comply with data retention policies. 2) Move objects to Nearline storage after 90 days to optimize storage costs for infrequently accessed data. 3) Retain objects for at least 180 days to ensure compliance with data retention policies. Incorrect options either fail to meet the stated requirements or misinterpret the lifecycle policy's purpose.
- A. Correct.
Correct: This rule deletes objects older than 365 days, fulfilling the requirement to remove old data and reduce storage costs.
- B. Correct.
Correct: This rule moves objects to Nearline storage after 90 days, which reduces costs for infrequently accessed data.
- C. Correct.
Correct: This rule ensures that objects are retained for at least 180 days, meeting the compliance requirement.
- D. Incorrect.
Incorrect: Moving objects to Coldline storage does not fulfill the requirement to move them to Nearline storage after 90 days.
- E. Incorrect.
Incorrect: Retaining objects with a condition specifying 'age' greater than 365 days does not make sense, as objects older than 365 days need to be deleted.