Module 15 · Project 15 · Optimize Cloud Costs · Lesson 46 of 48
Where the money goes, and how to cut it
Read a cloud bill, find the waste, and use right-sizing, commitments, spot capacity, scheduling and storage rules to cut it without hurting reliability.
In this lesson · about 35 minutes
- Make costs visible with tags, Cost Explorer and budgets
- Apply the main cost levers and know their risks
- Explain FinOps: engineers owning the cost of what they build
Cost is an engineering problem
In the cloud, every engineer can spend money with one Terraform apply. Bills grow quietly: test instances nobody deleted, dev environments running all weekend, logs kept forever. FinOps is the practice of making cost visible and giving the teams who build things responsibility for what they cost, just like reliability and security.
Step 1: see it
- Tags on every resource:
team,env,app. Enforce them with policy as code (Project 11) or Terraformdefault_tags. Activate them as cost-allocation tags. - Cost Explorer by service, tag and day. Look for the biggest lines first.
- AWS Budgets with alerts at 50%, 80% and 100% of the monthly plan, sent to the team, not just finance.
- Unit cost: cost per 1,000 requests, or per customer. A rising bill is fine if traffic is rising faster.
Step 2: the levers
- Delete waste: unattached EBS volumes, old snapshots, idle load balancers, unused Elastic IPs, forgotten test instances. Pure savings with no risk.
- Right-size: instances averaging 15% CPU can be a size smaller. Use Compute Optimizer's recommendations, and watch the metrics after the change.
- Schedule: dev and staging don't need to run at 3 am on Sunday. Turning them off outside working hours cuts their cost by about two-thirds.
- Commit: Savings Plans or reserved instances give roughly 30–60% off in return for a 1- or 3-year commitment. Only commit to the steady baseline you always run.
- Spot: spare capacity at up to 90% off, but AWS can take it back with two minutes' notice. Great for queue workers, CI runners and batch jobs; not for your only database.
- Storage: S3 lifecycle rules move old objects to cheaper classes (Infrequent Access, Glacier) and delete them later. gp3 volumes are cheaper than gp2. Set log retention (Project 10).
- Network: data transfer and NAT gateway processing are sneaky. Use VPC endpoints for S3 and DynamoDB, keep traffic inside one AZ where it's safe, and serve files through CloudFront.
- Architecture: Graviton (ARM) instances are often 20% cheaper for the same work; serverless suits spiky, low-volume workloads.
The golden rule: don't trade away reliability by accident. Removing the Multi-AZ standby saves money until the day it costs you an outage. Make those trade-offs on purpose, with the RPO and RTO from Project 14 in hand.
Try it · watch it run
Cut the cloud bill
This is a month's bill for the notes app. Turn on the levers one at a time. Which save the most? Which carry a risk you'd need to manage?
Cost levers
Monthly bill
Before
$2,440
After
$2,440
Saved
0%
Whiteboard · watch and try
The always-on tax
Press Play. The tutor works out what scheduling saves.
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Sorting drill
Safe saving or risky cut?
Sort each idea.
- Delete unattached EBS volumes older than 30 days (after a final snapshot)
- Turn off the RDS Multi-AZ standby in production
- Stop dev and staging at night and on weekends
- Run the only production database on spot instances
- S3 lifecycle: exports to Glacier after 90 days
- Cut backup retention from 35 days to 1 day
- Savings Plan sized to your steady baseline
0 of 7 sorted
Check your understanding0 of 3 correct
Key terms
Say the meaning to yourself, then tap a card to check.
Quiz score: 0 of 3
Written by Noviq Academy in its own words. The labs are simulations: no real servers are touched. When you build the projects yourself, use a practice virtual machine or a free-tier cloud account you control, watch your cloud spending, and never run cleanup or delete commands on a machine you care about. Tool names belong to their owners; versions and output are shown for learning and may differ slightly from yours. Read-aloud and the whiteboard voice use your device's built-in voices.