Soru

Zorluk: ZorDeploying and Configuring Cloud Storage Buckets and Objects

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?

  1. 1Execute `gcloud storage buckets create gs://sec-audit-archive-2026 --location=us-west1 --uniform-bucket-level-access` to instantiate the storage bucket.
  2. 2Execute `gcloud storage buckets update gs://sec-audit-archive-2026 --versioning` to enable version protection.
  3. 3Execute `gcloud storage buckets update gs://sec-audit-archive-2026 --lifecycle-file=policy.json` to attach the object lifecycle transition rules.
  4. 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

1
Identify the foundational resource creation step.
Determine that creating the bucket resource using `gcloud storage buckets create` must be executed first.
Google Cloud Storage resources must exist prior to updating their metadata configurations or uploading files.
2
Determine the sequence of bucket feature enablement prior to policy enforcement.
Enable Object Versioning using `gcloud storage buckets update --versioning`.
Setting bucket feature flags before applying complex policies ensures all subsequent actions respect object history settings.
3
Apply governance and automated object transition rules.
Attach the lifecycle policy file using `gcloud storage buckets update --lifecycle-file=policy.json`.
Bucket configuration parameters and automated lifecycle rules must be active before ingesting production or baseline objects.
4
Perform the data ingestion step.
Upload the target file into the bucket using `gcloud storage cp`.
Uploading data is the final operational step once all target bucket access controls and configuration policies are active.

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.
Bu soruyu puanla