Soru

Zorluk: OrtaDeploying and Configuring Cloud Storage Buckets and Objects

A cloud engineer is deploying a new Google Cloud Storage bucket named `gs://media-ingest-pipeline-2026` in the `us-central1` region for an automated processing workflow. The project requirements specify configuring security standards (Uniform Bucket-Level Access), applying a lifecycle transition policy to lower long-term storage costs, and uploading initial assets. In what order should the engineer execute the following operational steps to establish the bucket and its initial configuration following Google Cloud best practices?

  1. 1Provision the target Cloud Storage bucket using `gcloud storage buckets create gs://media-ingest-pipeline-2026 --location=us-central1`.
  2. 2Enable Uniform Bucket-Level Access using `gcloud storage buckets update gs://media-ingest-pipeline-2026 --uniform-bucket-level-access`.
  3. 3Attach the lifecycle management policy using `gcloud storage buckets update gs://media-ingest-pipeline-2026 --lifecycle-file=lifecycle.json`.
  4. 4Upload the initial dataset into the bucket using `gcloud storage cp media_batch_01.tar.gz gs://media-ingest-pipeline-2026/`.

Cevap

The operational sequence should begin with bucket creation (`gcloud storage buckets create`), followed by enabling Uniform Bucket-Level Access (`--uniform-bucket-level-access`), then applying the lifecycle rules (`--lifecycle-file`), and lastly uploading the data objects (`gcloud storage cp`).
Google Cloud deployment best practices dictate establishing the infrastructure resource first, applying security access boundaries next (Uniform Bucket-Level Access), binding lifecycle automation rules, and finally ingesting initial objects.

Adım Adım Çözüm

1
Provision the bucket
Bucket `gs://media-ingest-pipeline-2026` is created in `us-central1`.
The bucket resource must exist in Google Cloud before any configuration flags or files can be applied.
2
Enforce security controls
Uniform Bucket-Level Access is activated on the bucket.
Security governance requires establishing uniform access controls prior to storing data.
3
Configure lifecycle management
Lifecycle rules from `lifecycle.json` are bound to the bucket.
Setting operational policies before data upload ensures proper automated handling of objects as soon as they land.
4
Ingest objects into the bucket
The file `media_batch_01.tar.gz` is stored in the fully configured bucket.
Object ingestion is the final step after infrastructure and governance rules are in place.

Anahtar Kavram

Deploying and Configuring Cloud Storage Buckets and Objects
Bu soruyu puanla