You deploy a new version to an ASG without downtime. Which approach do you use?
IntermediateScenarioEC2, Auto Scaling and Load Balancing
Answer
Situation read → Instance refresh with health-gated batches or blue/green with two target groups.
What I'd do →
- Update the launch template version
- Start:
aws autoscaling start-instance-refresh --auto-scaling-group-name web --preferences '{"MinHealthyPercentage":90,"InstanceWarmup":120}' - Watch with
describe-instance-refresh - For safer cutovers use a second ASG and weighted ALB target groups, then shift 10, 50, 100 percent
Why → Refresh replaces instances gradually, honoring health so capacity never drops below the floor.
Interview tip → Mention checkpoints and auto-rollback preferences.