Traffic doubles every Friday evening. How do you make the web tier handle it automatically?
BeginnerScenarioEC2, Auto Scaling and Load Balancing
Answer
Situation read → Predictable spikes call for scheduled scaling plus a reactive policy as a safety net.
What I'd do →
- Put instances in an Auto Scaling group across at least two AZs behind an ALB
- Add a target tracking policy on
ALBRequestCountPerTargetor CPU at 50 to 60 percent - Add a scheduled action to raise
MinSizeFriday at 16:00 - Use a launch template with a baked AMI so instances are ready in under two minutes
Why → Scheduled capacity removes cold-start lag, target tracking handles the surprise.
Interview tip → Mention predictive scaling for repeating patterns.