Which solution will remediate the errors MOST cost-effectively?
Set up an Amazon CloudFront distribution. Set the ALB as the origin. Move all customer traffic to the CloudFront distribution endpoint.
Use Amazon RDS Proxy. Reconfigure the database connections to use the proxy.
Increase the number of reader nodes in the Aurora MySQL cluster.
Increase the number of nodes in the ElastiCache for Redis cluster.
Explanations:
Adding CloudFront distribution may improve latency and caching for static content, but it will not address the Aurora database connection issue.
RDS Proxy manages database connections efficiently, pooling and reusing connections to Aurora MySQL, which can help handle high connection demands cost-effectively.
Increasing reader nodes can improve read scalability, but this does not directly address the issue of too many open database connections.
Adding more Redis nodes does not resolve database connection limits with Aurora MySQL, as Redis is not the source of the connection errors.