Examlex

Solved

A Developer Has Implemented a Lambda Function That Needs to Add

question 111

Multiple Choice

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: 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. 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?


Definitions:

Activity Level

A measure of the volume of production or operations, often used to plan and control various business activities.

Period Costs

Expenses that are not directly tied to the production of goods and are expensed in the period in which they are incurred.

Average Costs

The cost per unit calculated by dividing the total cost of production by the number of units produced.

Variable Cost

Expenses that change in direct proportion to the amount of goods or services produced.

Related Questions