AWS Certified Developer – Associate — Question 287
A developer is creating a utility application as an AWS Lambda function. The code is using multiple threads. The developer runs the Lambda function, and the function does not perform as well as the developer expected.
What should the developer do to improve the performance of the Lambda function?
Answer options
- A. Increase the Lambda function timeout setting.
- B. Request to increase the Lambda function concurrency quota.
- C. Increase the memory allocation of the Lambda function.
- D. Modify the reserved concurrency of the Lambda function to a higher number.
Correct answer: C
Explanation
Increasing the memory allocation of an AWS Lambda function proportionally scales its CPU power and resources, which directly improves the execution speed of multi-threaded code. Adjusting timeout limits only prevents premature termination, while modifying concurrency settings manages scaling volume rather than individual execution performance.