A SysOps administrator needs to update the Amazon Machine Image (AMI) for all Amazon EC2 instances in an Auto Scaling group (ASG) with minimal downtime. The administrator decides to use the ASG Instance Refresh feature.
Arrange the steps in the correct chronological order to successfully execute this rolling update.
- 1Update the Auto Scaling group configuration to reference the new launch template version containing the updated AMI.
- 2Start the instance refresh process on the Auto Scaling group with a specified minimum healthy percentage (e.g., ).
- 3Terminate a batch of instances running the old launch template version to respect the minimum healthy percentage.
- 4Launch replacement instances using the new launch template version and wait for them to pass health checks.
- 5Repeat the termination and replacement process for the remaining instances running the old launch template version.
- 6Transition the instance refresh status to Successful once all instances run the new launch template version.
Answer
The correct order of operations is: First, update the Auto Scaling group configuration to reference the new launch template version. Second, start the instance refresh process. Third, terminate a batch of instances running the old version while keeping the active count above the minimum healthy percentage. Fourth, launch replacement instances using the new version and verify their health. Fifth, repeat the process for the remaining old instances. Finally, transition the refresh status to Successful.
The correct order of steps ensures that the Auto Scaling group is updated with the new configuration first, so that the subsequent instance refresh knows the target state. The refresh then terminates and replaces instances in batches to maintain application availability, verifying the health of each batch before proceeding, and finally completing the process.
Step-by-Step Solution
Key Concept
Auto Scaling Group Instance Refresh