Resilient Cloud Solutions

An AWS Lambda function processes an Amazon SQS queue and synchronous requests; available account concurrency is sufficient. Queue processing must use at most 40 concurrent invocations while leaving capacity for 20 synchronous invocations; which configuration meets these requirements?

Show the answer

Correct answerC. Set reserved concurrency to 60 and the SQS event source mapping maximum concurrency to 40.

AWhy not this: A function-wide limit of 40 cannot support 40 queue invocations plus 20 synchronous invocations.

BWhy not this: The mapping permits 60 queue invocations, and provisioned concurrency does not reserve separate capacity for synchronous traffic.

CWhy this is right: The function has 60 reserved executions, and SQS can consume no more than 40, leaving capacity for synchronous requests.

DWhy not this: Provisioned concurrency does not cap execution concurrency, and batch size does not limit simultaneous invocations.

Reserved concurrency allocates 60 concurrent executions to the function, while the mapping limit prevents SQS from consuming more than 40. Provisioned concurrency prepares execution environments but does not impose a concurrency ceiling; batch size limits records per invocation, not simultaneous invocations.