Resilient Cloud Solutions

A Lambda function processes two SQS standard queues through separate event source mappings. One queue must use at most 20 concurrent invocations without imposing that limit on the other queue; what should a DevOps engineer configure?

Show the answer

Correct answerD. Set the restricted mapping's maximum concurrency to 20

AWhy not this: Batch size controls messages per invocation, not the number of simultaneous invocations.

BWhy not this: Provisioned concurrency prepares environments but does not cap concurrent invocations from a particular queue.

CWhy not this: Reserved concurrency limits the entire function, so both queues would share the limit.

DWhy this is right: Maximum concurrency caps invocations from that mapping without placing the same cap on the other mapping.

Maximum concurrency on an SQS event source mapping limits concurrent function invocations from that queue. Reserved concurrency applies to the entire function and would constrain invocations from both queues.