AWS Certified Solutions Architect – Professional — Question 993

A company is building a voting system for a popular TV show, viewers win watch the performances then visit the show's website to vote for their favorite performer. It is expected that in a short period of time after the show has finished the site will receive millions of visitors. The visitors will first login to the site using their Amazon.com credentials and then submit their vote. After the voting is completed the page will display the vote totals. The company needs to build the site such that can handle the rapid influx of traffic while maintaining good performance but also wants to keep costs to a minimum.
Which of the design patterns below should they use?

Answer options

Correct answer: D

Explanation

Option D is correct because decoupling the vote ingestion from the database write operations using Amazon SQS allows the system to buffer massive, sudden spikes in traffic without dropping votes. This queue-based architecture prevents the need to over-provision DynamoDB write capacity to handle the peak influx, which significantly minimizes costs. Directly writing to a database as described in the other options would either cause database bottlenecks or require extremely expensive provisioning.