AWS SAP-C02 · Question 39 · Domain 2.4: Reliability
A company has a multi-tier web application running on Amazon EC2 instances. The application uses Amazon SQS to decouple the web tier from the worker tier. During peak hours, the worker instances cannot process the messages fast enough, causing the SQS queue to grow and delaying order processing. The Architect needs to scale the worker tier dynamically based on the queue backlog. Which scaling metric is the MOST appropriate?
Answer options:
Create a custom CloudWatch metric for 'Backlog per instance' (ApproximateNumberOfMessages / number of healthy instances) and use it for target tracking scaling.
Use the SQS ApproximateNumberOfMessagesVisible metric directly with a step scaling policy.
Use the EC2 CPUUtilization metric of the worker Auto Scaling group with target tracking scaling.
Use the SQS OldestMessageAge metric to trigger an AWS Lambda function that adds instances to the Auto Scaling group.
75 questions · hints · full answers · grading