Question

Difficulty: MediumManaging Google Kubernetes Engine Resources

A DevOps engineer operates a Google Kubernetes Engine (GKE) Standard cluster running a monolithic batch processing job that requires 18 hours of continuous, uninterrupted execution and cannot recover from unexpected pod evictions. A team member proposes migrating the cluster's worker node pool from Standard VMs to Spot VMs to lower compute costs. Which operational decision should the DevOps engineer make to guarantee that the workload completes successfully?

  1. Retain standard Compute Engine instances for the node pool because Spot VMs can be reclaimed by GCP at any time with a short termination notice, making them unsuitable for non-fault-tolerant, long-running batch jobs.Answer
  2. B
    Migrate the node pool to Spot VMs and configure the Horizontal Pod Autoscaler (HPA) to immediately replace nodes whenever GCP reclaims a Spot instance.
  3. C
    Migrate the node pool to Spot VMs and configure the Horizontal Pod Autoscaler (HPA) to increase the node count whenever resource usage spikes.
  4. D
    Migrate the workload to a GKE Autopilot cluster using Spot Pods, because Autopilot guarantees immunity from node preemption for batch workloads.

Answer

Retain standard Compute Engine instances for the node pool because Spot VMs can be reclaimed by GCP at any time with a short termination notice, making them unsuitable for non-fault-tolerant, long-running batch jobs.
Spot VMs are provisioned from spare compute capacity and can be reclaimed by Google Cloud with a 30-second notice. Workloads that run for long durations without built-in fault tolerance or state checkpointing cannot run reliably on Spot instances and must use standard Compute Engine node pools.

Step-by-Step Solution

1
Analyze workload requirements
Identified that the batch job requires 18 hours of continuous, uninterrupted execution and lacks fault-tolerance mechanisms for pod evictions.
Understanding workload tolerance to interruption determines compute resource selection.
2
Evaluate Spot VM compute characteristics in GKE
Recognized that Spot VMs provide discounted compute but can be preempted by Google Cloud at any time with only a 30-second termination notice.
Spot instances are designed exclusively for stateless, fault-tolerant, or checkpointed workloads.
3
Select appropriate infrastructure management policy
Determined that standard Compute Engine node pools must be maintained to ensure job completion without loss of state.
Cost optimization strategies must not compromise core workload availability constraints.

Key Concept

Selecting appropriate GKE node pool VM types based on workload fault tolerance and operational continuity requirements.
Rate this question