AWS Certified Alexa Skill Builder – Specialty — Question 35
During testing of a new Amazon Alexa skill, the skill is repeatedly failing and invoking the function defined in the addErrorHandler method specified on the
SkillBuilder object. Upon inspection of Amazon CloudWatch Logs, the Alexa Skill Builder establishes that the failure is occurring whenever
AMAZON.HelpIntent is being received.
How should this error be corrected?
Answer options
- A. AMAZON.HelpIntent should be handled by the SDK. The Builder should raise a support ticket with Amazon.
- B. The Builder should ensure that the intent handler is coded so that it tests for AMAZON.HelpIntent in its canHandle method, and when detected, returns true.
- C. The Builder should add logic to provide help instructions to the function defined in the addErrorHandler method specified on the SkillBuilder object.
- D. The Builder should add an AMAZON.HelpIntent entry to the interaction model to ensure the request for help is recognized by the skill.
Correct answer: B
Explanation
The correct answer is B because the canHandle method needs to be able to identify AMAZON.HelpIntent and respond accordingly. Options A and C do not resolve the underlying issue of intent handling, and option D does not address the necessity of enabling the function to handle the intent correctly.