exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 5 question 17 discussion

Actual exam question from Microsoft's AI-102
Question #: 17
Topic #: 5
[All AI-102 Questions]

You use the Microsoft Bot Framework Composer to build a chatbot that enables users to purchase items.
You need to ensure that the users can cancel in-progress transactions. The solution must minimize development effort.
What should you add to the bot?

  • A. a language generator
  • B. a custom event
  • C. a dialog trigger
  • D. a conversation activity
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
[Removed]
Highly Voted 8 months, 2 weeks ago
C. a dialog trigger Dialog triggers manage conversation flow and handle user inputs, allowing users to cancel in-progress transactions efficiently.
upvoted 26 times
...
zellck
Highly Voted 1 year, 7 months ago
Selected Answer: C
C is the answer. https://learn.microsoft.com/en-us/composer/concept-events-and-triggers?tabs=v2x In Bot Framework Composer, each dialog includes one or more event handlers called triggers. Each trigger contains one or more actions. Actions are the instructions that the bot will execute when the dialog receives any event that it has a trigger defined to handle. Once a given event is handled by a trigger, no further action is taken on that event. Some event handlers have a condition specified that must be met before it will handle the event and if that condition isn't met, the event is passed to the next event handler. If an event isn't handled in a child dialog, it gets passed up to its parent dialog to handle and this continues until it's either handled or reaches the bots main dialog. If no event handler is found, it will be ignored and no action will be taken.
upvoted 17 times
...
syupwsh
Most Recent 1 day, 13 hours ago
Selected Answer: C
Dialog trigger allows you to define specific conditions under which certain dialogs or actions should be initiated. By adding a dialog trigger, you can easily set up a condition that listens for user inputs indicating a cancellation request (like "cancel" or "stop") and then triggers the cancellation process, minimizing development effort. Answer is C
upvoted 1 times
...
krzkrzkra
7 months ago
Selected Answer: C
Selected Answer: C
upvoted 1 times
...
reigenchimpo
8 months ago
Selected Answer: C
C is answer.
upvoted 1 times
...
nanaw770
8 months, 2 weeks ago
Selected Answer: C
I often make mistakes. This is C!
upvoted 1 times
...
evangelist
1 year ago
Selected Answer: C
The answer is C: To ensure that users can cancel in-progress transactions with minimal development effort, you should add C. a dialog trigger to the bot. A dialog trigger allows the bot to respond to specific conditions or intents, such as a user's request to cancel a transaction, by invoking predefined dialogs that handle these scenarios efficiently.
upvoted 2 times
...
rdemontis
1 year, 3 months ago
Selected Answer: C
To me the correct answer is C. https://learn.microsoft.com/en-us/composer/concept-events-and-triggers?tabs=v2x#dialog-events-triggers
upvoted 4 times
...
propanther
1 year, 3 months ago
Selected Answer: C
You should use dialog triggers to: Take actions immediately when the dialog starts, even before the recognizer is called. Take actions when a "cancel" signal is detected. Take actions on messages received or sent. Evaluate the content of the incoming activity. https://learn.microsoft.com/en-us/composer/concept-events-and-triggers?tabs=v2x#dialog-events-triggers
upvoted 3 times
...
sl_mslconsulting
1 year, 3 months ago
Selected Answer: D
Tiggers are not a good fit for handling scenarios like these let along there are all 4 types of triggers for dialogs. Follow the link provided by the answer and read the code carefully and you will understand why it’s D.
upvoted 2 times
sl_mslconsulting
1 year, 3 months ago
*only 4 types… Dialog started (Begin dialog event) Dialog cancelled (Cancel dialog event) Error occurred (Error event) Re-prompt for input (Reprompt dialog event). How are they appropriate in handling scenarios like this?
upvoted 2 times
...
...
EliteAllen
1 year, 7 months ago
Selected Answer: C
A dialog trigger in Bot Framework Composer allows you to define the conditions under which a specific dialog is started. For example, you can create a dialog trigger that listens for the user to say something like "cancel" or "stop", and then initiate a dialog that handles the cancellation of the in-progress transaction. This approach doesn't require you to manually code the cancellation logic, and it leverages the built-in capabilities of the Bot Framework Composer, thus minimizing development effort.
upvoted 3 times
...
ArchMelody
2 years, 3 months ago
Selected Answer: C
C seems to be the correct answer for me as well for the aforementioned reasons.
upvoted 5 times
...
DiegoGonL
2 years, 3 months ago
Selected Answer: C
As Tickxit said: an interruption occurs when a trigger is fired in the context of adaptive dialogs.
upvoted 3 times
...
Davard
2 years, 5 months ago
It seems like it should be C: a dialog trigger. Anyone else?
upvoted 15 times
Tickxit
2 years, 4 months ago
I agree, an interruption occurs when a trigger is fired. Context of adaptive dialogs.
upvoted 6 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago