exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 5 question 47 discussion

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

You are building a flight booking bot by using the Microsoft Bot Framework SDK.

The bot will ask users for the departure date. The bot must repeat the question until a valid date is given, or the users cancel the transaction.

Which type of dialog should you use?

  • A. prompt
  • B. adaptive
  • C. waterfall
  • D. action
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
zellck
Highly Voted 1 year, 7 months ago
Selected Answer: A
A is the answer. https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-concept-dialog?view=azure-bot-service-4.0#dialog-types The dialogs library provides a few types of dialogs to make your bot's conversations easier to manage. - prompt dialogs Ask the user for input and return the result. A prompt will repeat until it gets valid input or it's canceled. They're designed to work with waterfall dialogs.
upvoted 6 times
...
syupwsh
Most Recent 1 day, 10 hours ago
Selected Answer: A
Prompts are used to ask the user for a specific piece of information and can include validation to ensure the response meets certain criteria. In this case, you can use a DateTimePrompt to ask for the departure date and repeat the question until a valid date is provided or the user cancels the transaction. A is correct
upvoted 1 times
...
hatanaoki
8 months ago
Selected Answer: A
A is the correct answer for this. Le A est la bonne réponse à cette question.
upvoted 1 times
...
reigenchimpo
8 months ago
Selected Answer: A
A is answer.
upvoted 1 times
...
evangelist
1 year ago
Selected Answer: A
The same question has appeared more than once, please choose "prompt"
upvoted 1 times
...
PCRamirez
1 year ago
According to Windows Copilot: To create a flight booking bot that repeatedly prompts users for the departure date until a valid date is provided or the transaction is canceled, you should use a waterfall dialog. Here’s why: Waterfall Dialogs: A waterfall dialog is a type of container dialog that guides the conversation through a series of steps or prompts. It allows you to define a sequence of actions or questions that occur in a linear order. You can easily manage the flow of conversation by chaining multiple steps together. In your case, the bot can start by asking for the departure date, validate the input, and repeat the question if an invalid date is provided. Once a valid date is obtained, the waterfall dialog can proceed to the next step or end the conversation.
upvoted 1 times
aa18a1a
4 months ago
EXTREMELY important to understand here: A waterfall dialog will, like you said, allow for you to PROMPT users for the departure date until a valid date is provided. HOWEVER, you should refer to this documentation from Microsoft: https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-concept-waterfall-dialogs?view=azure-bot-service-4.0 Take a look at this part: -- "At each step, the bot prompts the user for input (or can begin a child dialog, but that it's often a prompt), waits for a response, and then passes the result to the next step. The result of the first function is passed as an argument into the next function, and so on." -- IMO, this key part referring to a child dialog is exactly what this question is asking. Therefore, the answer should be A. This is an example of that child dialog, which Microsoft deliberately states is "often a prompt". Like evangelist's comment below, anything that needs repeated until a valid response is given is always a Prompt
upvoted 1 times
...
PCRamirez
1 year ago
Other Options: Prompt Dialogs: These are useful for asking a single question and collecting a specific type of input (e.g., asking for a date). However, they don’t handle multi-turn conversations as effectively as waterfall dialogs. Adaptive Dialogs: While adaptive dialogs provide more flexibility, they are better suited for complex scenarios involving dynamic branching and adaptive behavior. For a straightforward task like collecting a departure date, a waterfall dialog is simpler and more appropriate. Action Dialogs: Action dialogs are not specifically designed for managing conversation flow. They are more focused on executing specific actions based on user input.
upvoted 1 times
...
...
evangelist
1 year ago
Selected Answer: A
for anything that needs repeated until a valid response is given, it leads to " Prompt"
upvoted 1 times
...
rdemontis
1 year, 3 months ago
Selected Answer: A
Correct but maybe repeated question?
upvoted 1 times
...
Tin_Tin
1 year, 7 months ago
Selected Answer: C
C. Waterfall same question 22 of topic5
upvoted 1 times
...
973b658
1 year, 8 months ago
Selected Answer: A
A. Same Question.
upvoted 1 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