AWS Certified Machine Learning – Specialty — Question 277

A data scientist is using Amazon Comprehend to perform sentiment analysis on a dataset of one million social media posts.

Which approach will process the dataset in the LEAST time?

Answer options

Correct answer: C

Explanation

Using the asynchronous StartSentimentDetectionJob API is the most efficient way to analyze large datasets because Amazon Comprehend processes the S3-stored data in parallel in the background. Synchronous single or batch API calls (DetectSentiment and BatchDetectSentiment) would require millions or thousands of individual HTTP requests, leading to high latency and potential API throttling. Additionally, BatchDetectSentiment has a strict limit of 25 documents per request, making option D technically impossible.