A Lambda function must have 10 initialized execution environments ready before traffic arrives, but must never exceed 40 concurrent executions to protect a database. Which configuration meets both requirements?
Show the answer
Correct answerA. Set reserved concurrency to 40 and provisioned concurrency to 10.
AWhy this is right: Reserved concurrency provides the ceiling of 40, and provisioned concurrency prepares the required 10 environments.
BWhy not this: This prepares 40 environments rather than the specified 10, adding unnecessary provisioned capacity.
CWhy not this: A reserved concurrency setting of 10 prevents the function from reaching the required capacity of 40.
DWhy not this: Provisioned concurrency prepares environments but does not prevent on-demand concurrency from exceeding 40.
Reserved concurrency caps the function at 40 concurrent executions, while provisioned concurrency prepares 10 initialized environments. Provisioned concurrency alone is not a concurrency ceiling; additional invocations can use on-demand environments.