
Answer-first summary for fast verification
Answer: gsutil mb -c nearline gs://archive_bucket
The correct answer is **B** because the Nearline storage class is designed for data that is accessed no more than once per month, making it ideal for this scenario. The `-c` parameter is necessary to specify the storage class. - **Option A** is incorrect because `rm` is used to remove data, not create a bucket. - **Option C** is incorrect because Coldline is suited for data accessed less frequently than once per month. - **Option D** is incorrect because it does not specify a storage class, resulting in the creation of a regional bucket by default. For more details, refer to the [GCP documentation on Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Which command should you use to create a storage bucket named 'archive_bucket' that is optimized for data accessed once per month?
A
gsutil rm -coldline gs://archive_bucket
B
gsutil mb -c nearline gs://archive_bucket
C
gsutil mb -c coldline gs://archive_bucket
D
gsutil mb gs://archive_bucket
No comments yet.