A company runs a web application on three Amazon EC2 instances behind an Application Load Balancer (ALB). The company notices that random periods of increased traffic cause a degradation in the application’s performance. A CloudOps administrator must scale the application to meet the increased traffic. Which solution meets these requirements?
Show Answer & Explanation
Correct Answer: C. Deploy the application to an Auto Scaling group of EC2 instances with a target tracking scaling policy. Attach the ALB to the Auto Scaling group.
An Auto Scaling group with a target tracking scaling policy automatically adjusts the number of EC2 instances based on specified metrics such as average CPU utilization, request count per target, or ALB target response time, making it ideal for handling unpredictable traffic spikes. Target tracking policies continuously monitor the specified metric and add or remove instances to maintain the target value, providing dynamic and automated scaling without manual intervention. Attaching the ALB to the Auto Scaling group ensures new instances are automatically registered with the load balancer and receive traffic. The first option is incorrect because increasing instance size (vertical scaling) requires stopping instances, changing instance types, and restarting them, which causes downtime and doesn't provide the elasticity needed for variable traffic patterns. The second option is incorrect because EventBridge rules are not designed for continuous metric monitoring and automated scaling—they're better suited for event-driven workflows, and manually adding instances doesn't provide the automated scaling capabilities of Auto Scaling groups. The fourth option with scheduled scaling is incorrect because the traffic increases are random and unpredictable, not following a predictable schedule that could be anticipated with time-based scaling policies. Target tracking provides the responsive, automatic scaling needed for this use case.