DVA-C02 · Question #749
DVA-C02 Question #749: Real Exam Question with Answer & Explanation
The correct answer is D: Increase the available memory to the function.. In AWS Lambda, increasing the memory allocation not only gives the function more RAM, but also proportionally increases the CPU power. For CPU-intensive workloads, this is the most effective way to speed up execution time, as more compute power is granted automatically with
Question
A software engineer developed an AWS Lambda function in Node.js to do some CPU-intensive data processing. With the default settings, the Lambda function takes about 5 minutes to complete. Which approach should a developer take to increase the speed of completion?
Options
- AInstead of using Node.js, rewrite the Lambda function using Python.
- BInstead of packaging the libraries in the ZIP file with the function, move them to a Lambda layer
- CAllocate the maximum available CPU units to the function.
- DIncrease the available memory to the function.
Explanation
In AWS Lambda, increasing the memory allocation not only gives the function more RAM, but also proportionally increases the CPU power. For CPU-intensive workloads, this is the most effective way to speed up execution time, as more compute power is granted automatically with
Community Discussion
No community discussion yet for this question.