
Answer-first summary for fast verification
Answer: Implement an Auto Scaling group with a target tracking policy for ASGAverageCPUUtilization, starting with 2 instances, scaling up to 6, aiming for 50% CPU utilization.
The correct answer is B. An Auto Scaling group with a target tracking policy based on the ASGAverageCPUUtilization metric optimizes both cost and performance. By setting the minimum instances to 2, desired capacity to 3, and maximum instances to 6, and using 50% CPU utilization as the target, the system will automatically scale the EC2 instances in and out according to the actual load. This provides enough CPU resources during surges while minimizing costs when demand is low. Option A doesn’t handle scaling automatically based on actual CPU usage and could disrupt the service. Option C lacks a scaling policy based on CPU utilization, and Option D requires manual intervention, which is not automatic scaling.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a solutions architect automate scalability for an application deployed on EC2 instances behind an ALB, ensuring cost optimization and sufficient CPU resources during traffic surges?
A
Set up a CloudWatch alarm to trigger a Lambda function that terminates an EC2 instance when CPUUtilization drops below 20%.
B
Implement an Auto Scaling group with a target tracking policy for ASGAverageCPUUtilization, starting with 2 instances, scaling up to 6, aiming for 50% CPU utilization.
C
Establish an Auto Scaling group for the EC2 instances with a fixed capacity of 2 to 6 instances.
D
Use two CloudWatch alarms for CPUUtilization thresholds below 20% and above 50%, linked to SNS for email alerts to manually scale EC2 instances.
No comments yet.