Buy the baseline and schedule the rest
Separate steady commitments from bursts and price each unit of completed work.
Task 4.2 · Buy the baseline and schedule the rest
Measure before committing
Use team and environment tags, Cost Explorer, Cost and Usage Reports and Compute Optimizer recommendations to identify idle hours, oversized memory or CPU, and an hourly baseline. Rightsize and schedule first; a discount on unused capacity can still waste money. Allocate budgets and alerts to owners. Compare effective cost per completed job, including retries and engineering effort, across instance families, EC2, Fargate and Lambda.
Separate stable, interruptible and uncertain demand
On-Demand gives flexibility. Savings Plans exchange a one- or three-year hourly spend commitment for eligible usage discounts. Depending on the plan, scope can cover different compute types or a narrower family and Region. Reserved Instances may suit stable matching EC2 needs. A discount commitment and a capacity reservation answer different questions. Spot suits interruption-tolerant work that checkpoints and can restart. Diversify supported instance types and AZs. An unavoidable production baseline and a weekly load test should receive different purchasing decisions.
Scale the right layer
Use horizontal scaling for replaceable services and a suitable instance family for individual memory- or CPU-bound jobs. Schedule nonproduction stacks, accounting for attached storage and restart time. Hibernation can preserve RAM for supported EC2 configurations at storage cost. Evaluate Lambda for short sparse events and containers for longer services. An ALB can share HTTP routes, an NLB handles Layer 4, and Gateway Load Balancer serves network appliances. Edge processing or Outposts may meet data locality or latency constraints; include their standing cost and utilization in the comparison.
Test architecture and locality constraints
An Arm-based Graviton instance may lower cost per completed job if the application, images and libraries support its architecture. Benchmark the real container and any licensed components before buying a commitment. If a factory must control equipment while its WAN is down, evaluate an on-site design against the latency and disconnected-operation needs of each service. Compare standing on-site capacity, maintenance and network costs with feasible regional options.
A sale doubles the fleet for two days
A retailer has used 30 equivalent instances continuously for a year. The sale briefly needs another 40. A future migration could move half the baseline to another compute model. Cart requests must complete; image recomputation can restart from checkpoints.
How would you allocate commitments and capacity?
Compare your design with the worked answer
Model a conservative post-migration floor, then evaluate a commitment with the required flexibility for that floor. Use elastic capacity for the short sale, and diversified Spot capacity for checkpointable work. Keep a reliable capacity plan for checkout. Inspect the effective cost per successful order and recovered batch job.
If a particular launch requires guaranteed EC2 availability in one AZ, evaluate a matching capacity reservation and its cost separately from the pricing discount.
Apply the video example
The final pricing chapter compares exchange flexibility. Sketch two forecasts for the next year, one with the current family and one after replatforming. Compare the coverage of each commitment under both forecasts. Estimate what would remain idle or uncovered before quoting a discount.
freeCodeCamp at 50:22:22 · EC2 Reserved Instance choices
AWS exam guide for this domain · Return to the objective map
Buy the baseline and schedule the rest quiz
Answer 5 questions. Check each answer for an explanation.