AWS Certified Machine Learning – Specialty — Question 132

A company that runs an online library is implementing a chatbot using Amazon Lex to provide book recommendations based on category. This intent is fulfilled by an AWS Lambda function that queries an Amazon DynamoDB table for a list of book titles, given a particular category. For testing, there are only three categories implemented as the custom slot types: "comedy," "adventure,` and "documentary.`
A machine learning (ML) specialist notices that sometimes the request cannot be fulfilled because Amazon Lex cannot understand the category spoken by users with utterances such as "funny," "fun," and "humor." The ML specialist needs to fix the problem without changing the Lambda code or data in DynamoDB.
How should the ML specialist fix the problem?

Answer options

Correct answer: D

Explanation

The correct answer is D because adding the unrecognized words as synonyms in the custom slot type allows Amazon Lex to understand variations in user input while still mapping to the existing categories. Options A and B would require changes to the slot type structure, which is not allowed. Option C is not suitable since it does not address the specific recognition issue of the categories.