nerdexam
Amazon

DVA-C02 · Question #749

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…

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

Submitted by naveen.iyer· Mar 5, 2026Troubleshooting and Optimization

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.

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    13% (3)
  • C
    9% (2)
  • D
    74% (17)

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.

Full DVA-C02 Practice