nerdexam
Amazon

AXS-C01 · Question #44

An Alexa Skill Builder is using session attributes to maintain a user's state. What can the Builder do to ensure that a user's session is not lost if they take too long to answer a question and the…

The correct answer is A. Set shouldEndSession to false in the response object to prevent the skill from exiting. https://developer.amazon.com/blogs/alexa/post/08edaa00-59e2-46b7-aace-4080f2a87450/using- session-attributes-in-your-alexa-skill-to-enhance-the-voice-experience

Skill Development

Question

An Alexa Skill Builder is using session attributes to maintain a user's state. What can the Builder do to ensure that a user's session is not lost if they take too long to answer a question and the skill exists?

Options

  • ASet shouldEndSession to false in the response object to prevent the skill from exiting.
  • BHandle the SessionEndedRequest request type and persist the user's session to a database.
  • CReturn false from the SessionEndedRequest handler so the session does not exist.
  • DReturn a reprompt in the response object from the SessionEndedRequest handler.

How the community answered

(51 responses)
  • A
    82% (42)
  • B
    4% (2)
  • C
    4% (2)
  • D
    10% (5)

Explanation

https://developer.amazon.com/blogs/alexa/post/08edaa00-59e2-46b7-aace-4080f2a87450/using- session-attributes-in-your-alexa-skill-to-enhance-the-voice-experience

Topics

#session attributes#shouldEndSession#session management#SessionEndedRequest

Community Discussion

No community discussion yet for this question.

Full AXS-C01 Practice