Skip to Content

DVA-C02: How to Optimize AWS Lambda Performance for CPU-Bound Functions

Learn how to improve the performance of your AWS Lambda functions that are CPU-bound. This tutorial will show you how to adjust the memory size, use concurrency settings, and apply best practices to make your functions run faster and more efficiently.


A developer has written an AWS Lambda function. The function is CPU-bound. The developer wants to ensure that the function returns responses quickly.

How can the developer improve the function’s performance?

A. Increase the function’s CPU core count.
B. Increase the function’s memory.
C. Increase the function’s reserved concurrency.
D. Increase the function’s timeout.


B. Increase the function’s memory.


The correct answer is B. Increase the function’s memory.

The reason is that the memory allocation of a Lambda function determines how much CPU and network bandwidth are allocated to the function. A CPU-bound function is a function that performs intensive computations and spends most of its time using the CPU resources. Increasing the memory allocation of a CPU-bound function can improve its performance by increasing the CPU power and speed. The developer can configure the memory allocation of a Lambda function from 128 MB to 10,240 MB, in 1 MB increments.

The other options are incorrect because they do not improve the function’s performance or they are not applicable:

A. Increasing the function’s CPU core count is not possible. The CPU core count of a Lambda function is determined by the memory allocation and cannot be configured separately. A Lambda function can have one or more CPU cores depending on the memory size.

C. Increasing the function’s reserved concurrency can improve the scalability and availability of the function, but not its performance. Reserved concurrency is a feature that allows the developer to set aside a portion of the concurrency limit for a specific function. Concurrency is the number of requests that a function can process simultaneously. Reserved concurrency can help to prevent throttling errors and ensure that the function has enough concurrency to handle the expected traffic. However, reserved concurrency does not affect the performance of each individual invocation of the function.

D. Increasing the function’s timeout can prevent the function from being terminated prematurely, but not improve its performance. Timeout is a feature that allows the developer to set a limit on how long a function can run before it is stopped. Timeout can help to avoid excessive charges and ensure that the function does not run longer than expected. However, timeout does not affect the speed or efficiency of each individual invocation of the function.

The latest AWS Certified Developer – Associate DVA-C02 certification actual real practice exam question and answer (Q&A) dumps are available free, which are helpful for you to pass the AWS Certified Developer – Associate DVA-C02 exam and earn AWS Certified Developer – Associate DVA-C02 certification.

AWS Certified Developer - Associate DVA-C02 Exam Questions and Answers

Alex Lim is a certified IT Technical Support Architect with over 15 years of experience in designing, implementing, and troubleshooting complex IT systems and networks. He has worked for leading IT companies, such as Microsoft, IBM, and Cisco, providing technical support and solutions to clients across various industries and sectors. Alex has a bachelor’s degree in computer science from the National University of Singapore and a master’s degree in information security from the Massachusetts Institute of Technology. He is also the author of several best-selling books on IT technical support, such as The IT Technical Support Handbook and Troubleshooting IT Systems and Networks. Alex lives in Bandar, Johore, Malaysia with his wife and two chilrdren. You can reach him at [email protected] or follow him on Website | Twitter | Facebook

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that is committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we have not implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you are currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.