A cloud engineer is tasked with deploying and configuring an enterprise audit logging Cloud Storage bucket in `us-west1` for compliance tracking. The bucket must enforce Uniform Bucket-Level Access, have Object Versioning enabled, apply a lifecycle management policy defined in `policy.json`, and finally receive an initial baseline audit log file. In what chronological sequence must the engineer execute the following operational steps to correctly establish and populate the solution?
- 1Execute `gcloud storage buckets create gs://sec-audit-archive-2026 --location=us-west1 --uniform-bucket-level-access` to instantiate the storage bucket.
- 2Execute `gcloud storage buckets update gs://sec-audit-archive-2026 --versioning` to enable version protection.
- 3Execute `gcloud storage buckets update gs://sec-audit-archive-2026 --lifecycle-file=policy.json` to attach the object lifecycle transition rules.
- 4Execute `gcloud storage cp baseline.log gs://sec-audit-archive-2026/` to upload the initial audit data object.
Cevap
The correct operational sequence is: first create the bucket with Uniform Bucket-Level Access (`item_1`), then enable Object Versioning (`item_2`), followed by applying the lifecycle policy file (`item_3`), and finally uploading the baseline audit log object (`item_4`).
The correct operational sequence follows GCP infrastructure deployment best practices: 1) Instantiate the Cloud Storage bucket with specified security settings (`--uniform-bucket-level-access`), 2) Enable Object Versioning to protect data state, 3) Apply object lifecycle policies (`--lifecycle-file`) to manage long-term object state, and 4) Upload the initial object payload (`gcloud storage cp`).
Adım Adım Çözüm
Anahtar Kavram
Deploying and configuring Cloud Storage buckets and objects requires a strict operational dependency order: resource creation with access parameters, metadata and lifecycle policy configuration, and finally object ingestion.