AWS Certified Alexa Skill Builder – Specialty — Question 36
An Alexa Skill Builder has created a taxi hiring skill. The skill needs to find out when the customer wants a taxi, where the customer is traveling from, and where the customer wants to go. The Builder is currently asking each question individually, in the following order:
"Where do you want to take a taxi from"
"Where do you want to take a taxi to"
"When do you need a taxi"
To ensure the voice interaction is flexible, how should this information be gathered regardless of the order in which the user provides it?
Answer options
- A. Use a single intent and slot. Inspect the incoming slot value and categorize then response, then prompt for the remaining information.
- B. Create an intent for each question and include slots for each piece of information on every intent
- C. Create three intents with one slot each. Use Dialog.ElicitSlot to fill the slots.
- D. Create a single intent with three slots. Use the Dialog.Delegate directive to fill the slots.
Correct answer: D
Explanation
The correct answer is D because creating a single intent with three slots allows for more efficient handling of user input, enabling the skill to gather the required information in any order. Options A and C do not provide the same level of flexibility, and option B complicates the interaction by requiring multiple intents for what could be consolidated into one.