AWS Certified Machine Learning Engineer Associate · Free Practice Question Medium

Question 15

A travel company is building a customer support application that provides automated responses to user queries. The application uses Amazon Q Business to retrieve answers to customer questions about travel packages. However, the company must ensure that the API responses do not include any references to outdated or unavailable travel destinations.

Which solution will meet this requirement?

  • A

    Use the blocked phrase functionality in Amazon Q Business to filter out responses containing references to outdated travel destinations before returning results

  • B

    Use Amazon Comprehend to analyze the text of API responses and block any responses containing outdated travel destinations

  • C

    Set up an Amazon Lambda function to process API responses from Amazon Q Business and remove any references to outdated destinations before displaying the results

  • D

    Configure an Amazon Kendra retriever to exclude any content related to outdated travel destinations from the response dataset

Reveal correct answer

Correct answer: A

Explanation

Correct option:

Use the blocked phrase functionality in Amazon Q Business to filter out responses containing references to outdated travel destinations before returning results

The blocked phrase functionality in Amazon Q Business is specifically designed to filter out specific terms or phrases from API responses. By leveraging this feature, the travel company can ensure that outdated or unavailable destinations are excluded from the answers provided to customers. This approach integrates seamlessly with Amazon Q Business, eliminating the need for additional custom processing. It minimizes operational overhead by applying filters directly at the API level, ensuring accurate and real-time responses.

The following diagram shows you how Amazon Q Business uses these guardrails to direct queries:

via - https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/guardrails-global-controls.html

Incorrect options:

Configure an Amazon Kendra retriever to exclude any content related to outdated travel destinations from the response dataset - Amazon Kendra is designed for enterprise search and retrieval, not filtering specific phrases in API responses. It cannot enforce filtering directly within Amazon Q Business responses.

Set up an Amazon Lambda function to process API responses from Amazon Q Business and remove any references to outdated destinations before displaying the results - This approach introduces unnecessary latency and operational complexity, as filtering is handled externally rather than within the Amazon Q Business API.

Use Amazon Comprehend to analyze the text of API responses and block any responses containing outdated travel destinations - Amazon Comprehend is a Natural Language Processing (NLP) service designed for text analysis. It is not suitable for filtering API responses from Amazon Q Business.

References:

https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/guardrails-global-controls.html

https://docs.aws.amazon.com/amazonq/latest/api-reference/API_BlockedPhrasesConfiguration.html

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need