Reliability and Business Continuity

An EC2 Auto Scaling group processes Amazon SQS messages, averaging 30 seconds per message per instance; acceptable queue waiting time is 120 seconds. Which target tracking metric and target value BEST maintain this waiting time as the group scales?

Show the answer

Correct answerD. Backlog per in-service instance, with a target of 4

AWhy not this: A backlog of 120 messages per instance represents approximately 3,600 seconds of queued work.

BWhy not this: Total queue depth does not normalize demand by the number of instances available to process messages.

CWhy not this: Using waiting time as a total message-count target mixes units and ignores changes in processing capacity.

DWhy this is right: Four messages per instance correspond to 120 seconds of queued work at 30 seconds per message.

The backlog-per-instance target is acceptable waiting time divided by average processing time: 120/30 = 4 messages. Total visible message count does not account for the number of instances processing the queue.