AWS Certified Alexa Skill Builder – Specialty — Question 28
An Amazon Alexa skill fetches data for users from a third-party API and the wait for the response from that call is variable, often taking up to 5 seconds.
What is the recommended method for notifying users that a skill is working on the request and has not failed to respond?
Answer options
- A. Prefetch the data that is expected to the required by the skill from the third-party API using Amazon CloudWatch Events.
- B. Call the Progressive Response API and send a directive, such as VoicePlayer.Speak
- C. Ask a follow-up question for clarification to engage the user while waiting for the initially requested response.
- D. Respond to the user stating that the data will be ready soon, and upon the next launch of the skill, provide the user with the response they initially requested.
Correct answer: B
Explanation
The correct answer is B because the Progressive Response API allows the skill to send timely updates to the user, indicating that the request is still being processed. Options A, C, and D do not provide immediate feedback to the user about the ongoing request, which is essential to prevent confusion or frustration during longer wait times.