A Lambda function that resizes images has 512 MB of memory and a 3-second timeout. Its CPU-bound resize step must run faster, and the largest images need up to 2 minutes to finish. Which configuration changes meet these requirements? (Choose two.)
Choose 2 answers
Show the answer
Correct answersA. Increase the function's memory setting.C. Set the function's timeout to at least 120 seconds.
AWhy this is right: Lambda allocates CPU in proportion to memory, so a higher memory setting gives the CPU-bound step more processing power.
BWhy not this: Ephemeral storage adds /tmp disk space for files; it does not add CPU.
CWhy this is right: The timeout must exceed the longest expected run, and Lambda allows up to 900 seconds.
DWhy not this: Provisioned concurrency keeps environments initialized to avoid cold starts; it does not speed up code that is already running.
EWhy not this: Reserved concurrency controls how many executions run in parallel, not how fast or how long one execution runs.
Lambda allocates CPU power in proportion to the memory configured, so more memory speeds up CPU-bound code, and the timeout (up to 900 seconds) must cover the longest invocation. Ephemeral storage adds /tmp space, provisioned concurrency only removes cold-start initialization, and reserved concurrency caps or guarantees parallel executions; none of them makes a single invocation compute faster.