nerdexam
Amazon

DVA-C02 · Question #118

An ecommerce website uses an AWS Lambda function and an Amazon RDS for MySQL database for an order fulfillment service. The service needs to return order confirmation immediately. During a marketing c

The correct answer is B. Initialize the database connection outside the handler function. Use RDS Proxy instead of. https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-with-aws-lambda/

Submitted by rachelw· Mar 5, 2026Troubleshooting and Optimization

Question

An ecommerce website uses an AWS Lambda function and an Amazon RDS for MySQL database for an order fulfillment service. The service needs to return order confirmation immediately. During a marketing campaign that caused an increase in the number of orders, the website's operations team noticed errors for "too many connections" from Amazon RDS. However, the RDS DB cluster metrics are healthy. CPU and memory capacity are still available. What should a developer do to resolve the errors?

Options

  • AInitialize the database connection outside the handler function. Increase the
  • BInitialize the database connection outside the handler function. Use RDS Proxy instead of
  • CUse Amazon Simple Queue Service (Amazon SQS) FIFO queues to queue the orders. Ingest the
  • DUse Amazon Simple Queue Service (Amazon SQS) FIFO queues to queue the orders. Ingest the

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    79% (22)
  • C
    4% (1)
  • D
    14% (4)

Explanation

https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-with-aws-lambda/

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice