Q26 — AWS DVA-C02 Ch.3
Question 26 of 100 | ← Chapter 3
A developer has implemented an AWS Lambda function that is CPU-bound. The developer wants to ensure the function returns responses quickly.
- A. Increase the number of CPU cores allocated to the function.
- B. Increase the memory allocation for the function. ✓
- C. Increase the reserved concurrency for the function.
- D. Increase the timeout setting for the function.
Correct Answer: B. Increase the memory allocation for the function.
Explanation
In AWS Lambda, CPU capacity scales linearly with memory allocation — increasing memory automatically grants proportional CPU resources. For CPU-bound functions, increasing memory is the most direct and effective way to improve processing speed and reduce response latency. Option A is invalid: Lambda does not expose or allow manual CPU core configuration. Option C (reserved concurrency) controls concurrent execution limits but does not affect per-invocation performance. Option D (timeout) only extends the maximum allowable execution duration and does not enhance speed. Therefore, option B is correct.