A cloud engineer must configure an existing Google Cloud Storage bucket named `analytics-raw-data-prod` to meet strict compliance guidelines. The bucket must prevent object deletion or modification for 90 days after creation and enforce uniform IAM access control across all objects by disabling individual object ACLs. Which TWO `gcloud` CLI commands should the cloud engineer execute to complete this configuration? (Select TWO.)
- gcloud storage buckets update gs://analytics-raw-data-prod --retention-period=90dCevap
- gcloud storage buckets update gs://analytics-raw-data-prod --enable-uniform-bucket-level-accessCevap
- Cgsutil retention set 90d gs://analytics-raw-data-prod
- Dgcloud storage objects update gs://analytics-raw-data-prod --set-acl=private
Cevap
The correct commands are executing `gcloud storage buckets update gs://analytics-raw-data-prod --retention-period=90d` to set the 90-day bucket retention policy, and executing `gcloud storage buckets update gs://analytics-raw-data-prod --enable-uniform-bucket-level-access` to enforce uniform bucket-level access controls.
To satisfy compliance requirements on a Cloud Storage bucket, retention policies and uniform bucket-level access must both be applied at the bucket resource level using the modern `gcloud storage buckets update` command with `--retention-period=90d` and `--enable-uniform-bucket-level-access` flags.
Adım Adım Çözüm
Anahtar Kavram
Cloud Storage Bucket Configuration (Retention Policies & Access Controls via gcloud CLI)