AWS Certified Developer – Associate — Question 50
A developer is writing a new AWS Serverless Application Model (AWS SAM) template with a new AWS Lambda function. The Lambda function runs complex code. The developer wants to test the Lambda function with more CPU power.
What should the developer do to meet this requirement?
Answer options
- A. Increase the runtime engine version.
- B. Increase the timeout.
- C. Increase the number of Lambda layers.
- D. Increase the memory.
Correct answer: D
Explanation
Increasing the memory allocated to an AWS Lambda function not only provides more memory but also proportionally increases the CPU power available to the function. The other options do not directly impact the CPU capacity; upgrading the runtime version, extending the timeout, or adding layers won't enhance the computational resources available for execution.