Easy1 markMultiple Choice
Domain 4.4: Managing storage and database solutionsDomain 4.4Cloud StorageLifecycle Management

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?

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