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
Boost your coding skills with our essential coding questions catalog.
Take a step towards a better tech career now!
Explore Answers
Related Courses
Grokking the Coding Interview: Patterns for Coding Questions
Grokking the Coding Interview Patterns in Java, Python, JS, C++, C#, and Go. The most comprehensive course with 476 Lessons.
4.6
(69,299 learners)
$197
New

Grokking Modern AI Fundamentals
Master the fundamentals of AI today to lead the tech revolution of tomorrow.
3.9
(1,107 learners)
$78
Grokking Data Structures & Algorithms for Coding Interviews
Unlock Coding Interview Success: Dive Deep into Data Structures and Algorithms.
4
(26,683 learners)
$78
One-Stop Portal For Tech Interviews.
Copyright © 2025 Design Gurus, LLC. All rights reserved.