SOA-C02 · Question #81
A company is running a serverless application on AWS Lambda. The application stores data in an Amazon RDS for MySQL DB instance. Usage has steadily increased, and recently there have been numerous…
The correct answer is B. Use Amazon RDS Proxy to create a proxy. RDS Proxy acts as an intermediary between your application and an RDS database. RDS Proxy establishes and manages the necessary connection pools to your database so that your application creates fewer database connections. Your Lambda functions interact with RDS Proxy instead…
Question
A company is running a serverless application on AWS Lambda. The application stores data in an Amazon RDS for MySQL DB instance. Usage has steadily increased, and recently there have been numerous "too many connections" errors when the Lambda function attempts to connect to the database. The company already has configured the database to use the maximum max_connections value that is possible. What should a SysOps administrator do to resolve these errors?
Options
- ACreate a read replica of the database.
- BUse Amazon RDS Proxy to create a proxy.
- CIncrease the value in the max_connect_errors parameter in the parameter group that the
- DUpdate the Lambda function's reserved concurrency to a higher value.
How the community answered
(57 responses)- A2% (1)
- B84% (48)
- C5% (3)
- D9% (5)
Explanation
RDS Proxy acts as an intermediary between your application and an RDS database. RDS Proxy establishes and manages the necessary connection pools to your database so that your application creates fewer database connections. Your Lambda functions interact with RDS Proxy instead of your database instance. It handles the connection pooling necessary for scaling many simultaneous connections created by concurrent Lambda functions. This allows your Lambda applications to reuse existing connections, rather than creating new connections for every function invocation. https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-with-aws-lambda/
Topics
Community Discussion
No community discussion yet for this question.