Google Cloud Professional Data Engineer — Question 186
You are planning to use Cloud Storage as part of your data lake solution. The Cloud Storage bucket will contain objects ingested from external systems. Each object will be ingested once, and the access patterns of individual objects will be random. You want to minimize the cost of storing and retrieving these objects. You want to ensure that any cost optimization efforts are transparent to the users and applications. What should you do?
Answer options
- A. Create a Cloud Storage bucket with Autoclass enabled.
- B. Create a Cloud Storage bucket with an Object Lifecycle Management policy to transition objects from Standard to Coldline storage class if an object age reaches 30 days.
- C. Create a Cloud Storage bucket with an Object Lifecycle Management policy to transition objects from Standard to Coldline storage class if an object is not live.
- D. Create two Cloud Storage buckets. Use the Standard storage class for the first bucket, and use the Coldline storage class for the second bucket. Migrate objects from the first bucket to the second bucket after 30 days.
Correct answer: A
Explanation
The correct answer is A, as enabling Autoclass allows Cloud Storage to automatically optimize the storage class of objects based on their access patterns, ensuring cost efficiency without user intervention. Option B and C both require manual policy adjustments which may not be as responsive to changing access patterns, and option D introduces unnecessary complexity by managing two separate buckets.