Easy1 markMultiple Choice
Subtask 2.2: Storage SystemsCloud StorageLifecycle PoliciesCost Optimization

GCP PCA · Question 24 · Storage Systems

A media company stores millions of high-resolution images in Cloud Storage. Images are accessed frequently during the first 30 days after publication. After 30 days, they are rarely accessed but must be kept for 5 years for compliance. After 5 years, they should be deleted. How can you automate this process most cost-effectively?

Answer options:

A.

Write a Cloud Function triggered by Cloud Scheduler to scan the bucket daily and move or delete files.

B.

Create an Object Lifecycle Management policy to transition objects to Coldline storage after 30 days, and delete them after 1825 days.

C.

Store the images in Nearline storage initially, then manually move them to Archive storage after 5 years.

D.

Use BigQuery to store the images and use partition expiration to delete them after 5 years.

How to approach this question

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

Full Answer

B.Create an Object Lifecycle Management policy to transition objects to Coldline storage after 30 days, and delete them after 1825 days.✓ Correct
Create an Object Lifecycle Management policy to transition objects to Coldline storage after 30 days, and delete them after 1825 days.
Cloud Storage Object Lifecycle Management allows you to define rules that automatically apply to objects in a bucket. Transitioning to Coldline after 30 days drastically reduces storage costs for the 5-year retention period. The delete rule ensures compliance and prevents paying for storage beyond the required 5 years.

Common mistakes

Choosing to write a custom script (Option A). Always prefer native managed features over custom code for operational tasks.

Practice the full GCP Professional Cloud Architect Practice Exam 7

50 questions · hints · full answers · grading

More questions from this exam