A media streaming platform runs a real-time video transcoding service on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer. The transcoding application is highly CPU-intensive, and each instance takes approximately 10 minutes to boot, initialize the transcoding software, and download heavy model files from Amazon S3 before it can begin processing traffic. During sudden traffic spikes, users experience severe playback delays because the Auto Scaling group cannot provision new instances fast enough to handle the load.
Which combination of actions will provide the most elastic and high-performing architecture to handle these spikes? (Select TWO.)
- Configure an Auto Scaling group warm pool with instances in a Stopped state to maintain a pool of pre-initialized instances.Cevap
- Configure a lifecycle hook on the Auto Scaling group to pause the instance launch and keep it in the Pending:Wait state while initialization scripts run.Cevap
- CMigrate the video transcoding service to AWS Lambda to run the continuous, long-running transcoding workloads and eliminate scaling latency.
- DDeploy the transcoding instances in a Spread Placement Group across multiple Availability Zones to accelerate the operating system boot time.
- EConfigure the Application Load Balancer target group health check to query the default HTTP port 80, while configuring the transcoding service to listen on port 8080.
Cevap
Configure an Auto Scaling group warm pool with instances in a Stopped state to maintain a pool of pre-initialized instances, and configure a lifecycle hook on the Auto Scaling group to pause the instance launch and keep it in the Pending:Wait state while initialization scripts run.
To handle sudden traffic spikes for an application with a long initialization time, we must reduce the time it takes for new instances to become ready. Configuring an Auto Scaling warm pool allows instances to be pre-initialized and kept in a Stopped state, which reduces the scale-out time to under a minute because the boot and initialization processes have already occurred. Combining this with a lifecycle hook ensures that the instance remains in a Pending:Wait state while its startup scripts complete, preventing the load balancer from sending traffic to the instance before it is ready to process it.
Adım Adım Çözüm
Anahtar Kavram
Auto Scaling Warm Pools and Lifecycle Hooks for Speeding Up Instance Provisioning