
Answer-first summary for fast verification
Answer: gsutil mb -c coldline gs://archive_bucket
The correct answer is B because the Coldline storage class is designed for data that is accessed infrequently, such as once a year or less, making it ideal for compliance archives or audit data. The `-c` parameter is necessary to specify the storage class when using the `gsutil mb` command to create a bucket. Option A is incorrect as Nearline is suited for data accessed more frequently than once a year. Option C is incorrect because `rm` is used to remove data, not create a bucket. Option D is incorrect as it defaults to creating a regional bucket without specifying the Coldline storage class.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company is planning to archive data to Cloud Storage, which will only be accessed in the event of compliance issues or audits. What is the correct command to create a storage bucket named 'archive_bucket' with settings optimized for rare access?
A
gsutil mb -c nearline gs://archive_bucket
B
gsutil mb -c coldline gs://archive_bucket
C
gsutil rm -coldline gs://archive_bucket
D
gsutil mb gs://archive_bucket
No comments yet.