A data engineering team needs to provision a new Cloud Storage bucket named `analytics-raw-events` in the `us-central1` region to ingest event streams. Company security policy mandates enforcing Uniform Bucket-Level Access upon bucket creation to prevent fine-grained object access control lists (ACLs) from bypassing IAM access policies. Which command should the team execute using the modern `gcloud` CLI to meet these requirements?
- gcloud storage buckets create gs://analytics-raw-events --location=us-central1 --uniform-bucket-level-accessAnswer
- Bgsutil mb -l us-central1 -b on gs://analytics-raw-events
- Cgcloud storage buckets create gs://analytics-raw-events --zone=us-central1-a --uniform-bucket-level-access
- Dgcloud storage buckets create gs://analytics-raw-events --location=us-central1 followed by gcloud storage objects set-acl to grant read access on ingested files
Answer
Execute `gcloud storage buckets create gs://analytics-raw-events --location=us-central1 --uniform-bucket-level-access` to create the bucket with Uniform Bucket-Level Access enabled.
The command `gcloud storage buckets create gs://analytics-raw-events --location=us-central1 --uniform-bucket-level-access` correctly provisions the bucket using modern gcloud storage syntax while applying regional location settings and enabling Uniform Bucket-Level Access in a single step.
Step-by-Step Solution
Key Concept
Cloud Storage Bucket Deployment and Access Enforcement via gcloud CLI
Estimated Time:1m 30s