Troubleshooting and Optimization
A Lambda function fails with out-of-memory errors while parsing documents, and its reported maximum memory usage reaches its configured limit. Which change directly addresses the failure?
Show the answer
Correct answerB. Increase the function's memory allocation.
AWhy not this: Provisioned concurrency prepares execution environments but does not increase their individual memory capacity.
BWhy this is right: More memory gives the invocation additional RAM for document parsing.
CWhy not this: A longer timeout allows more execution time but does not increase available RAM.
DWhy not this: Ephemeral storage provides disk space in /tmp rather than additional RAM.
Increasing memory allocation gives each invocation more RAM for parsing documents. Ephemeral storage increases disk space in /tmp, not the memory available to hold parsed objects.