Sub topic 3
Commitment-Based Discounts and Ongoing Cost Control
Assume you understand basic AWS compute, storage, and networking services, can run terminal commands, and can read JSON. Cost optimization works best when you combine pricing choices with regular measurement.
Commitment-based discounts
A commitment discount lowers the rate when you promise to use a resource or spend a minimum amount for a period. AWS Reserved Instances and Savings Plans are common examples. They usually cost less than on-demand pricing, but they reduce flexibility.
Choose commitments only for stable workloads. Compare the expected hourly usage with the commitment term, payment options, region, instance family, and workload growth. Keep a portion of capacity on demand when requirements may change.
| Capacity choice | Best fit | Main risk |
|---|---|---|
| On demand | Variable or new workloads | Highest unit price |
| Commitment | Predictable baseline | Paying for unused capacity |
| Spot | Interruptible work | Capacity can be reclaimed |
Scheduling and autoscaling
Stop development resources outside working hours. Use autoscaling to add instances when demand rises and remove them when demand falls. Set minimum and maximum limits so scaling cannot create an unexpected bill. Check that scheduled actions do not conflict with autoscaling policies.
Detecting cost anomalies early
Enable cost anomaly detection and route alerts to the people who can investigate them. Review sudden changes by service, account, region, and tag. An alert is a starting point, not proof of waste. A launch, traffic spike, or data migration may be intentional.
Reducing data transfer costs
Data transfer charges often come from crossing regions, availability zones, or the public internet. Keep chatty services close together, cache repeated reads, compress data, and avoid unnecessary cross-region replication. Measure transfer before changing architecture because moving data can trade network cost for compute or storage cost.
Using spot and preemptible capacity
Spot capacity is discounted unused capacity that the provider may reclaim. Use it for retryable batch jobs, build workers, and stateless processing. Use checkpoints, queues, and mixed capacity so interruption does not lose important work.
Measuring unit costs
Track a cost per useful business unit, such as dollars per request, job, tenant, or gigabyte processed. A total bill can rise while efficiency improves if usage grows faster. Compare the metric over time and by product or team.
Building a FinOps practice
FinOps is a shared practice among engineering, finance, and product teams. Assign owners, require useful tags, review forecasts monthly, and record optimization decisions. Treat commitments as a forecast-backed decision, not as a permanent fix.
> callout note > Set a commitment against the stable baseline. Leave uncertain or experimental usage flexible.
Exercise
A batch workload can tolerate interruption, but its daily volume varies widely. Which capacity choice should you evaluate first, and what protection should you add?
Show answer
Evaluate spot capacity first. Add checkpointing and a queue so reclaimed capacity does not lose completed work.