Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
A DevOps team manages a large-scale, fault-tolerant data processing workload on Google Cloud. The team uses Spot Virtual Machines (VMs) to maximize FinOps cost efficiency over standard on-demand compute rates. However, regional capacity shifts in spare compute resources occasionally lead to high preemption spikes when the workload is pinned to a single machine type (n2-standard-16). The team needs to configure a regional Managed Instance Group (MIG) that leverages multiple machine families (c3-standard-16, n2-standard-16, and c2-standard-16) while minimizing workload disruption from preemptions.
How should the DevOps team configure the regional Managed Instance Group to achieve the lowest preemption rate across these machine types?
Configure an instance flexibility policy containing the desired machine types within an instance selection, allowing the regional MIG to automatically select the machine type with the lowest observed preemption rate.
Deploy separate zonal MIGs for each machine family and use Cloud Scheduler with Cloud Functions to migrate instances based on hourly on-demand price differences.
Create a Dataproc cluster with secondary workers and modify the spot-to-non-preemptible secondary worker mix ratio dynamically during peak preemption hours.
Configure a regional MIG with an ANY_SINGLE_ZONE distribution shape and apply a single-year Committed Use Discount (CUD) reservation to prevent Compute Engine from preempting Spot instances.
Configure an instance flexibility policy containing the desired machine types within an instance selection, allowing the regional MIG to automatically select the machine type with the lowest observed preemption rate.
Instance flexibility in Managed Instance Groups (MIGs) allows administrators to specify multiple machine types and machine families (such as c3-standard-16, n2-standard-16, and c2-standard-16) within an instanceFlexibilityPolicy. When configured with Spot VMs, Compute Engine actively evaluates resource availability and preemption trends across spare compute capacity.
BALANCED or ANY_SINGLE_ZONE target distribution shapes across regional zones.Instance flexibility with native Spot VM awareness provides an automated, out-of-the-box mechanism that directly monitors and adapts to real-time preemption frequencies, delivering maximum reliability for fault-tolerant Spot workloads.
Deploy separate zonal MIGs for each machine family and use Cloud Scheduler with Cloud Functions to migrate instances based on hourly on-demand price differences.
Create a Dataproc cluster with secondary workers and modify the spot-to-non-preemptible secondary worker mix ratio dynamically during peak preemption hours.
Configure a regional MIG with an ANY_SINGLE_ZONE distribution shape and apply a single-year Committed Use Discount (CUD) reservation to prevent Compute Engine from preempting Spot instances.