Medium1 markMultiple Choice
Domain 4.4: Managing storage and database solutionsDomain 4.4Cloud StorageLifecycle ManagementCost Optimization

GCP ACE · Question 37 · Domain 4.4: Managing storage and database solutions

Your application uploads daily reports to a Cloud Storage bucket. These reports are accessed frequently for the first 30 days, but rarely accessed after that. You want to automatically move objects older than 30 days to the Coldline storage class to save money.

What is the MOST efficient way to achieve this?

Answer options:

A.

Write a Cloud Function triggered by a Cloud Scheduler job that runs daily, finds objects older than 30 days, and rewrites them to Coldline.

B.

Configure an Object Lifecycle Management policy on the bucket to change the storage class to Coldline when the age is 30 days.

C.

Use the gsutil rewrite command manually at the end of every month.

D.

Set the bucket's default storage class to Coldline.

How to approach this question

Identify the native Cloud Storage feature used for automating data retention and tiering.

Full Answer

B.Configure an Object Lifecycle Management policy on the bucket to change the storage class to Coldline when the age is 30 days.✓ Correct
Cloud Storage Object Lifecycle Management allows you to define rules that automatically perform actions on objects when certain conditions are met. Setting a rule to 'SetStorageClass' to 'Coldline' with a condition of 'Age = 30' is the automated, best-practice approach.

Common mistakes

Choosing to write a custom script or Cloud Function, which adds unnecessary operational overhead.

Practice the full GCP Associate Cloud Engineer Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam