AWS Certified Developer – Associate (DVA-C02) — Question 431
A developer is building an application on AWS. The application has an Amazon API Gateway API that sends requests to an AWS Lambda function. The API is experiencing increased latency because the Lambda function has limited available CPU to fulfill the requests.
Before the developer deploys the API into production, the developer must configure the Lambda function to have more CPU.
Which solution will meet this requirement?
Answer options
- A. Increase the virtual CPU (vCPU) cores quota of the Lambda function.
- B. Increase the amount of memory that is allocated to the Lambda function.
- C. Increase the ephemeral storage size of the Lambda function.
- D. Increase the timeout value of the Lambda function.
Correct answer: B
Explanation
AWS Lambda allocates CPU power proportionally to the amount of memory configured for the function, meaning that increasing the memory allocation automatically scales up the available CPU resources. Modifying the ephemeral storage or timeout limit will not increase processing power. Additionally, there is no direct configuration option to manually adjust virtual CPU (vCPU) cores for a Lambda function.