
Answer-first summary for fast verification
Answer: Configure a warm pool for the Auto Scaling group with warmed EC2 instances in the Stopped state. Configure an autoscaling:EC2_INSTANCE_LAUNCHING lifecycle hook on the Auto Scaling group. Modify the application to complete the lifecycle hook when the application is ready to serve requests.
Option A is the most cost-effective solution. By configuring a warm pool of EC2 instances in the Stopped state, the company can ensure that instances are pre-initialized and can quickly start up when needed. This approach reduces the time required for new instances to process data from the Amazon S3 bucket. The lifecycle hook autoscaling:EC2_INSTANCE_LAUNCHING allows the application to perform necessary initialization steps and complete the lifecycle hook when ready to serve requests. This minimizes the startup delay without incurring additional running costs, as the instances in the Stopped state do not incur charges until they are started. Other options either increase costs unnecessarily (e.g., keeping instances in the Running state or increasing the max instance count) or do not directly address the need for reducing startup time efficiently.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company operates an application on Amazon EC2 instances managed by an Auto Scaling group. Upon startup, the application must process data from an Amazon S3 bucket before it can begin serving client requests. As the volume of data in the S3 bucket continues to grow, newly launched instances within the Auto Scaling group now experience significant delays, taking several minutes to download and process the necessary data. The company is seeking the most cost-effective solution to minimize the time required for new EC2 instances to become operational and start serving requests.
A
Configure a warm pool for the Auto Scaling group with warmed EC2 instances in the Stopped state. Configure an autoscaling:EC2_INSTANCE_LAUNCHING lifecycle hook on the Auto Scaling group. Modify the application to complete the lifecycle hook when the application is ready to serve requests.
B
Increase the maximum instance count of the Auto Scaling group. Configure an autoscaling:EC2_INSTANCE_LAUNCHING lifecycle hook on the Auto Scaling group. Modify the application to complete the lifecycle hook when the application is ready to serve requests.
C
Configure a warm pool for the Auto Scaling group with warmed EC2 instances in the Running state. Configure an autoscaling:EC2_INSTANCE_LAUNCHING lifecycle hook on the Auto Scaling group. Modify the application to complete the lifecycle hook when the application is ready to serve requests.
D
Increase the maximum instance count of the Auto Scaling group. Configure an autoscaling:EC2_INSTANCE_LAUNCHING lifecycle hook on the Auto Scaling group. Modify the application to complete the lifecycle hook and to place the new instance in the Standby state when the application is ready to serve requests.