Solutions Architect Quiz - How would you approach this?

i have my thoughts but wasnted to check what ppl felt on approaching this question?

A Java based microservice faced a sudden increase in web traffic resulted in diminished API performance & DB connection failures.
Which solution will meet these requirements with the LEAST amount of change to the application to minimize the latency for the Lambda functions and to support bursts in traffic.?

1- Update the code of the Lambda functions so that the Lambda functions open the database connection outside of the function handler. Increase the provisioned concurrency for the Lambda functions.

2- Create an RDS Proxy endpoint for the database. Store database secrets in AWS Secrets Manager. Set up the required IAM permissions. Update the Lambda functions to connect to the RDS Proxy endpoint. Increase the provisioned concurrency for the Lambda functions.

3- Create an RDS Proxy endpoint for the database. Store database secrets in AWS Secrets Manager. Set up the required IAM permissions. Update the Lambda functions to connect to the RDS Proxy endpoint. Increase the reserved concurrency for the Lambda functions.


Related discussions:

Option 1. If the db connection is within the handler it’s called for every instance of the lambda function so it could exhaust the db connection pool.

is what i thought too. Why would 2 not be valid? I surmised that in both case code change is needed. in case of rds proxy code change and rds proxy etc

but with option 1 does it satisfy all this requirement? LEAST amount of change to the application to minimize the latency for the Lambda functions and to support bursts in traffic.?

Yes

Yeah. The ‘least’ is the important part.

The test has a few questions like that where there will be a few answers that will solve the problem, but only one that’s the least work, or more cost effective. The questions will specify that as an additional qualifier to the question.