Soru

Zorluk: ZorDeploying and Configuring Cloud Storage Buckets and Objects

A cloud engineer is deploying a Cloud Storage bucket named `audit-vault-2026` in the `us-east1` region to hold long-term regulatory compliance logs. Security policies mandate that per-object ACLs must be completely disabled by enforcing Uniform Bucket-Level Access upon creation. Furthermore, all files uploaded to this bucket must default to the `ARCHIVE` storage class to minimize storage expenditure. Which command should the engineer run to deploy the bucket according to Google-recommended best practices?

  1. gcloud storage buckets create gs://audit-vault-2026 --location=us-east1 --default-storage-class=ARCHIVE --uniform-bucket-level-accessCevap
  2. B
    gsutil mb -l us-east1 -c ARCHIVE -b on gs://audit-vault-2026
  3. C
    gcloud storage buckets create gs://audit-vault-2026 --location=us-east1 --default-storage-class=ARCHIVE --no-uniform-bucket-level-access
  4. D
    gcloud compute buckets create gs://audit-vault-2026 --zone=us-east1-a --storage-class=ARCHIVE --uniform-bucket-level-access

Cevap

The command 'gcloud storage buckets create gs://audit-vault-2026 --location=us-east1 --default-storage-class=ARCHIVE --uniform-bucket-level-access' correctly creates the storage bucket with all required security and storage class configurations.
The correct command utilizes 'gcloud storage buckets create' along with the '--location=us-east1', '--default-storage-class=ARCHIVE', and '--uniform-bucket-level-access' flags. This fulfills all requirements in a single operation adhering to current Google Cloud standards.

Adım Adım Çözüm

1
Identify the primary CLI tool standard for GCP deployment tasks.
Google Cloud recommends using the modern 'gcloud storage' CLI component for managing Cloud Storage resources.
The 'gcloud storage' CLI replaces legacy 'gsutil' commands and provides unified syntax under gcloud.
2
Select the appropriate flags for region, storage class, and access model.
Use '--location=us-east1' for placement, '--default-storage-class=ARCHIVE' for cost-optimized archive storage, and '--uniform-bucket-level-access' to disable per-object ACLs.
Enforcing uniform bucket-level access unifies security under IAM policies, fulfilling compliance and security directives.

Anahtar Kavram

Deploying Cloud Storage Buckets using gcloud storage CLI
Tahmini Süre:2m 0s
Bu soruyu puanla