QuestionQ43

VerifiedDesign Cost-Optimized Architectures

A company runs an application on five Amazon EC2 instances. An Application Load Balancer (ALB) sends traffic to the instances by using a target group. The average CPU utilization on each instance stays below 10% most of the time, with occasional spikes to 65%.

A solutions architect must implement a solution to automate the application's scalability. The solution must optimize architectural cost and must ensure that the application has sufficient CPU resources when surges occur.

Which solution will meet these requirements?

Explanation

An EC2 Auto Scaling group with a target tracking scaling policy based on ASGAverageCPUUtilization automatically adjusts capacity to keep average CPU near the configured target. That reduces cost during long periods of low utilization by allowing scale-in, and it adds instances during spikes so enough CPU capacity is available. AWS also supports attaching the existing instances to the Auto Scaling group and registering them with the existing ALB target group. Simply creating an Auto Scaling group without a scaling policy does not automate scale adjustments, and CloudWatch alarms plus Lambda or email-driven manual changes are not the appropriate managed scaling solution.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!