Google Associate Cloud Engineer Question 239
Select 2Google Cloud PlatformYou are managing a Google Cloud Storage bucket that contains log files generated by your application. To optimize storage costs, you want to implement a lifecycle management policy that archives objects to Coldline storage after 30 days and deletes them after 365 days. Which of the following actions should you configure in your lifecycle policy?
- A
Set a condition to match objects older than 30 days and a Coldline storage class action.
- B
Set a condition to match objects older than 30 days and a Delete action.
- C
Set a condition to match objects older than 365 days and a Delete action.
- D
Set a condition to match objects older than 365 days and a Coldline storage class action.
- E
Set a condition to match objects older than 30 days and a Nearline storage class action.
Show answer and explanation
Correct answers: A, C
Explanation
To implement the desired lifecycle management policy, you need to set up a rule that transitions objects to Coldline storage when they are 30 days old to reduce storage costs for infrequently accessed data. Additionally, you need a rule to delete objects after they are 365 days old, ensuring that unnecessary storage costs are mitigated by removing old data.
- A. Correct.
Correct: This action transitions objects to Coldline storage after they are 30 days old, which optimizes cost for infrequently accessed data.
- B. Incorrect.
Incorrect: This action would delete the objects after 30 days, which is not the desired outcome.
- C. Correct.
Correct: This action deletes objects after they are 365 days old, as required by the policy.
- D. Incorrect.
Incorrect: This action does not align with the requirement to delete objects after 365 days.
- E. Incorrect.
Incorrect: Nearline storage is not the desired storage class for archiving in this scenario.