AWS Certified Solutions Architect – Associate (SAA-C02) — Question 670
A company is experiencing sudden increases in demand. The company needs to provision large Amazon EC2 instances from an Amazon Machine Image (AMI).
The instances will run in an Auto Scaling group. The company needs a solution that provides minimum initialization latency to meet the demand.
Which solution meets these requirements?
Answer options
- A. Use the aws ec2 register-image command to create an AMI from a snapshot. Use AWS Step Functions to replace the AMI in the Auto Scaling group.
- B. Enable Amazon Elastic Block Store (Amazon EBS) fast snapshot restore on a snapshot. Provision an AMI by using the snapshot. Replace the AMI in the Auto Scaling group with the new AMI.
- C. Enable AMI creation and define lifecycle rules in Amazon Data Lifecycle Manager (Amazon DLM). Create an AWS Lambda function that modifies the AMI in the Auto Scaling group.
- D. Use Amazon EventBridge (Amazon CloudWatch Events) to invoke AWS Backup lifecycle policies that provision AMIs. Configure Auto Scaling group capacity limits as an event source in EventBridge (CloudWatch Events).
Correct answer: C
Explanation
Using Amazon Data Lifecycle Manager (Amazon DLM) allows the organization to automate the creation and management of AMIs, ensuring they are consistently kept up to date. Integrating an AWS Lambda function ensures that the Auto Scaling group is programmatically updated with the newly created AMI to minimize launch and initialization delays. Other options either involve manual steps or lack the direct, automated integration required to smoothly transition the Auto Scaling group to the latest image.