Development with AWS Services
Requests arrive faster than workers can process them during brief bursts. Which approach lets workers process the backlog asynchronously?
Show the answer
Correct answerD. Buffer requests in an Amazon SQS queue
AWhy not this: A longer timeout keeps requests open rather than buffering work for asynchronous processing.
BWhy not this: Request validation checks input structure rather than buffering work.
CWhy not this: Retries can add load and do not provide a durable backlog for workers.
DWhy this is right: SQS retains pending messages so workers can process them as capacity becomes available.
SQS buffers requests so workers can process a backlog independently of the arrival rate. Increasing a synchronous response timeout keeps callers waiting but does not create a durable work buffer.