Examtopics

AWS Certified Developer - Associate
  • Topic 1 Question 507

    A developer has implemented an AWS Lambda function that inserts new customers into an Amazon RDS database. The function is expected to run hundreds of times each hour. The function and RDS database are in the same VPC. The function is configured to use 512 MB of RAM and is based on the following pseudo code:

    After successfully testing the function multiple times, the developer notices that the execution time is longer than expected.

    What should the developer do to improve performance?

    • Increase the reserved concurrency of the Lambda function.

    • Increase the size of the RDS database to facilitate an increased number of database connections each hour.

    • Move the database connection and close statement out of the handler. Place the connection in the global space.

    • Replace Amazon RDS with Amazon DynamoDB to implement control over the number of writes per second.


    シャッフルモード