Medium1 markMultiple Choice
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?
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
Q01A company has multiple AWS accounts in an AWS Organizations organization. The security team wants...MediumQ02A solutions architect is designing an application that will run on Amazon EC2 instances. The appl...EasyQ03A company wants to implement a federated identity solution for its employees to access the AWS Ma...MediumQ04A mobile application needs to access Amazon DynamoDB directly to read user-specific data. The app...HardQ05A company is hosting a web application on Amazon EC2 instances. The application connects to an Am...Medium
Expert