AWS Certified Alexa Skill Builder – Specialty — Question 5
An Alexa Skill Builder is creating a skill that requires the user to authenticate by speaking a PIN before an order status can be retrieved.
According to best practices, how should the PIN value be collected?
Answer options
- A. Use AMAZON.SearchQuery
- B. Use AMAZON.FOUR_DIGIT_NUMBER
- C. Use multiple slots of type AMAZON.NUMBER
- D. Use a custom slot with zero to nine as values.
Correct answer: D
Explanation
The correct answer is D because a custom slot allows for precise control over the acceptable values, ensuring that only the digits zero through nine can be recognized as valid PIN inputs. Options A and B do not appropriately restrict input to just the digits needed for a PIN, while option C complicates the collection process by requiring multiple slots instead of a single, streamlined input.