nerdexam
Amazon

AXS-C01 · Question #47

An Alexa Skill Builder is developing a skill containing a multi-turn dialog that can be invoked with or without a specific intent request. On invocation, the skill needs to retrieve persistent…

The correct answer is A. Place logic within the skill's SessionEndedRequest intent handler to copy the persistent attributes. https://developer.amazon.com/en-US/docs/alexa/alexa-skills-kit-sdk-for-nodejs/manage-

Skill Development

Question

An Alexa Skill Builder is developing a skill containing a multi-turn dialog that can be invoked with or without a specific intent request. On invocation, the skill needs to retrieve persistent attributes that have been saved by a previous invocation, and then copy them into session attributes. How should the Builder implement this functionality?

Options

  • APlace logic within the skill's SessionEndedRequest intent handler to copy the persistent attributes
  • BImplement ResponseInterceptor containing logic that takes the current persistent attributes and
  • CInclude logic within the LaunchRequest intent handler to retrieve persistent attributes and copy
  • DImplement RequestInterceptor containing logic which for new sessions, retrieves persistent

How the community answered

(46 responses)
  • A
    76% (35)
  • B
    15% (7)
  • C
    7% (3)
  • D
    2% (1)

Explanation

https://developer.amazon.com/en-US/docs/alexa/alexa-skills-kit-sdk-for-nodejs/manage-

Topics

#RequestInterceptor#persistent attributes#session attributes#multi-turn dialog

Community Discussion

No community discussion yet for this question.

Full AXS-C01 Practice