Question

Difficulty: EasyDeploying and Configuring Cloud Storage Buckets and Objects

A cloud administrator needs to create a new Google Cloud Storage bucket named `media-archive-2026` in the `us-central1` region using the Google Cloud CLI (`gcloud`). Which command should the administrator execute to deploy this bucket?

  1. gcloud storage buckets create gs://media-archive-2026 --location=us-central1Answer
  2. B
    gcloud compute buckets create gs://media-archive-2026 --zone=us-central1
  3. C
    gcloud storage buckets create gs://media-archive-2026 --zone=us-central1-a
  4. D
    gcloud storage buckets update gs://media-archive-2026 --add-owner-role

Answer

The command `gcloud storage buckets create gs://media-archive-2026 --location=us-central1` correctly deploys a new Cloud Storage bucket in the specified region.
The correct command uses `gcloud storage buckets create` along with the `gs://` URI scheme and the `--location` flag to specify the target region (`us-central1`).

Step-by-Step Solution

1
Identify the proper CLI surface for Google Cloud Storage management.
The `gcloud storage` surface is the modern standard CLI tool for managing Google Cloud Storage resources.
Cloud Storage operations use the `gcloud storage` command group rather than `gcloud compute`.
2
Determine the correct command and flags for creating a bucket.
The `buckets create` subcommand combined with the `gs://` bucket URI format and `--location` parameter provisions the resource in `us-central1`.
Cloud Storage buckets are regional/multi-regional resources, requiring `--location` rather than zonal parameters.

Key Concept

Deploying Cloud Storage Buckets using the Google Cloud CLI
Estimated Time:45s
Rate this question