Soru

Zorluk: KolayDeploying and Configuring Cloud Storage Buckets and Objects

A cloud engineer needs to enable Object Versioning on an existing Google Cloud Storage bucket named `app-logs-prod` using the Google Cloud CLI (`gcloud`). Which command should the engineer run?

  1. gcloud storage buckets update gs://app-logs-prod --versioningCevap
  2. B
    gcloud storage buckets update gs://app-logs-prod --enable-versioning
  3. C
    gcloud compute buckets update gs://app-logs-prod --versioning
  4. D
    gsutil versioning set on app-logs-prod

Cevap

The correct command is `gcloud storage buckets update gs://app-logs-prod --versioning`.
To update settings on an existing Cloud Storage bucket such as enabling Object Versioning using the Google Cloud CLI, the correct command is `gcloud storage buckets update gs://[BUCKET_NAME] --versioning`.

Adım Adım Çözüm

1
Identify the target Cloud Storage resource and command group
The target is the existing bucket `app-logs-prod`, managed via the `gcloud storage` CLI component.
Google Cloud CLI manages object storage resources using `gcloud storage buckets` subcommands.
2
Specify the update action and versioning flag
Execute `gcloud storage buckets update gs://app-logs-prod --versioning`.
The `update` subcommand combined with the `--versioning` flag enables Object Versioning on the bucket.

Anahtar Kavram

Deploying and configuring Cloud Storage bucket features using gcloud storage CLI
Tahmini Süre:45s
Bu soruyu puanla