AWS Certified Solutions Architect – Professional (SAP-C02) — Question 206

A company runs a microservice as an AWS Lambda function. The microservice writes data to an on-premises SQL database that supports a limited number of concurrent connections. When the number of Lambda function invocations is too high, the database crashes and causes application downtime. The company has an AWS Direct Connect connection between the company's VPC and the on-premises data center. The company wants to protect the database from crashes.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because it uses Amazon SQS to buffer the writes to the database, preventing it from being overwhelmed by too many concurrent connections. The reserved concurrency limit on the Lambda function ensures that the number of concurrent executions does not exceed the database's capacity. The other options either do not address the concurrency issue effectively or introduce unnecessary complexity without solving the core problem.