A cloud engineer at a genomics research firm needs to set up a new Cloud Storage bucket in `us-east1` to store raw sequencing data. The deployment must enforce Uniform Bucket-Level Access, apply a 30-day object transition rule to Nearline storage defined in a local JSON file, and ingest the initial dataset. In what operational sequence should the engineer execute these tasks?
- 1Run `gcloud storage buckets create gs://genomics-sequencing-data-2026 --location=us-east1 --uniform-bucket-level-access` to provision the bucket.
- 2Create a local JSON file named `lifecycle.json` containing the rule to transition objects to Nearline storage after 30 days.
- 3Run `gcloud storage buckets update gs://genomics-sequencing-data-2026 --lifecycle-file=lifecycle.json` to attach the policy.
- 4Run `gcloud storage cp ./raw_data/* gs://genomics-sequencing-data-2026/` to upload the raw data files into the bucket.
Cevap
The correct operational sequence is: 1) Provision the bucket using `gcloud storage buckets create` with `--uniform-bucket-level-access`, 2) Create the local `lifecycle.json` policy file, 3) Apply the policy using `gcloud storage buckets update --lifecycle-file=lifecycle.json`, and 4) Upload the data files using `gcloud storage cp`.
The deployment workflow follows a strict dependency order: provision the Cloud Storage bucket with security constraints (Uniform Bucket-Level Access) first, author the local lifecycle policy JSON file second, attach the policy to the existing bucket third, and upload the data files fourth.
Adım Adım Çözüm
Anahtar Kavram
Deploying Cloud Storage buckets using modern gcloud storage CLI commands and configuring object lifecycle management policies.