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
An organization runs fault-tolerant batch data processing and CI/CD build tasks on Google Cloud Compute Engine. The DevOps team needs to optimize compute expenses using Spot VMs while satisfying the following operational criteria:
Which configuration strategy should the DevOps team implement?
Create an instance template with the scheduling provisioning model set to SPOT, set automatic restart to true, configure on-host maintenance to MIGRATE, and attach a shutdown script to intercept preemption notices.
Create an instance template with the provisioning model set to FLEX_START, configure a stateful MIG to preserve instance disks, and configure an internal cron job inside each VM to periodically check for preemption metadata.
Create an instance template with the scheduling provisioning model set to SPOT, omit automatic restart and live migration policies, configure a shutdown script to checkpoint job state upon preemption, and deploy the template within an autoscaled stateless Managed Instance Group (MIG).
Deploy standard on-demand VMs inside an unmanaged instance group, configure Cloud Scheduler to trigger periodic VM suspensions, and use CI/CD deployment scripts to convert unmanaged instances to Spot VMs on demand.
Create an instance template with the scheduling provisioning model set to SPOT, set automatic restart to true, configure on-host maintenance to MIGRATE, and attach a shutdown script to intercept preemption notices.
Create an instance template with the provisioning model set to FLEX_START, configure a stateful MIG to preserve instance disks, and configure an internal cron job inside each VM to periodically check for preemption metadata.
Create an instance template with the scheduling provisioning model set to SPOT, omit automatic restart and live migration policies, configure a shutdown script to checkpoint job state upon preemption, and deploy the template within an autoscaled stateless Managed Instance Group (MIG).
Spot Virtual Machines (VMs) provide excess Compute Engine capacity at discounts of up to 60–91% compared to standard on-demand pricing. Managed Instance Groups (MIGs) manage pools of homogeneous VM instances created from a shared instance template, providing automated lifecycle management, autohealing, and scaling capabilities.
provisioningModel: SPOT (or --provisioning-model=SPOT) in the instance template configures all provisioned worker nodes as Spot VMs, maximizing cost efficiency for batch computing.Combining Spot VM provisioning with stateless MIG orchestration and shutdown script checkpointing delivers the ideal balance between high fault tolerance, automated recovery, platform compliance, and optimal cost reduction.
Deploy standard on-demand VMs inside an unmanaged instance group, configure Cloud Scheduler to trigger periodic VM suspensions, and use CI/CD deployment scripts to convert unmanaged instances to Spot VMs on demand.