nerdexam
Amazon

AXS-C01 · Question #20

An Alexa Skill Builder wants to create a skill that asks the user two yes/no questions: Alexa: Do you like cats? Alexa: Do you like dogs? When the username answers "yes", how should the Builder code…

The correct answer is C. Within the AMAZON.YesIntent handler, define a slot to store and retrieve the previously asked. https://developer.amazon.com/en-US/docs/alexa/custom-skills/standard-built-in-intents.html

Skill Development

Question

An Alexa Skill Builder wants to create a skill that asks the user two yes/no questions:

Alexa: Do you like cats? Alexa: Do you like dogs? When the username answers “yes”, how should the Builder code the handler to know which question the answer refers to?

Options

  • AUsing session attributes, store the previous question as the context for use in the
  • BWithin the AMAZON.YesIntent handler, prompt the user to repeat the name of the animal that
  • CWithin the AMAZON.YesIntent handler, define a slot to store and retrieve the previously asked
  • DAccess Amazon CloudWatch Logs and retrieve the previous question topic from the recent log

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    9% (3)
  • C
    83% (29)
  • D
    6% (2)

Explanation

https://developer.amazon.com/en-US/docs/alexa/custom-skills/standard-built-in-intents.html

Topics

#session attributes#multi-turn conversation#AMAZON.YesIntent#context tracking

Community Discussion

No community discussion yet for this question.

Full AXS-C01 Practice