AWS Certified Solutions Architect - Associate / Question #2024 of 1019

Question #2024

A company processes real-time customer feedback from a mobile app, which can receive thousands of submissions per hour. The current system stores feedback in emails for manual review. The company wants to automate sentiment analysis and ensure data is retained for 12 months in a scalable way.

Which solution meets these requirements MOST effectively?

A

Send feedback data to an Amazon API Gateway endpoint connected to an Amazon SQS queue. Use an AWS Lambda function to poll the queue, analyze sentiment with Amazon Comprehend, and store results in an Amazon DynamoDB table. Set the TTL for records to 365 days.

B

Send feedback data to an API on an Amazon EC2 instance. Configure the API to store data in a DynamoDB table, invoke Amazon Comprehend for sentiment analysis, and save results in a second DynamoDB table. Set the TTL for all records to 365 days.

C

Write feedback data to an Amazon S3 bucket. Use S3 Event Notifications to trigger an AWS Lambda function that analyzes sentiment with Amazon Comprehend and stores results in another S3 bucket. Apply S3 lifecycle policies to expire objects after 365 days.

D

Send feedback data to an Amazon API Gateway endpoint connected to an Amazon SQS queue. Configure the queue to invoke an AWS Lambda function that uses Amazon Transcribe for sentiment analysis and saves results to a DynamoDB table. Set the TTL for records to 365 days.

Explanation

The correct answer is A because:
1. Scalability: API Gateway and SQS handle high throughput, while Lambda auto-scales.
2. Sentiment Analysis: Amazon Comprehend is the correct service for this task (D incorrectly uses Transcribe).
3. Data Retention: DynamoDB TTL ensures automatic deletion after 365 days.

Why others are incorrect:
- B: EC2 is not serverless and less scalable.
- C: S3 is better for batch, not real-time processing.
- D: Transcribe is for speech-to-text, not sentiment analysis.

Key Points:
- Use serverless services for scalability.
- Comprehend for sentiment analysis.
- DynamoDB TTL for retention.

Answer

The correct answer is: A