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?
A.
Use a combination of AWS Step Functions and an AWS Lambda function to call the DetectSentiment API operation for each post synchronously.
B.
Use a combination of AWS Step Functions and an AWS Lambda function to call the BatchDetectSentiment API operation with batches of up to 25 posts at a time.
C.
Upload the posts to Amazon S3. Pass the S3 storage path to an AWS Lambda function that calls the StartSentimentDetectionJob API operation.
D.
Use an AWS Lambda function to call the BatchDetectSentiment API operation with the whole dataset.
This approach uses Amazon Comprehend's asynchronous batch processing. By uploading the data to S3 and using the StartSentimentDetectionJob API, Comprehend can process the entire dataset in parallel. This is the most efficient method for large datasets.
This approach uses Amazon Comprehend's asynchronous batch processing. By uploading the data to S3 and using the StartSentimentDetectionJob API, Comprehend can process the entire dataset in parallel. This is the most efficient method for large datasets.
This method is the most efficient and scalable for processing a dataset of this size, significantly outperforming the other options in terms of processing time.
B. Use a combination of AWS Step Functions and an AWS Lambda function to call the BatchDetectSentiment API operation with batches of up to 25 posts at a time.
Batch processing is generally more efficient for large datasets. The BatchDetectSentiment API operation allows you to process multiple items (up to 25) in a single call, which helps in reducing the overall processing time. Additionally, using AWS Step Functions to manage the workflow and AWS Lambda to handle the batch processing can make the implementation scalable and easier to manage.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Togy
1 month, 3 weeks agoTogy
1 month, 3 weeks agoTogy
1 month, 3 weeks agoMJSY
6 months, 3 weeks agoychaabane
7 months agoGS_77
8 months, 1 week agovkbajoria
1 year, 1 month agoCloudHandsOn
1 year, 3 months agotaustin2
1 year, 4 months agoaquanaveen
1 year, 4 months ago