A cloud engineer needs to deploy a fault-tolerant batch processing workload on Compute Engine using the Google Cloud CLI (`gcloud`). The application runs short-lived jobs and must be provisioned on highly discounted, temporary compute capacity that can be reclaimed by Google Cloud at any time. Which `gcloud compute instances create` command correctly provisions the virtual machine instance with this capability?
- gcloud compute instances create batch-worker-1 --zone=us-central1-a --provisioning-model=SPOTCevap
- Bgcloud compute instances create batch-worker-1 --zone=us-central1-a --type=spot-instance
- Cgcloud compute instances create batch-worker-1 --zone=us-central1-a --maintenance-policy=TERMINATE --no-restart
- Dgcloud compute instances create batch-worker-1 --zone=us-central1-a --scheduling-type=PREEMPTIBLE
Cevap
The command using `gcloud compute instances create batch-worker-1 --zone=us-central1-a --provisioning-model=SPOT` is correct because `--provisioning-model=SPOT` is the standard gcloud CLI flag to request Spot VM capacity on Compute Engine.
The correct command specifies `--provisioning-model=SPOT`. Spot VMs are highly discounted compute instances that can be reclaimed by Compute Engine when resources are needed elsewhere, making them ideal for fault-tolerant batch workloads.
Adım Adım Çözüm
Anahtar Kavram
Provisioning Spot Compute Engine Virtual Machines via gcloud