
Answer-first summary for fast verification
Answer: 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.
## Explanation **Correct Answer: B** **Why Option B is correct:** 1. **EBS Fast Snapshot Restore (FSR)** is specifically designed to minimize the initialization latency when creating volumes from snapshots. When enabled on a snapshot, it eliminates the performance penalty typically associated with initial access to data on restored volumes. 2. By creating an AMI from a snapshot with FSR enabled, new EC2 instances launched from that AMI will have their EBS volumes restored much faster, significantly reducing instance initialization time. 3. This solution directly addresses the requirement for "minimum initialization latency" when provisioning large EC2 instances to meet sudden demand spikes. 4. Replacing the AMI in the Auto Scaling group ensures that new instances launched by scaling activities will benefit from the faster initialization. **Why other options are incorrect:** **Option A:** Using `aws ec2 register-image` and AWS Step Functions doesn't address the core latency issue. While it automates AMI replacement, it doesn't provide any performance optimization for instance initialization. **Option C:** Amazon Data Lifecycle Manager (DLM) with Lambda functions focuses on automating AMI lifecycle management (creation, retention, deletion) but doesn't optimize for initialization latency. The Lambda function modification doesn't improve the actual instance launch performance. **Option D:** AWS Backup lifecycle policies with EventBridge is about backup automation and scheduling, not performance optimization. Configuring Auto Scaling group capacity limits as an event source doesn't reduce the initialization latency of instances. **Key AWS Concepts:** - **EBS Fast Snapshot Restore (FSR):** Creates a full-performance copy of a snapshot in a specific Availability Zone, eliminating the need for lazy loading of data blocks. - **AMI Creation from Snapshots:** When an AMI is created from a snapshot with FSR enabled, the resulting instances benefit from faster volume restoration. - **Auto Scaling Groups:** When scaling out to meet demand, faster instance initialization means the capacity becomes available sooner, which is critical for handling sudden demand spikes.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
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?
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 to invoke AWS Backup lifecycle policies that provision AMIs. Configure Auto Scaling group capacity limits as an event source in EventBridge.