A logistics enterprise is deploying a telemetry ingestion pipeline on Google Cloud. The cloud architecture team needs to provision a dedicated Cloud Storage bucket named `telemetry-logs-prod` in the `us-east4` region. According to corporate policy, the bucket must enforce Uniform Bucket-Level Access upon creation, and an existing lifecycle configuration file named `lifecycle.json` must be applied to automatically transition log objects older than 30 days to Nearline storage. Which TWO `gcloud storage` commands should you run to meet these requirements?
- gcloud storage buckets create gs://telemetry-logs-prod --location=us-east4 --uniform-bucket-level-accessCevap
- Bgsutil mb -l us-east4 -b on gs://telemetry-logs-prod
- gcloud storage buckets update gs://telemetry-logs-prod --lifecycle-file=lifecycle.jsonCevap
- Dgcloud storage buckets update gs://telemetry-logs-prod --default-storage-class=NEARLINE
Cevap
Executing `gcloud storage buckets create gs://telemetry-logs-prod --location=us-east4 --uniform-bucket-level-access` to provision the bucket and `gcloud storage buckets update gs://telemetry-logs-prod --lifecycle-file=lifecycle.json` to attach the object lifecycle policy.
To create a bucket with Uniform Bucket-Level Access in a specific region using current Google Cloud standards, use `gcloud storage buckets create` with `--location` and `--uniform-bucket-level-access`. To apply age-based transition rules from a local JSON file, execute `gcloud storage buckets update` with the `--lifecycle-file` flag.
Adım Adım Çözüm
Anahtar Kavram
Deploying Cloud Storage buckets and configuring object lifecycle policies using the gcloud storage CLI tool.