A cloud engineer at a financial institution needs to deploy a new Cloud Storage bucket named `fin-reconciliation-vault` in the `us-east4` region. The bucket deployment must satisfy two key administrative requirements:
1. Prevent object-level Access Control Lists (ACLs) by enforcing Uniform Bucket-Level Access across all contained objects.
2. Protect records against accidental overwrites or deletions by enabling Object Versioning on the bucket.
Which of the following CLI commands should be executed to accomplish these deployment requirements? (Select TWO answers.)
- Run `gcloud storage buckets create gs://fin-reconciliation-vault --location=us-east4 --uniform-bucket-level-access`Cevap
- Run `gcloud storage buckets update gs://fin-reconciliation-vault --versioning`Cevap
- CRun `gsutil set-ubla on gs://fin-reconciliation-vault`
- DApply individual per-object Access Control Lists (ACLs) to grant specific user read/write access after uploading records
Cevap
Creating the bucket using `gcloud storage buckets create gs://fin-reconciliation-vault --location=us-east4 --uniform-bucket-level-access` and enabling object versioning using `gcloud storage buckets update gs://fin-reconciliation-vault --versioning`.
Executing `gcloud storage buckets create gs://fin-reconciliation-vault --location=us-east4 --uniform-bucket-level-access` provisions the bucket in the requested region while establishing uniform IAM permissions. Subsequently, running `gcloud storage buckets update gs://fin-reconciliation-vault --versioning` successfully enables Object Versioning to protect against file overwrites.
Adım Adım Çözüm
Anahtar Kavram
Cloud Storage bucket deployment options and Object Versioning configuration using gcloud storage CLI