Your data science team runs nightly Monte-Carlo simulations that take about two hours and write checkpoints to Cloud Storage every minute. The workload is stateless and can resume from the last checkpoint if a VM disappears. The team currently uses regular N2-highcpu-16 VMs in a zonal managed instance group and wants to reduce compute costs as much as possible without adding operational complexity. What should you do?
Set the instances' availability policy to live migrate and automatic restart so they resume if host maintenance occurs, reducing wasted work.
Create a new instance template that uses Spot VMs and replace the managed instance group's template with it, accepting that the instances may be preempted during the run.
Build a custom machine type with 8 vCPUs and 8 GB RAM to reduce per-VM cost and continue running the group with standard VMs.
Keep the current instance template but purchase one-year committed use discounts (CUDs) for the N2-highcpu-16 shape to lower the bill.
Because the simulations are short-lived, fault-tolerant, and restartable from checkpoints, they match the use case that Spot VMs (previously called preemptible VMs) are designed for. Re-creating the instance template to specify Spot VMs and using that template in the existing managed instance group immediately provides the steep Spot-pricing discount-often 60-91 percent compared with on-demand instances. Spot VMs cannot be live-migrated or automatically restarted, but that is acceptable for this workload, and the MIG will attempt to re-provision instances if capacity is available. The other options either keep full-price VMs, rely on committed use contracts, or change machine characteristics without gaining the larger cost savings that Spot pricing offers.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Spot VMs in Google Cloud?
Open an interactive chat with Bash
How does a managed instance group benefit from Spot VMs for stateless workloads?
Open an interactive chat with Bash
What are Monte Carlo simulations and why are they suitable for Spot VMs?
Open an interactive chat with Bash
What are Spot VMs and how do they differ from regular VMs?
Open an interactive chat with Bash
What is a managed instance group (MIG) in Google Cloud?
Open an interactive chat with Bash
What are the cost savings of using Spot VMs compared to on-demand VMs?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .