A cloud engineer is deploying a new Google Cloud Storage bucket named `gs://finance-reports-archival` to store sensitive audit documents. The requirements mandate creating the bucket in the `us-central1` region, enforcing uniform bucket-level access to prevent object-level ACL overrides, applying a lifecycle management configuration from a local file named `policy.json` to transition items to Coldline storage, and finally populating the bucket with local files from `./reports/`. What is the correct sequential order of `gcloud storage` administrative steps to complete this deployment?
- 1Provision the new Cloud Storage bucket in the designated region using `gcloud storage buckets create gs://finance-reports-archival --location=us-central1`.
- 2Enforce uniform bucket-level access on the newly provisioned bucket using `gcloud storage buckets update gs://finance-reports-archival --uniform-bucket-level-access`.
- 3Apply the lifecycle management rule from the configuration file using `gcloud storage buckets update gs://finance-reports-archival --lifecycle-file=policy.json`.
- 4Upload the local document directory to the bucket using `gcloud storage cp -r ./reports/ gs://finance-reports-archival/`.
Answer
The correct operational sequence begins with provisioning the bucket resource, configuring security controls (uniform bucket-level access), applying lifecycle rules from the configuration file, and finally copying local object files into the bucket.
The correct deployment sequence follows standard infrastructure lifecycle practices: provision the storage container (`gcloud storage buckets create`), apply security controls (`--uniform-bucket-level-access`), configure management rules (`--lifecycle-file`), and then perform data ingestion (`gcloud storage cp`).
Step-by-Step Solution
Key Concept
Cloud Storage Deployment Lifecycle & Ordering