A cloud engineer needs to create a new Google Cloud Storage bucket named `customer-backups-us-central1` located in the `us-central1` region using the modern `gcloud` CLI. The bucket must be configured with a default storage class of `NEARLINE` for storing monthly database backups. Which command should the engineer execute to fulfill these requirements?
- gcloud storage buckets create gs://customer-backups-us-central1 --location=us-central1 --default-storage-class=NEARLINECevap
- Bgsutil mb -c NEARLINE -l us-central1 gs://customer-backups-us-central1
- Cgcloud storage buckets create gs://customer-backups-us-central1 --region=us-central1 --storage-class=NEARLINE
- Dgcloud storage buckets create gs://customer-backups-us-central1 --location=us-central1 --default-storage-class=COLDLINE
Cevap
The command 'gcloud storage buckets create gs://customer-backups-us-central1 --location=us-central1 --default-storage-class=NEARLINE' correctly creates the bucket with the required location and storage class using modern gcloud storage syntax.
The correct command utilizes 'gcloud storage buckets create' followed by the bucket URI 'gs://customer-backups-us-central1', specifying '--location=us-central1' for the location and '--default-storage-class=NEARLINE' to set the default storage class for created objects.
Adım Adım Çözüm
Anahtar Kavram
Deploying Cloud Storage buckets using the gcloud CLI with location and storage class configurations.