You are building a chatbot by using the Microsoft Bot Framework Composer as shown in the exhibit. (Click the Exhibit tab.) The chatbot contains a dialog named G...


Microsoft AI-102 Exam

Questions Number: 193 out of 241 Questions
80.08%

Question 193
You are building a chatbot by using the Microsoft Bot Framework Composer as shown in the exhibit. (Click the Exhibit tab.)
AI-102_193Q.png related to the Microsoft AI-102 Exam
The chatbot contains a dialog named GetUserDetails. GetUserDetails contains a TextInput control that prompts users for their name.
The user input will be stored in a property named name.
You need to ensure that you can dispose of the property when the last active dialog ends.
Which scope should you assign to name?



The dialog scope associates properties with the active dialog. Properties in the dialog scope are retained until the dialog ends.
Incorrect Answers:
A: The conversation scope associates properties with the current conversation. Properties in the conversation scope have a lifetime of the conversation itself.
These properties are in scope while the bot is processing an activity associated with the conversation (for example, multiple users together in a Microsoft Teams channel).
B: The user scope associates properties with the current user. Properties in the user scope do not expire. These properties are in scope while the bot is processing an activity associated with the user.
C: The turn scope associates properties with the current turn. Properties in the turn scope expire at the end of the turn.
Reference:
https://docs.microsoft.com/en-us/composer/concept-memory?tabs=v2x





Previous Questions Next Questions



Premium Version