Which actions should the solutions architect take to meet these requirements?
(Choose two.)
Use the cluster endpoint of the Aurora database.
Use RDS Proxy to set up a connection pool to the reader endpoint of the Aurora database.
Use the Lambda Provisioned Concurrency feature.
Move the code for opening the database connection in the Lambda function outside of the event handler.
Change the API Gateway endpoint to an edge-optimized endpoint.
Explanations:
The cluster endpoint directs traffic to the writer node only, which can become a bottleneck under high load. This option does not address connection pooling.
RDS Proxy manages a connection pool, reducing the overhead of opening multiple database connections and improving scalability and performance under high load.
Lambda Provisioned Concurrency reduces cold start latency but does not address the high number of database connections or connection pooling requirements.
Moving the database connection code outside the event handler enables connection reuse across invocations, minimizing connection overhead and improving performance.
An edge-optimized API Gateway endpoint improves latency for distributed consumers, but the consumers are already close to the Region, so this change has minimal effect on performance.