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

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

You need to optimize costs for a Cloud Storage bucket used for backups. You want objects to automatically transition to the Coldline storage class 30 days after they are created, and then be permanently deleted 365 days after creation.

Which TWO Object Lifecycle Management rules should you configure? (Select TWO)

Answer options:

A.

Action: SetStorageClass to Coldline, Condition: Age = 30 days

B.

Action: Delete, Condition: Age = 365 days

C.

Action: SetStorageClass to Coldline, Condition: CreatedBefore = 30 days

D.

Action: Delete, Condition: MatchesStorageClass = Standard

E.

Use Cloud Scheduler to run a Cloud Function daily to delete old objects

How to approach this question

Identify the native Cloud Storage feature for automating data retention and transition, and select the rules that match the timeframes.

Full Answer

Action: SetStorageClass to Coldline, Condition: Age = 30 days, Action: Delete, Condition: Age = 365 days
Cloud Storage Object Lifecycle Management allows you to define automated rules. To meet the requirements, you need two separate rules. Rule 1: Action = `SetStorageClass` (Coldline), Condition = `Age` (30 days). Rule 2: Action = `Delete`, Condition = `Age` (365 days). The `Age` condition measures the time since the object was created.

Common mistakes

Confusing the `Age` condition (duration) with the `CreatedBefore` condition (specific date).

Practice the full GCP Associate Cloud Engineer Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam