A cloud administrator is configuring a newly created Google Cloud Storage bucket named `analytics-export-data` to align with organizational security and operational compliance standards. The organization mandates that access must be managed strictly using IAM roles at the bucket level rather than per-object Access Control Lists (ACLs). Additionally, log files uploaded to this bucket must automatically transition to Nearline storage after 90 days to minimize ongoing storage fees. Which of the following commands should the administrator execute using the `gcloud` CLI to satisfy these requirements? (Select TWO.)
- Execute `gcloud storage buckets update gs://analytics-export-data --enable-uniform-bucket-level-access` to disable per-object ACLs and enforce bucket-level IAM policies.Cevap
- Execute `gcloud storage buckets update gs://analytics-export-data --lifecycle-file=lifecycle.json` where `lifecycle.json` defines a rule to change the storage class to Nearline for objects older than 90 days.Cevap
- CExecute `gsutil acl set private gs://analytics-export-data` to enforce uniform access control across all bucket objects.
- DExecute `gcloud storage objects update gs://analytics-export-data/* --storage-class=NEARLINE --age=90` to transition objects daily.
Cevap
The administrator must enable uniform bucket-level access using `gcloud storage buckets update gs://analytics-export-data --enable-uniform-bucket-level-access` and set the object lifecycle policy using `gcloud storage buckets update gs://analytics-export-data --lifecycle-file=lifecycle.json`.
To satisfy security and lifecycle requirements using modern GCP CLI standards, the administrator must enable Uniform Bucket-Level Access on the bucket resource to enforce IAM policy evaluation and apply a JSON lifecycle policy file using `gcloud storage buckets update --lifecycle-file` to automate the transition of 90-day-old objects to Nearline storage.
Adım Adım Çözüm
Anahtar Kavram
Cloud Storage bucket configuration using modern gcloud CLI flags for Uniform Bucket-Level Access and Object Lifecycle Management.
Tahmini Süre:1m 30s