EC2 workers in an Auto Scaling group process SQS messages with approximately equal processing times, but spend most of their time waiting for external responses. Arrival rates are unpredictable. Which scaling strategy BEST keeps queue waiting time near a target?
Show the answer
Correct answerB. Use target tracking based on visible messages per worker.
AWhy not this: CPU utilization can stay low during external waits and fail to reflect increasing queue delays.
BWhy this is right: Visible messages divided by worker count measures outstanding work relative to processing capacity.
CWhy not this: A schedule based on historical peaks cannot respond reliably to unpredictable arrival rates.
DWhy not this: Total backlog does not account for worker count and is not a suitable proportional target-tracking utilization metric.
Backlog per worker relates outstanding work to available processing capacity, making it suitable for target tracking. CPU utilization can remain low while workers wait for external responses, even when the queue is growing.