Design High-Performing Architectures

An EC2 Auto Scaling group processes an SQS queue, with each instance processing one message every 20 seconds. Queue waiting time must stay near 120 seconds as the number of workers changes; which target tracking configuration BEST meets this requirement?

Show the answer

Correct answerD. Target 6 visible messages per instance

AWhy not this: A backlog of 120 messages per instance represents approximately 2,400 seconds of waiting at the stated processing rate.

BWhy not this: Total queue depth does not account for the number of instances available to process messages.

CWhy not this: A fixed total backlog represents different waiting times as the number of processing instances changes.

DWhy this is right: Six messages per instance corresponds to approximately 120 seconds of waiting at 20 seconds per message.

Backlog per instance accounts for changing processing capacity. Dividing the acceptable waiting time by processing time gives 120 ÷ 20 = 6 messages per instance; a total queue-depth target does not adjust for the number of workers.