Explain Spot vs Reserved vs On-Demand Instances.

Spot, reserved, and on-demand instances are cloud pricing models where on-demand offers pay-as-you-go, reserved provides long-term discounts for commitment, and spot leverages spare capacity at the lowest cost but with interruption risks.

When to Use

  • On-Demand: Prototyping, unpredictable workloads, or short-term projects.
  • Reserved: Long-running, steady-state apps like databases or APIs.
  • Spot: Batch jobs, ML model training, ETL, and workloads tolerant to interruption.

Example

A startup runs its web API on reserved instances, adds on-demand during traffic spikes, and executes nightly data ETL on spot instances.

Want to master trade-offs like these for interviews?

Explore Grokking System Design Fundamentals, Grokking the Coding Interview, and sharpen your skills with Mock Interviews with ex-FAANG engineers.

Why Is It Important

Picking the right mix can reduce costs by 40–70% while ensuring flexibility, reliability, and scalability.

Interview Tips

  • Start with clear definitions.
  • Suggest a blended strategy (reserved baseline + on-demand spikes + spot for batch).
  • Mention interruption handling with retries, queues, or checkpointing.

Trade-offs

  • On-Demand: Flexibility but higher cost.
  • Reserved: Big savings but lock-in.
  • Spot: Lowest price but risk of termination.

Pitfalls

  • Running critical stateful apps on spot.
  • Overcommitting to reserved beyond baseline needs.
  • Ignoring autoscaling, budgets, or regional differences.
TAGS
System Design Interview
System Design Fundamentals
CONTRIBUTOR
Design Gurus Team
-

GET YOUR FREE

Coding Questions Catalog

Design Gurus Newsletter - Latest from our Blog
Boost your coding skills with our essential coding questions catalog.
Take a step towards a better tech career now!
Image
One-Stop Portal For Tech Interviews.
Copyright © 2025 Design Gurus, LLC. All rights reserved.