SAP-C02 · Question #479
SAP-C02 Question #479: Real Exam Question with Answer & Explanation
The correct answer is A: Write the data to an Amazon Simple Queue Service (Amazon SQS) queue. Configure the. Apparently, we need to make the lambda "not to rush that much" and keep the connection within the limit of the on-pre DB. So if we want not to lose data while waiting we implement SQS before the lambda so it keeps the requests in the queue.
Question
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?
Options
- AWrite the data to an Amazon Simple Queue Service (Amazon SQS) queue. Configure the
- BCreate a new Amazon Aurora Serverless DB cluster. Use AWS DataSync to migrate the data
- CCreate an Amazon RDS Proxy DB instance. Attach the RDS Proxy DB instance to the Amazon
- DWrite the data to an Amazon Simple Notification Service (Amazon SNS) topic. Invoke the Lambda
Explanation
Apparently, we need to make the lambda "not to rush that much" and keep the connection within the limit of the on-pre DB. So if we want not to lose data while waiting we implement SQS before the lambda so it keeps the requests in the queue.
Community Discussion
No community discussion yet for this question.