Question

Difficulty: HardDeploying and Configuring Cloud Storage Buckets and Objects

A digital healthcare company is deploying a new data pipeline in Google Cloud to store medical imaging files in the us-central1 region. The organization's security policy mandates that access to all objects in the bucket must be governed strictly using Cloud IAM policies rather than ACLs, requiring Uniform Bucket-Level Access to be enabled upon creation. Additionally, because the medical images are accessed infrequently (approximately once per month for routine audits), the bucket must default to the Nearline storage class. A Cloud Engineer needs to provision this bucket using the modern Google Cloud CLI. Which command should be executed to satisfy all requirements?

  1. gcloud storage buckets create gs://health-diag-images-2026 --location=us-central1 --default-storage-class=nearline --uniform-bucket-level-accessAnswer
  2. B
    gcloud storage buckets create gs://health-diag-images-2026 --region=us-central1 --storage-class=nearline --enable-ubla
  3. C
    gsutil mb -l us-central1 -c nearline -b off gs://health-diag-images-2026
  4. D
    gcloud storage buckets create gs://health-diag-images-2026 --location=us-central1 --default-storage-class=standard --no-uniform-bucket-level-access

Answer

Execute `gcloud storage buckets create gs://health-diag-images-2026 --location=us-central1 --default-storage-class=nearline --uniform-bucket-level-access`.
The command correctly uses the standard gcloud storage syntax to create a Cloud Storage bucket with specified location (us-central1), Nearline storage class for monthly access patterns, and Uniform Bucket-Level Access to enforce centralized IAM security policy.

Step-by-Step Solution

1
Identify the required CLI framework
Use modern `gcloud storage buckets create` rather than legacy `gsutil mb` commands.
Google Cloud recommends `gcloud storage` for improved performance and uniform CLI structure.
2
Select the correct location and storage class flags
Use `--location=us-central1` and `--default-storage-class=nearline`.
Medical images accessed monthly match the cost and performance characteristics of Nearline storage.
3
Configure access control settings
Include the `--uniform-bucket-level-access` flag during bucket creation.
Enforcing uniform bucket-level access disables legacy object ACLs and ensures unified access management via IAM.

Key Concept

Cloud Storage Bucket Provisioning via gcloud storage CLI
Estimated Time:2m 0s
Rate this question