exam questions

Exam AWS Certified Machine Learning - Specialty All Questions

View all questions & answers for the AWS Certified Machine Learning - Specialty exam

Exam AWS Certified Machine Learning - Specialty topic 1 question 281 discussion

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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Togy
1 month, 3 weeks ago
Selected Answer: C
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.
upvoted 2 times
...
Togy
1 month, 3 weeks ago
Selected Answer: B
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.
upvoted 1 times
Togy
1 month, 3 weeks ago
I meant answer C.
upvoted 1 times
...
...
MJSY
6 months, 3 weeks ago
Selected Answer: C
C is a async method, A, B is not. https://docs.aws.amazon.com/comprehend/latest/APIReference/API_StartSentimentDetectionJob.html
upvoted 4 times
...
ychaabane
7 months ago
Selected Answer: C
C is the most efficient approach
upvoted 2 times
...
GS_77
8 months, 1 week ago
Selected Answer: C
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.
upvoted 1 times
...
vkbajoria
1 year, 1 month ago
Selected Answer: B
since there are million post, 15 minutes may not be enough so step function is needed and batchDetectSentiment is good way to go
upvoted 2 times
...
CloudHandsOn
1 year, 3 months ago
Selected Answer: B
https://docs.aws.amazon.com/comprehend/latest/APIReference/API_BatchDetectSentiment.html#API_BatchDetectSentiment_RequestParameters
upvoted 2 times
...
taustin2
1 year, 4 months ago
Selected Answer: B
It's B. Limit on BatchDetectSentiment is 25 documents. Other endpoints are for individual strings.
upvoted 1 times
...
aquanaveen
1 year, 4 months ago
Selected Answer: 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.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago