Google Cloud Associate Cloud Engineer — Question 122
You have been asked to set up Object Lifecycle Management for objects stored in storage buckets. The objects are written once and accessed frequently for 30 days. After 30 days, the objects are not read again unless there is a special need. The objects should be kept for three years, and you need to minimize cost.
What should you do?
Answer options
- A. Set up a policy that uses Nearline storage for 30 days and then moves to Archive storage for three years.
- B. Set up a policy that uses Standard storage for 30 days and then moves to Archive storage for three years.
- C. Set up a policy that uses Nearline storage for 30 days, then moves the Coldline for one year, and then moves to Archive storage for two years.
- D. Set up a policy that uses Standard storage for 30 days, then moves to Coldline for one year, and then moves to Archive storage for two years.
Correct answer: B
Explanation
The correct answer is B because Standard storage is ideal for frequently accessed data for the first 30 days, followed by Archive storage for long-term retention, which is cost-effective. Option A is incorrect as Nearline is more expensive than Standard for frequent access. Options C and D involve Coldline, which is unsuitable for the initial frequent access requirement.