Interview Prep/AWS/EC2, Auto Scaling and Load Balancing

Right-size a fleet of 300 instances where nobody knows actual usage. How?

AdvancedScenarioEC2, Auto Scaling and Load Balancing
Answer

Situation read → Data-driven right-sizing with guardrails, not guessing.

What I'd do →

  1. Enable Compute Optimizer across the org and install CloudWatch agent for memory metrics
  2. Pull recommendations: aws compute-optimizer get-ec2-instance-recommendations
  3. Sort by savings and risk, start with over-provisioned dev and staging
  4. Change one size down at a time and watch p99 latency
  5. Move to Graviton (m7g, c7g) where the stack supports ARM

Why → CPU-only data misses memory pressure; the agent metric makes the call accurate.

Interview tip → Graviton typically gives 20 percent better price-performance.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing