Resilient Cloud Solutions

An EC2 Auto Scaling group processes an Amazon SQS queue, with each instance processing one message every 8 seconds. The acceptable queue wait is 120 seconds; which target-tracking configuration scales capacity proportionally to the backlog?

Show the answer

Correct answerC. Target 15 visible messages per InService instance

AWhy not this: Message age indicates delay but does not decrease proportionally when instance capacity increases.

BWhy not this: Total queue depth is not normalized by capacity, so it is unsuitable as a proportional target-tracking metric.

CWhy this is right: Dividing 120 seconds by 8 seconds per message gives a target of 15 queued messages per active instance.

DWhy not this: Multiplying wait time by processing time produces the wrong target and permits excessive backlog per instance.

The backlog-per-instance target is acceptable wait divided by processing time: 120 / 8 = 15 messages. Oldest-message age can indicate delay, but it does not vary proportionally with instance count as target tracking requires.