
Answer-first summary for fast verification
Answer: Increase the RAM assigned to your Lambda function
Overall explanation Correct option: Increase the RAM assigned to your Lambda function AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume. In the AWS Lambda resource model, you choose the amount of memory you want for your function which allocates proportional CPU power and other resources. This means you will have access to more compute power when you choose one of the new larger settings. To configure the memory for your function, set a value between 128 MB and 10,240 MB in 1-MB increments. At 1,769 MB, a function has the equivalent of one vCPU (one vCPU-second of credits per second). You access these settings when you create a function or update its configuration. The settings are available using the AWS Management Console, AWS CLI, or SDKs. Therefore, by increasing the amount of memory available to the Lambda functions, you can run the compute-heavy workflows. Incorrect options: Change the instance type for your Lambda function - Instance types apply to the EC2 service and not to Lambda function as its a serverless service. Change your Lambda function runtime to use Golang - This changes programming language which requires code changes, so this option is not correct. Besides, changing the runtime may not even address the performance issues. Increase the Lambda function timeout - This option would increase the amount of time for which the Lambda function executes, which may help in case you have some heavy processing, but won't help with the actual performance of your Lambda function.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company utilizes AWS Lambda functions that are triggered by various AWS services, including Amazon Kinesis Data Firehose, Amazon API Gateway, Amazon Simple Storage Service, and Amazon CloudWatch Events. These Lambda functions are responsible for handling substantial workloads, like big data analysis, processing large files, and executing statistical computations.
How can you enhance the performance of these AWS Lambda functions without modifying the underlying code?
A
Increase the RAM assigned to your Lambda function
B
Change the instance type for your Lambda function
C
Increase the Lambda function timeout
D
Change your Lambda function runtime to use Golang