Soru

Zorluk: ZorDeploying and Configuring Cloud Storage Buckets and Objects

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?

  1. gcloud storage buckets create gs://invoice-archive-bucket --location=europe-west3 --default-storage-class=nearline --uniform-bucket-level-accessCevap
  2. B
    gsutil mb -l europe-west3 -c nearline -b on gs://invoice-archive-bucket
  3. C
    gcloud storage buckets create gs://invoice-archive-bucket --location=europe-west3 --default-storage-class=standard --no-uniform-bucket-level-access
  4. D
    gcloud 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

1
Identify the recommended CLI tool suite for Cloud Storage management.
Use 'gcloud storage' commands instead of legacy 'gsutil' commands.
Google Cloud recommends 'gcloud storage' CLI for improved performance and unified gcloud user experience.
2
Determine the appropriate storage class for occasionally accessed invoice archives.
Select Nearline storage class using '--default-storage-class=nearline'.
Nearline storage is optimized for data accessed at most once a month, offering lower storage costs compared to Standard storage.
3
Configure bucket access control enforcement.
Include the '--uniform-bucket-level-access' flag.
Uniform Bucket-Level Access disables ACLs and ensures access is governed exclusively through IAM permissions across all objects in the bucket.

Anahtar Kavram

Deploying Cloud Storage Buckets with gcloud storage CLI and Uniform Bucket-Level Access
Bu soruyu puanla