nerdexam
Amazon

MLS-C01 · Question #175

A company is launching a new product and needs to build a mechanism to monitor comments about the company and its new product on social media. The company needs to be able to evaluate the sentiment…

The correct answer is D. Trigger an AWS Lambda function when social media posts are added to the S3 bucket. The correct approach is to trigger an AWS Lambda function when new social media posts land in S3, have that function call Amazon Comprehend's DetectSentiment API on each post, and then store the results for visualization and alerting (typically using Amazon QuickSight for…

Machine Learning Implementation and Operations

Question

A company is launching a new product and needs to build a mechanism to monitor comments about the company and its new product on social media. The company needs to be able to evaluate the sentiment expressed in social media posts, and visualize trends and configure alarms based on various thresholds. The company needs to implement this solution quickly, and wants to minimize the infrastructure and data science resources needed to evaluate the messages. The company already has a solution in place to collect posts and store them within an Amazon S3 bucket. What services should the data science team use to deliver this solution?

Options

  • ATrain a model in Amazon SageMaker by using the BlazingText algorithm to detect sentiment in
  • BTrain a model in Amazon SageMaker by using the semantic segmentation algorithm to model the
  • CTrigger an AWS Lambda function when social media posts are added to the S3 bucket.
  • DTrigger an AWS Lambda function when social media posts are added to the S3 bucket.

How the community answered

(35 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    14% (5)
  • D
    77% (27)

Explanation

The correct approach is to trigger an AWS Lambda function when new social media posts land in S3, have that function call Amazon Comprehend's DetectSentiment API on each post, and then store the results for visualization and alerting (typically using Amazon QuickSight for dashboards and Amazon CloudWatch for threshold alarms). Amazon Comprehend is a fully managed NLP service that requires no ML expertise or model training - sentiment analysis is available as an API call. This satisfies the requirement to minimize infrastructure and data science resources. Option A (training a custom BlazingText model) requires labeled training data and data science effort, which contradicts the 'minimize resources' requirement. Option B (semantic segmentation) is a computer vision technique for image analysis, completely irrelevant to text sentiment. The Lambda + Comprehend + visualization pipeline can be built and operational in hours, making it the fastest and lowest-overhead solution.

Topics

#Sentiment Analysis#Amazon Comprehend#Serverless Architecture#S3 Events

Community Discussion

No community discussion yet for this question.

Full MLS-C01 Practice