How would you right-size EC2 and RDS instances to cut spend without hurting reliability?
AWS · Advanced level
Answer
Rightsizing EC2 and RDS means comparing actual CPU, memory, I/O, network, latency, connections, and peak patterns against capacity. I change gradually, test performance, and preserve failover and reliability headroom.
Technical explanation
Average CPU is not enough for rightsizing; p95/p99, memory, I/O, failover headroom, and business peaks matter.
Cost analysis should be based on tagged usage, CUR/Cost Explorer data, service-level owners, and usage-type drivers rather than account-level totals only.
Every cost reduction should be checked against reliability, performance, security, and operational risk.
Use budgets and anomaly detection for early signal, then use rightsizing, lifecycle, commitments, scheduling, and architecture fixes for remediation.
Hands-on example
1. Use Cost Explorer or CUR/Athena to identify the top cost driver by account, service, tag, Region, usage type, and daily delta.
2. Validate the operational cause with service metrics such as utilization, logs volume, NAT bytes, snapshot growth, or data transfer.
3. Apply a targeted fix - rightsizing, lifecycle, retention, endpoint, schedule, or commitment - with a rollback plan.
4. Track savings, performance, and reliability for at least one billing cycle.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More AWS interview questions
- How do you detect and reduce unexpected AWS cost increases?
- What is the difference between an SQS standard and FIFO queue?
- Compare backup-and-restore, pilot light, warm standby, and multi-site DR strategies.
- What is AWS Systems Manager, and how is Session Manager safer than SSH bastions?
- What is an AMI, and how do you build standardised, hardened images?
- What is a CloudFormation change set and a drift detection?
- How do you troubleshoot an EC2 instance that is unreachable over SSH?
- What is the difference between Secrets Manager and SSM Parameter Store?