Topic 1 Question 281
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?
Use a combination of AWS Step Functions and an AWS Lambda function to call the DetectSentiment API operation for each post synchronously.
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.
Upload the posts to Amazon S3. Pass the S3 storage path to an AWS Lambda function that calls the StartSentimentDetectionJob API operation.
Use an AWS Lambda function to call the BatchDetectSentiment API operation with the whole dataset.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: B
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.
👍 1aquanaveen2023/12/17 - 正解だと思う選択肢: B
It's B. Limit on BatchDetectSentiment is 25 documents. Other endpoints are for individual strings.
👍 1taustin22023/12/23
シャッフルモード