AWS Certified Solutions Architect Professional · Free Practice Question Medium
Question 35
A solutions architect has developed a web application that uses an Amazon API Gateway Regional endpoint and an AWS Lambda function. The consumers of the web application are all close to the AWS Region where the application will be deployed. The Lambda function only queries an Amazon Aurora MySQL database. The solutions architect has configured the database to have three read replicas. During testing, the application does not meet performance requirements. Under high load, the application opens a large number of database connections. The solutions architect must improve the application’s performance. Which actions should the solutions architect take to meet these requirements? (Choose two.)
- A Use RDS Proxy to set up a connection pool to the reader endpoint of the Aurora database.
- B Use the Lambda Provisioned Concurrency feature.
- C Use the cluster endpoint of the Aurora database.
- D Move the code for opening the database connection in the Lambda function outside of the event handler.
- E Change the API Gateway endpoint to an edge-optimized endpoint.
Reveal correct answers
Correct answers: A, D
Explanation
To improve the performance of the web application, the solutions architect should take the following actions: 1. **Use RDS Proxy to set up a connection pool to the reader endpoint of the Aurora database**: This will help manage and pool database connections, reducing the overhead of opening and closing connections frequently under high load. 2. **Move the code for opening the database connection in the Lambda function outside of the event handler**: This will ensure that the database connection is reused across multiple invocations of the Lambda function, reducing the number of connections opened and improving performance. These actions will help manage database connections more efficiently and improve the overall performance of the application.Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
