SAP-C02 · Question #158
A company is planning a large event where a promotional offer will be introduced. The company's website is hosted on AWS and backed by an Amazon RDS for PostgreSQL DB instance. The website explains…
The correct answer is B. Use Amazon SQS to decouple the application and database layers. Configure an AWS Lambda. Using Amazon SQS to decouple the application and database layers is the best solution for ensuring that submissions are not dropped before they are committed to the database. SQS acts as a buffer for incoming requests during periods of high traffic, allowing the Lambda function…
Question
A company is planning a large event where a promotional offer will be introduced. The company's website is hosted on AWS and backed by an Amazon RDS for PostgreSQL DB instance. The website explains the promotion and includes a sign-up page that collects user information and preferences. Management expects large and unpredictable volumes of traffic periodically, which will create many database writes. A solutions architect needs to build a solution that does not change the underlying data model and ensures that submissions are not dropped before they are committed to the database. Which solution meets these requirements?
Options
- AImmediately before the event, scale up the existing DB instance to meet the anticipated demand.
- BUse Amazon SQS to decouple the application and database layers. Configure an AWS Lambda
- CMigrate to Amazon DynamoDB and manage throughput capacity with automatic scaling.
- DUse Amazon ElastiCache for Memcached to increase write capacity to the DB instance.
How the community answered
(25 responses)- A16% (4)
- B72% (18)
- C8% (2)
- D4% (1)
Explanation
Using Amazon SQS to decouple the application and database layers is the best solution for ensuring that submissions are not dropped before they are committed to the database. SQS acts as a buffer for incoming requests during periods of high traffic, allowing the Lambda function to process the messages in the queue asynchronously and write them into the database. This approach helps prevent overloading the RDS instance during traffic spikes while ensuring that all data is eventually written to the database without any loss.
Community Discussion
No community discussion yet for this question.