A DevOps team is deploying a new Google Cloud Storage bucket named `media-ingest-prod-2026` in the `us-central1` region to process incoming video uploads. According to organizational compliance guidelines and Google Cloud best practices, the bucket must enforce uniform access control via IAM policies instead of legacy per-object ACLs, and object versioning must be enabled at creation time. Which `gcloud` command should the team execute to create the bucket with these requirements?
- `gcloud storage buckets create gs://media-ingest-prod-2026 --location=us-central1 --uniform-bucket-level-access --enable-object-versioning`Answer
- B`gsutil mb -l us-central1 -b on gs://media-ingest-prod-2026`
- C`gcloud storage buckets create gs://media-ingest-prod-2026 --location=us-central1 --no-uniform-bucket-level-access --enable-object-versioning`
- D`gcloud storage buckets update gs://media-ingest-prod-2026 --location=us-central1 --uniform-bucket-level-access`
Answer
Execute `gcloud storage buckets create gs://media-ingest-prod-2026 --location=us-central1 --uniform-bucket-level-access --enable-object-versioning` to deploy the bucket with uniform access and versioning enabled.
The correct command uses `gcloud storage buckets create` to provision the bucket and applies `--uniform-bucket-level-access` alongside `--enable-object-versioning` in a single operational step.
Step-by-Step Solution
Key Concept
Deploying Cloud Storage Buckets with Uniform Access and Versioning via gcloud CLI