AWS Certified Solutions Architect – Professional (SAP-C02) — Question 494

A company runs a web application on a single Amazon EC2 instance. End users experience slow application performance during times of peak usage, when CPU utilization is consistently more than 95%.

A user data script installs required custom packages on the EC2 instance. The process of launching the instance takes several minutes.

The company is creating an Auto Scaling group that has mixed instance groups, varied CPUs, and a maximum capacity limit. The Auto Scaling group will use a launch template for various configuration options. The company needs to decrease application latency when new instances are launched during auto scaling.

Which solution will meet these requirements?

Answer options

Correct answer: D

Explanation

A dynamic scaling policy is appropriate for reacting to sudden CPU utilization peaks above 95%. Enabling warm pools allows instances to be pre-initialized and kept in a stopped or running state, drastically reducing the scale-out latency caused by the lengthy user data script. Using lifecycle hooks ensures the custom software is fully installed and configured on the instances within the warm pool before they are put into service.