Medium1 markMultiple Choice
Domain 3.2: Compute PerformanceLambdaPerformanceCompute

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

A developer has written an AWS Lambda function that processes images. The function currently takes 8 seconds to execute. The developer wants to improve the performance and reduce the execution time.<br/><br/>What is the simplest way to increase the CPU power allocated to the Lambda function?

Answer options:

A.

Change the instance type of the underlying Lambda infrastructure.

B.

Increase the memory allocated to the Lambda function.

C.

Enable multi-threading in the Lambda function configuration.

D.

Increase the timeout setting of the Lambda function.

How to approach this question

Understand how resources are allocated in AWS Lambda.

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. If you increase the memory, you also increase the CPU power and network bandwidth available to the function.

Common mistakes

Looking for a specific 'CPU' slider in the Lambda console.

Practice the full AWS SAA-C03 Practice Exam 6

65 questions · hints · full answers · grading

More questions from this exam