AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 203
A DevOps engineer is building an application that uses an AWS Lambda function to query an Amazon Aurora MySQL DB cluster. The Lambda function performs only read queries. Amazon EventBridge events invoke the Lambda function.
As more events invoke the Lambda function each second, the database's latency increases and the database's throughput decreases. The DevOps engineer needs to improve the performance of the application.
Which combination of steps will meet these requirements? (Choose three.)
Answer options
- A. Use Amazon RDS Proxy to create a proxy. Connect the proxy to the Aurora cluster reader endpoint. Set a maximum connections percentage on the proxy.
- B. Implement database connection pooling inside the Lambda code. Set a maximum number of connections on the database connection pool.
- C. Implement the database connection opening outside the Lambda event handler code.
- D. Implement the database connection opening and closing inside the Lambda event handler code.
- E. Connect to the proxy endpoint from the Lambda function.
- F. Connect to the Aurora cluster endpoint from the Lambda function.
Correct answer: A, C, E
Explanation
The correct answer includes A, C, and E because using Amazon RDS Proxy optimizes database connections, opening the connection outside the event handler improves efficiency by reducing connection overhead, and connecting the Lambda function to the proxy endpoint utilizes the benefits of the proxy. Options B and D are less effective, as they do not provide the same level of optimization for managing connections in a high-throughput scenario.