📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials AWS Solutions Architect Cost Optimisation on AWS

Cost Optimisation on AWS

4 min read Quiz at the end
Master cost optimisation strategies: right-sizing, Reserved Instances, Spot, S3 lifecycle, and serverless. Use AWS cost tools effectively.

Cost Optimisation — Pay Less, Get More

AWS cost optimisation is a key pillar of the Well-Architected Framework. A Solutions Architect must balance performance, reliability, AND cost. The goal is to eliminate waste while maintaining the service level your users need.

Teacher Note: Think of AWS like a utilities bill. You pay for electricity, water, and gas. If you leave lights on in empty rooms, your bill is higher. AWS is the same — idle resources, oversized instances, and unnecessary data transfers all cost money. A good architect turns off the lights.

Seven Ways to Reduce AWS Costs

StrategyHowSavings
Right-sizingUse Compute Optimizer — downsize over-provisioned instances20-40%
Reserved Instances / Savings PlansCommit to 1-3 years for steady workloads40-60%
Spot InstancesUse for fault-tolerant batch jobs70-90%
S3 Lifecycle PoliciesAuto-move old files to cheaper storage classes40-90% on storage
Delete Orphaned ResourcesEBS volumes, Elastic IPs, old snapshots you forgot aboutVariable
CloudFrontReduce data transfer cost — edge caches reduce origin requests50-90% on transfer
Serverless (Lambda)Pay only per request — zero idle costOften 80-90% vs EC2

AWS Cost Tools

ToolPurpose
Cost ExplorerVisualise and analyse spending by service, region, and time
AWS BudgetsSet budget alerts — email when spending exceeds threshold
Compute OptimizerML-based right-sizing recommendations for EC2, Lambda, EBS
Trusted AdvisorAutomated checks: cost, security, performance, fault tolerance
Cost Allocation TagsTag resources by Team/Project/Environment for accurate billing breakdown

Key Principle: Match Workload to Service

Steady 24/7 web server    --> EC2 Reserved Instance
Variable traffic web app  --> Lambda or Auto Scaling with Spot
Batch processing job       --> Spot Instances (70-90% cheaper)
7-year compliance archive  --> S3 Glacier Deep Archive
Infrequent database backup --> S3 Standard-IA or Glacier
Dev environment weekdays   --> Schedule stop at 6pm, start at 8am
Exam Tip: Cost optimisation questions often involve choosing between: Lambda (pay per invocation) vs EC2 (pay by hour). For very low or very spiky traffic: Lambda. For steady high traffic: EC2 Reserved. For batch: Spot. AWS Budgets + Cost Allocation Tags + Compute Optimizer together = a complete cost management strategy.
Topic Quiz · 2 questions

Test your understanding before moving on

1. A company runs a data analytics job every Sunday night. The job takes 4 hours and can tolerate interruptions (it can restart from checkpoints). Which EC2 pricing model minimises cost?
💡 Spot Instances provide up to 90% discount and are perfect for fault-tolerant batch jobs that can checkpoint and restart if interrupted.
2. A company has 50 EC2 instances running 24/7 for their production application. They have been running for 2 years and plan to continue for 2 more years. What is the BEST cost optimisation?
💡 Reserved Instances provide 40-60% savings for known long-running steady workloads. Since they run 24/7 and have clear long-term plans, Reserved Instances are clearly more cost-effective than On-Demand.