Medium1 markMultiple Choice
Domain 3.2: Compute PerformanceDomain 3PerformanceLambdaCompute

AWS SAA-C03 · Question 42 · Domain 3.2: Compute Performance

A developer has written an AWS Lambda function that processes images. The function is taking too long to execute, and the developer wants to improve its CPU performance. How can the developer increase the CPU power allocated to the Lambda function?

Answer options:

A.

Change the instance type in the Lambda configuration.

B.

Increase the memory allocated to the Lambda function.

C.

Enable multi-threading in the Lambda function code.

D.

Increase the timeout setting for the Lambda function.

How to approach this question

Remember the fundamental rule of Lambda: Memory and CPU are coupled. Increase memory to increase CPU.

Full Answer

B.Increase the memory allocated to the Lambda function.✓ Correct
AWS Lambda allocates CPU power linearly in proportion to the amount of memory configured. At 1,769 MB, a function has the equivalent of one vCPU. To increase the CPU performance of a Lambda function, you must increase its memory allocation.

Common mistakes

Looking for a specific 'CPU' setting in Lambda, which does not exist.

Practice the full AWS SAA-C03 Practice Exam 1

65 questions · hints · full answers · grading

More questions from this exam