Medium1 markMultiple Choice
Domain 4.4: Managing storage and database solutionsCloud StorageObject Lifecycle ManagementCost Optimization
GCP ACE · Question 37 · Domain 4.4: Managing storage and database solutions
You have a Cloud Storage bucket that receives thousands of image files daily. You want to automatically transition these files to Nearline storage after 30 days, and then delete them after 365 days.
What is the most efficient way to implement this?
You have a Cloud Storage bucket that receives thousands of image files daily. You want to automatically transition these files to Nearline storage after 30 days, and then delete them after 365 days.
What is the most efficient way to implement this?
Answer options:
A.
Write a Cloud Function triggered by a Cloud Scheduler cron job to move and delete the files.
B.
Configure an Object Lifecycle Management policy on the bucket.
C.
Use the gsutil rewrite command in a bash script running on a Compute Engine VM.
D.
Set the default storage class of the bucket to Nearline.
How to approach this question
Identify the native Cloud Storage feature for automating data retention and tiering.
Full Answer
B.Configure an Object Lifecycle Management policy on the bucket.✓ Correct
Configure an Object Lifecycle Management policy on the bucket.
Cloud Storage Object Lifecycle Management allows you to define rules that automatically perform actions on objects in a bucket. You can set a rule to change the storage class to Nearline when the object's age is 30 days, and another rule to delete the object when its age is 365 days. This requires no custom code or compute resources.
Common mistakes
Choosing to write a script or Cloud Function. Always prefer native, managed features over custom code for standard operations.
Practice the full GCP Associate Cloud Engineer Practice Exam 7
50 questions · hints · full answers · grading
More questions from this exam
Q01You are starting a new initiative and need to create a new Google Cloud project using the Cloud S...EasyQ02Your company is migrating to Google Cloud and wants to manage user identities centrally. They cur...MediumQ03You have just created a new Google Cloud project and want to deploy a containerized application u...MediumQ04Your finance team wants to perform complex SQL queries on your Google Cloud billing data to analy...MediumQ05You are managing a development project in Google Cloud. You want to ensure that you are notified ...Easy
Expert