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

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 →

  1. Update the launch template version
  2. Start: aws autoscaling start-instance-refresh --auto-scaling-group-name web --preferences '{"MinHealthyPercentage":90,"InstanceWarmup":120}'
  3. Watch with describe-instance-refresh
  4. 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.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing