A Developer has implemented a Lambda function that needs to add new customers to an RDS database that is expected to run hundreds of times per hour. The Lambda function is configured to use 512MB of RAM and is based on the following pseudo code: After testing the Lambda function, the Developer notices that the Lambda execution time is much longer than expected. What should the Developer do to improve performance?
A) Increase the amount of RAM allocated to the Lambda function, which will increase the number of threads the Lambda can use.
B) Increase the size of the RDS database to allow for an increased number of database connections each hour.
C) Move the database connection and close statement out of the handler. Place the connection in the global space.
D) Replace RDS wit Amazon DynamoDB to implement control over the number of writes per second.
Correct Answer:
Verified
Q154: A company has developed a new serverless
Q155: A developer wants to send multi-value headers
Q156: A developer is testing an application that
Q157: A developer is using AWS CodeDeploy to
Q158: A company has an application where reading
Q160: What are the steps to using the
Q161: Given the source code for an AWS
Q162: A company has written a Java AWS
Q163: A web application is using Amazon Kinesis
Q164: A legacy service has an XML-based SOAP
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents