Easy1 markMultiple Choice
GCP ACE · Question 37 · Domain 4.4: Managing storage and database solutions
You have a Cloud Storage bucket used for storing daily database backups. You want to automatically transition backups older than 30 days to Coldline storage, and delete backups older than 365 days.
What is the MOST efficient way to implement this?
You have a Cloud Storage bucket used for storing daily database backups. You want to automatically transition backups older than 30 days to Coldline storage, and delete backups older than 365 days.
What is the MOST efficient way to implement this?
Answer options:
A.
Write a bash script using gsutil to move and delete files, and run it daily via a cron job.
B.
Create a Cloud Function triggered by a Cloud Scheduler job to manage the objects.
C.
Configure Object Lifecycle Management rules on the bucket.
D.
Use Cloud Dataflow to process and move the files daily.
How to approach this question
Identify the native Cloud Storage feature for automating data retention and tiering.
Full Answer
C.Configure Object Lifecycle Management rules on the bucket.✓ Correct
Configure Object Lifecycle Management rules 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 rules to change the storage class (e.g., to Coldline) or delete objects based on conditions like age (e.g., older than 30 days). This requires no custom code or cron jobs.
Common mistakes
Choosing custom scripting or Cloud Functions, ignoring the built-in managed feature.
Practice the full GCP Associate Cloud Engineer Practice Exam 4
50 questions · hints · full answers · grading
More questions from this exam
Q01You have recently joined a new team and need to set up a new Google Cloud project for a developme...EasyQ02Your company uses Google Workspace. You need to grant a new developer, Alice, the ability to view...MediumQ03You have created a new GCP project and want to deploy a Compute Engine instance. However, when yo...MediumQ04Your startup has a strict monthly cloud budget of $500. You want to be notified via email when yo...EasyQ05Your finance team wants to analyze Google Cloud costs using standard SQL and build custom dashboa...Medium
Expert