Soru

Zorluk: Çok zorDeploying and Configuring Cloud Storage Buckets and Objects

A gaming studio's DevOps team is provisioning a new Google Cloud Storage bucket named `game-patch-assets-global` in the `us-central1` region using the modern `gcloud storage` CLI tool. The bucket will store high-volume patch updates for client distribution. The team must enforce centralized IAM access permissions across all objects while disabling legacy per-object Access Control Lists (ACLs). Additionally, they need to ensure that patch files older than 30 days automatically transition from Standard to Nearline storage to minimize ongoing storage fees. Which TWO commands or configuration steps must the team execute to fulfill these requirements? (Select TWO.)

  1. Execute `gcloud storage buckets create gs://game-patch-assets-global --location=us-central1 --uniform-bucket-level-access` to create the bucket with unified IAM access control enabled.Cevap
  2. B
    Execute `gsutil mb -c standard -l us-central1 gs://game-patch-assets-global` and configure public read access using `gsutil acl set public-read gs://game-patch-assets-global`.
  3. Execute `gcloud storage buckets update gs://game-patch-assets-global --lifecycle-file=lifecycle.json` with a configuration specifying an `Age` condition of 30 days and a `SetStorageClass` action of `NEARLINE`.Cevap
  4. D
    Execute `gcloud storage objects update gs://game-patch-assets-global/* --add-acl-grant=entity=AllUsers,role=READER` to configure object-level permissions individually after deployment.

Cevap

The team must provision the bucket using `gcloud storage buckets create gs://game-patch-assets-global --location=us-central1 --uniform-bucket-level-access` and update the bucket's lifecycle policy using `gcloud storage buckets update gs://game-patch-assets-global --lifecycle-file=lifecycle.json` containing an Age condition of 30 days and a SetStorageClass action of NEARLINE.
Provisioning the Cloud Storage bucket with `gcloud storage buckets create` along with the `--uniform-bucket-level-access` flag enforces unified IAM permissions and disables object ACLs. Updating the bucket with `gcloud storage buckets update --lifecycle-file=lifecycle.json` successfully attaches the lifecycle condition to transition 30-day-old objects from Standard to Nearline storage class.

Adım Adım Çözüm

1
Identify the required access control model and CLI utility.
The requirement mandates using `gcloud storage` CLI and disabling per-object ACLs in favor of centralized IAM. This requires passing the `--uniform-bucket-level-access` flag during bucket creation.
Uniform Bucket-Level Access unifies permission management under Google Cloud IAM and turns off ACL evaluation.
2
Identify the cost optimization lifecycle configuration mechanism.
To transition objects older than 30 days to Nearline storage, a JSON lifecycle rule file defining `action: { "type": "SetStorageClass", "storageClass": "NEARLINE" }` and `condition: { "age": 30 }` must be applied.
`gcloud storage buckets update` accepts `--lifecycle-file` to apply object lifecycle management specifications.

Anahtar Kavram

Deploying Cloud Storage buckets with Uniform Bucket-Level Access and applying Object Lifecycle Management rules using gcloud storage CLI.
Bu soruyu puanla