A CPU-bound Lambda function uses little of its configured memory but misses its execution-time target. Which actions should a developer take to find a better-performing, cost-effective configuration? (Choose two.)
Choose 2 answers
Show the answer
Correct answersA. Compare execution duration and invocation cost across memory settings.D. Benchmark higher memory settings to obtain more CPU capacity.
AWhy this is right: Measuring duration and cost reveals which configuration meets the performance target economically.
BWhy not this: A timeout controls how long execution may run; it does not change the CPU allocated to an invocation.
CWhy not this: Ephemeral storage increases available temporary disk space, not CPU allocation.
DWhy this is right: Higher Lambda memory settings provide more CPU capacity, which can reduce CPU-bound execution time.
EWhy not this: Reserved concurrency controls simultaneous executions, not the CPU capacity of an individual invocation.
Lambda allocates CPU in proportion to configured memory, so higher memory can improve CPU-bound execution even when memory usage is low. Compare duration and cost because faster execution can offset the higher memory rate; timeout changes do not add CPU.