AWS Certified SysOps Administrator – Associate — Question 447

A company analyzes sales data for its customers. Customers upload files to one of the company's Amazon S3 buckets, and a message is posted to an Amazon
Simple Queue Service (Amazon SQS) queue that contains the object Amazon Resource Name (ARN). An application that runs on an Amazon EC2 instance polls the queue and processes the messages. The processing time depends on the size of the file.
Customers are reporting delays in the processing of their files. A SysOps administrator decides to configure Amazon EC2 Auto Scaling as the first step. The
SysOps administrator creates an Amazon Machine Image (AMI) that is based on the existing EC2 instance. The SysOps administrator also creates a launch template that references the AMI.
How should the SysOps administrator configure the Auto Scaling policy to improve the response time?

Answer options

Correct answer: D

Explanation

To scale an EC2 Auto Scaling group accurately based on SQS queue volume, a backlog-per-instance custom metric is recommended. This metric is computed by taking the number of messages waiting in the queue (ApproximateNumberOfMessagesVisible) and dividing it by the active capacity of the Auto Scaling group (InService instances). Standard metrics like CPU utilization or delayed messages do not accurately represent the actual backlog, and Auto Scaling policies cannot dynamically switch instance types within a launch template to resolve queue backlogs.