An organization needs to deploy a Compute Engine virtual machine instance to run an automated batch data-cleansing job every evening. The job saves checkpoint state incrementally to Cloud Storage, allowing it to safely resume if interrupted. The primary requirement is to minimize compute costs for this batch workload. Which instance configuration should the cloud engineer use?
- Provision a Compute Engine VM with the Spot provisioning model (`--provisioning-model=SPOT`) and `--on-host-maintenance=TERMINATE`.Cevap
- BProvision a standard Compute Engine VM and set `--on-host-maintenance=MIGRATE` to qualify for automatic batch pricing discounts.
- CProvision a Compute Engine VM using `gcloud compute instances create` with the flag `--preemptible-model=SPOT` and `--on-host-maintenance=MIGRATE`.
- DProvision a standard Compute Engine VM and grant the primitive Editor role to the VM's service account to unlock discounted compute billing rates.
Cevap
Provision a Compute Engine VM with the Spot provisioning model (`--provisioning-model=SPOT`) and host maintenance set to terminate.
Spot VMs offer substantial cost savings (typically 60-91% off standard prices) for workloads that are fault-tolerant and can resume from checkpoints if preempted by Google Cloud. When configuring Spot VMs, the host maintenance policy must be set to terminate.
Adım Adım Çözüm
Anahtar Kavram
Deploying Spot/Preemptible Compute Engine Instances for Cost-Optimized Fault-Tolerant Workloads