A DevOps engineer at an e-commerce platform needs to create a new Google Cloud Storage bucket in the europe-west3 region to archive generated end-of-day customer invoice documents. The documents are accessed occasionally during the first 30 days after generation and must have access rights controlled strictly via IAM permissions across the entire bucket, preventing any individual object-level ACL assignments. Which gcloud CLI command meets these requirements using current Google Cloud recommended practices?
- gcloud storage buckets create gs://invoice-archive-bucket --location=europe-west3 --default-storage-class=nearline --uniform-bucket-level-accessCevap
- Bgsutil mb -l europe-west3 -c nearline -b on gs://invoice-archive-bucket
- Cgcloud storage buckets create gs://invoice-archive-bucket --location=europe-west3 --default-storage-class=standard --no-uniform-bucket-level-access
- Dgcloud storage buckets create gs://invoice-archive-bucket --location=europe-west3 --default-storage-class=nearline --grant-roles=roles/storage.objectViewer
Cevap
Execute 'gcloud storage buckets create gs://invoice-archive-bucket --location=europe-west3 --default-storage-class=nearline --uniform-bucket-level-access'.
The correct command utilizes the current Google Cloud CLI interface ('gcloud storage buckets create') to provision the bucket in the specified region ('europe-west3'), sets Nearline as the default storage class for monthly accessed files, and enforces Uniform Bucket-Level Access to delegate all permission management to IAM policies.
Adım Adım Çözüm
Anahtar Kavram
Deploying Cloud Storage Buckets with gcloud storage CLI and Uniform Bucket-Level Access