
Answer-first summary for fast verification
Answer: gsutil mb -l us-west2 -s coldline --retention 10y gs://logs-archive
The correct command is `gsutil mb -l us-west2 -s coldline --retention 10y gs://logs-archive`. This command correctly specifies the Los Angeles region (us-west2), uses the Coldline storage class for cost efficiency, and sets the retention period to 10 years. Other options either use incorrect storage classes, wrong region names, or incorrect retention periods. For more details, refer to the [Google Cloud Storage documentation](https://cloud.google.com/storage/docs/gsutil/commands/mb) and [location guide](https://cloud.google.com/storage/docs/locations).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To create a Google Cloud Storage regional bucket named 'logs-archive' in the Los Angeles region (us-west2) using the Coldline storage class to minimize costs and retain files for 10 years, which command should you execute?
A
gsutil mb -l us-west2 -s nearline --retention 10y gs://logs-archive
B
gsutil mb -l los-angeles -s coldline --retention 10m gs://logs-archive
C
gsutil mb -l us-west2 -s coldline --retention 10m gs://logs-archive
D
gsutil mb -l us-west2 -s coldline --retention 10y gs://logs-archive
No comments yet.