A company collects customer satisfaction surveys on its website. Surveys can reach thousands of customers per hour. Results are currently emailed for manual review. The company wants to automate the workflow and keep survey results available for the previous 12 months. Which solution meets these requirements in the MOST scalable way?
Choose an answer
Tap an option to check your answer.
Correct answer: Send the survey results data to an Amazon API Gateway endpoint that is connected to an Amazon Simple Queue Service (Amazon SQS) queue. Create an AWS Lambda function to poll the SQS queue, call Amazon Comprehend for sentiment analysis, and save the results to an Amazon DynamoDB table. Set the TTL for all records to 365 days in the future..
Why this is the answer
The correct solution leverages a fully managed, serverless architecture that scales automatically. Amazon API Gateway provides a scalable entry point for the survey data. Amazon SQS acts as a buffer, decoupling the ingestion from processing and handling potential spikes in survey submissions. An AWS Lambda function processes messages from SQS, calls Amazon Comprehend for sentiment analysis (a service specifically designed for text analysis), and stores the results in Amazon DynamoDB, a highly scalable NoSQL database. DynamoDB's Time-to-Live (TTL) feature automatically purges records after 365 days, meeting the retention requirement efficiently. The option using an EC2 instance introduces operational overhead and less scalability compared to serverless. The S3-based option is less suitable for real-time processing of individual survey results and incorrectly suggests Amazon Rekognition for sentiment analysis (Rekognition is for image/video analysis, not text). The option using Amazon Lex for sentiment analysis is incorrect; Lex is for building conversational interfaces, not general sentiment analysis of text.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed