
Answer-first summary for fast verification
Answer: Launch the EC2 On-Demand Instances with hibernation turned on. Configure EC2 Auto Scaling warm pools during the next testing phase.
## Explanation The correct answer is **C** because EC2 Auto Scaling warm pools with hibernation can significantly reduce application launch time. ### Why Option C is Correct: 1. **EC2 Hibernation**: When EC2 instances are hibernated, they preserve the in-memory state (RAM contents) to Amazon EBS. When the instance is started again, it resumes from the exact state where it was hibernated, bypassing the operating system boot and application initialization time. 2. **Auto Scaling Warm Pools**: These maintain a pool of pre-initialized instances that are ready to quickly serve traffic. When combined with hibernation, warm pools can have instances in a hibernated state that can be quickly resumed, dramatically reducing launch time. 3. **Application Memory Loading**: The question specifically mentions the application takes time to "load memory to become fully productive." Hibernation preserves the memory state, eliminating this delay. ### Why Other Options Are Incorrect: - **Option A**: Simply launching more On-Demand Instances with auto scaling doesn't address the slow launch time issue. The instances would still need to go through the full boot and application initialization process. - **Option B**: Spot Instances are for cost optimization, not launch time reduction. They can actually have longer launch times due to capacity constraints and can be interrupted. - **Option D**: Capacity Reservations guarantee capacity but don't reduce launch time. Starting additional instances still requires the full boot and initialization process. ### Key AWS Services Involved: - **EC2 Hibernation**: Preserves instance memory state to EBS - **EC2 Auto Scaling Warm Pools**: Maintains pre-initialized instances ready for rapid scaling - **Amazon EBS**: Stores the hibernation image This solution is ideal for applications with long initialization times, as it allows instances to be quickly resumed from a ready state rather than starting from scratch.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company plans to migrate to AWS and use Amazon EC2 On-Demand Instances for its application. During the migration testing phase, a technical team observes that the application takes a long time to launch and load memory to become fully productive.
Which solution will reduce the launch time of the application during the next testing phase?
A
Launch two or more EC2 On-Demand Instances. Turn on auto scaling features and make the EC2 On-Demand Instances available during the next testing phase.
B
Launch EC2 Spot Instances to support the application and to scale the application so it is available during the next testing phase.
C
Launch the EC2 On-Demand Instances with hibernation turned on. Configure EC2 Auto Scaling warm pools during the next testing phase.
D
Launch EC2 On-Demand Instances with Capacity Reservations. Start additional EC2 instances during the next testing phase.