Soru

Zorluk: OrtaDeploying and Managing Compute Engine Virtual Machines

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?

  1. Provision a Compute Engine VM with the Spot provisioning model (`--provisioning-model=SPOT`) and `--on-host-maintenance=TERMINATE`.Cevap
  2. B
    Provision a standard Compute Engine VM and set `--on-host-maintenance=MIGRATE` to qualify for automatic batch pricing discounts.
  3. C
    Provision a Compute Engine VM using `gcloud compute instances create` with the flag `--preemptible-model=SPOT` and `--on-host-maintenance=MIGRATE`.
  4. D
    Provision 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

1
Analyze workload requirements
The job is a fault-tolerant batch process that saves state incrementally and prioritizes cost reduction.
Fault-tolerant batch jobs that can handle interruptions are prime candidates for Spot VMs.
2
Select appropriate GCP Compute Engine feature
Spot VMs (or Preemptible VMs) offer up to 60-91% discounts compared to standard pricing.
Google Cloud allows reclaim of excess capacity used by Spot VMs, making them significantly cheaper for interruption-tolerant tasks.
3
Verify host maintenance configuration for Spot VMs
Spot VMs require `--on-host-maintenance=TERMINATE`.
Spot instances cannot live migrate to another host during infrastructure maintenance events.

Anahtar Kavram

Deploying Spot/Preemptible Compute Engine Instances for Cost-Optimized Fault-Tolerant Workloads
Bu soruyu puanla