teluzia.Cloud Engineer · Day 136
CHAPTER 20 · COST MANAGEMENT AND SECURITY

Spot and Savings Plans concepts

4–5 hours including independent practice3 topics
LET’S MAKE THIS SIMPLE

What you’re learning today

Spot capacity is today's starting point. A video worker checkpoints each completed segment and retries interrupted segments using durable input. The same interruption on an unreplicated database could lose availability or unfinished work. You will connect this with savings plans commitments and baseline and flexible demand. The lesson's artifact brings these decisions together: Classify batch, database and web-worker workloads by interruption tolerance; compare full, partial and low commitment utilization using fictional units.

Think of it this way

Spot resembles a cancellable spare workshop slot; Savings Plans resemble a recurring usage commitment that still needs to match predictable demand.

TOPIC 01 / 03Step by step

Spot capacity

Spot uses spare compute capacity that can be interrupted. Stateless retryable jobs fit better than a single irreplaceable database; checkpoint work and design replacement capacity. A video worker checkpoints each completed segment and retries interrupted segments using durable input. The same interruption on an unreplicated database could lose availability or unfinished work.

WORKED EXAMPLE
A video worker checkpoints each completed segment and retries interrupted segments using durable input. The same interruption on an unreplicated database could lose availability or unfinished work.

Interruption tolerance is the ability to survive lost capacity; a checkpoint preserves progress; a capacity pool is a particular source of available Spot instances. Imagine a batch job needs ninety minutes but writes progress every ten. When capacity disappears, restart from the last durable checkpoint rather than beginning again. Design work units to be retryable and ensure partial outputs do not masquerade as completed results. Diversify suitable capacity options instead of assuming one instance type is always available. Interruption notices are useful signals but must not be the only protection. Lower-cost spare capacity trades predictability for operational handling. A deadline-sensitive job may need fallback capacity, and its full cost analysis should include retries, lost work and the effort to build reliable recovery.

Why this matters

The same interruption on an unreplicated database could lose availability or unfinished work.

A common trap

An interruptible worker is ideal for an uncheckpointed irreplaceable database.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Spot capacity

Spot uses spare compute capacity that can be interrupted. Stateless retryable jobs fit better than a single irreplaceable database; checkpoint work and design replacement capacity. A video worker checkpoints each completed segment and retries interrupted segments using durable input. The same interruption on an unreplicated database could lose availability or unfinished work.

WORKED EXAMPLE
A video worker checkpoints each completed segment and retries interrupted segments using durable input. The same interruption on an unreplicated database could lose availability or unfinished work.

Interruption tolerance is the ability to survive lost capacity; a checkpoint preserves progress; a capacity pool is a particular source of available Spot instances. Imagine a batch job needs ninety minutes but writes progress every ten. When capacity disappears, restart from the last durable checkpoint rather than beginning again. Design work units to be retryable and ensure partial outputs do not masquerade as completed results. Diversify suitable capacity options instead of assuming one instance type is always available. Interruption notices are useful signals but must not be the only protection. Lower-cost spare capacity trades predictability for operational handling. A deadline-sensitive job may need fallback capacity, and its full cost analysis should include retries, lost work and the effort to build reliable recovery.

Why this matters

The same interruption on an unreplicated database could lose availability or unfinished work.

A common trap

An interruptible worker is ideal for an uncheckpointed irreplaceable database.

Savings Plans commitments

Savings Plans exchange a usage commitment for eligible pricing benefits. Commitment is financial, not a server reservation; underused commitments can reduce expected savings. An illustrative commitment of 10 units/hour still represents 10 committed units during a 4-unit eligible-usage hour. Eligibility, coverage and commitment utilization must be evaluated separately.

WORKED EXAMPLE
An illustrative commitment of 10 units/hour still represents 10 committed units during a 4-unit eligible-usage hour. Eligibility, coverage and commitment utilization must be evaluated separately.

A commitment is an agreed eligible usage spend over a term; coverage is the usage benefiting from it; utilization is the fraction of commitment actually consumed. Imagine a workload migrates to a service or configuration not covered by the selected plan. The commitment can remain while the expected benefit shrinks, so review eligibility and plausible architecture changes before choosing an amount. Build hourly demand scenarios rather than multiplying one busy day's total across an entire year. Separate discount benefit from unused committed spend and from usage above the commitment. Savings Plans do not by themselves guarantee capacity availability. Predictable demand can justify a commitment, but inflexible assumptions create financial exposure. Confirm current provider terms and use an explicitly labeled model instead of claiming a universal best commitment percentage.

Why this matters

Eligibility, coverage and commitment utilization must be evaluated separately.

A common trap

A Savings Plan reserves a specific server for immediate launch.

Baseline and flexible demand

Separate steady eligible usage from uncertain growth. Compare options using realistic utilization scenarios; avoid relying on a discount percentage without commitment coverage and workload flexibility. Demand is 8 steady units plus 12 occasional units. Analyze a commitment against the steady baseline, and retain interruption-tolerant capacity for bursts rather than committing to the maximum observed hour.

WORKED EXAMPLE
Demand is 8 steady units plus 12 occasional units. Analyze a commitment against the steady baseline, and retain interruption-tolerant capacity for bursts rather than committing to the maximum observed hour.

A baseline is recurring demand; a burst is temporary demand above it; a scenario tests how a choice behaves under alternate futures. Imagine an application has regular business-hours usage but drops sharply overnight and on weekends. A daily average hides the periods when an hourly commitment would be underused. Model representative hourly levels, then compare lower, expected and growth cases with eligible usage. Distinguish interruption-tolerant bursts from steady workloads that require dependable capacity. A plan optimized for forecast growth may be costly if that growth never arrives. Combining flexible capacity and a restrained commitment can hedge uncertainty, but it adds planning work. State the assumptions about architecture, schedule and retention of the workload so the reader can see what would make the recommendation stop fitting.

Why this matters

Analyze a commitment against the steady baseline, and retain interruption-tolerant capacity for bursts rather than committing to the maximum observed hour.

A common trap

Discount percentage alone establishes the best commitment amount.

KEEP THESE WITH YOU

Today’s takeaways

Spot capacity: Spot uses spare compute capacity that can be interrupted.

Savings Plans commitments: Savings Plans exchange a usage commitment for eligible pricing benefits.

Baseline and flexible demand: Separate steady eligible usage from uncertain growth.

CLOSE THE LOOP

Ready to complete this day?

Verify the practical steps and pass the knowledge check (at least two thirds correct).

Lab steps verifiedKnowledge check passed