A DevOps engineering team is upgrading an automated infrastructure deployment pipeline to adhere to current Google Cloud CLI best practices. They need to deploy a new Cloud Storage bucket named `gs://compliance-audit-logs-2026` in the `us-central1` region. Security and governance policies mandate that the bucket must enforce Uniform Bucket-Level Access (UBLA), set a default storage class of `COLDLINE` for all newly ingested objects, and enforce an unalterable object retention duration of 365 days. The team mandates using the modern `gcloud storage` CLI component rather than legacy `gsutil` commands. Which `gcloud storage` command correctly provisions this bucket with all specified configurations in a single step?
- gcloud storage buckets create gs://compliance-audit-logs-2026 --location=us-central1 --default-storage-class=COLDLINE --uniform-bucket-level-access --retention-period=365dCevap
- Bgcloud storage buckets create gs://compliance-audit-logs-2026 --location=us-central1 --storage-class=COLDLINE --enable-uniform-bucket-level-access --retention=365d
- Cgcloud storage buckets create gs://compliance-audit-logs-2026 --location=us-central1 --default-storage-class=COLDLINE --predefined-acl=private --retention-period=365d
- Dgcloud storage buckets create gs://compliance-audit-logs-2026 --location=us-central1 --default-storage-class=ARCHIVE --uniform-bucket-level-access --retention-period=365d
Cevap
The command `gcloud storage buckets create gs://compliance-audit-logs-2026 --location=us-central1 --default-storage-class=COLDLINE --uniform-bucket-level-access --retention-period=365d` correctly creates the bucket with all required settings using modern `gcloud storage` syntax.
The correct command utilizes valid `gcloud storage buckets create` syntax with exact flags: `--location=us-central1` sets the deployment region, `--default-storage-class=COLDLINE` configures the default storage class for new objects, `--uniform-bucket-level-access` disables legacy per-object ACLs in favor of IAM, and `--retention-period=365d` enforces a 365-day object retention policy.
Adım Adım Çözüm
Anahtar Kavram
Deploying Cloud Storage Buckets using gcloud storage CLI