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)
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
Q01You are starting a new initiative and need to create a new Google Cloud project using the command...EasyQ02A developer on your team needs to manage App Engine applications, including deploying new version...MediumQ03You have created a new Google Cloud project. You need to allow a specific group of developers to ...MediumQ04Which statement best describes the relationship between Google Cloud projects and billing accounts?EasyQ05Your company wants to be notified immediately in their Slack channel whenever their monthly Googl...Medium
Expert