A bot needs to ensure it only accepts a valid city name from the user. What is the best way to implement this in Lex?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Use a 'Slot Type' (either built-in like AMAZON.City or a custom one)

Slot types allow you to define and validate the data being collected by the bot....

📋Part of AWS Certified Solutions Architect – Associate (SAA-C03) · AWS Certification Practice
Real Exam ScenarioAmazon Lex

A bot needs to ensure it only accepts a valid city name from the user. What is the best way to implement this in Lex?

✓ Correct Answer & ExplanationAmazon Lex

Correct Answer

Use a 'Slot Type' (either built-in like AMAZON.City or a custom one)

Why This Answer Is Correct

Slot types allow you to define and validate the data being collected by the bot.

📚 What This Question Tests

This question evaluates your knowledge of Amazon Lex — a core concept tested in AWS Certified Solutions Architect – Associate (SAA-C03). Understanding Amazon Lex is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.