nerdexam
Google

PROFESSIONAL-CLOUD-ARCHITECT · Question #37

You are creating a solution to remove backup files older than 90 days from your backup Cloud Storage bucket. You want to optimize ongoing Cloud Storage spend. What should you do?

The correct answer is B. Write a lifecycle management rule in JSON and push it to the bucket with gsutil. gsutil command takes only json as input for lifecycle management. In case of API, both XML and json can be used. https://cloud.google.com/storage/docs/gsutil/commands/lifecycle https://cloud.google.com/storage/docs/xml-api/put-bucket-lifecycle…

Submitted by weili_xi· Mar 30, 2026Managing and provisioning cloud solution infrastructure

Question

You are creating a solution to remove backup files older than 90 days from your backup Cloud Storage bucket. You want to optimize ongoing Cloud Storage spend. What should you do?

Options

  • AWrite a lifecycle management rule in XML and push it to the bucket with gsutil.
  • BWrite a lifecycle management rule in JSON and push it to the bucket with gsutil.
  • CSchedule a cron script using gsutil is -lr gs://backups/** to find and remove items older than 90
  • DSchedule a cron script using gsutil ls -l gs://backups/** to find and remove items older than 90

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    93% (28)
  • D
    3% (1)

Explanation

gsutil command takes only json as input for lifecycle management. In case of API, both XML and json can be used. https://cloud.google.com/storage/docs/gsutil/commands/lifecycle https://cloud.google.com/storage/docs/xml-api/put-bucket-lifecycle https://cloud.google.com/storage/docs/json_api/v1/buckets/update

Topics

#Cloud Storage lifecycle#object lifecycle management#cost optimization#gsutil

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-ARCHITECT Practice