exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 5 question 45 discussion

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

DRAG DROP
-

You are building a bot.

You need to test the bot in the Bot Framework Emulator. The solution must ensure that you can debug the bot interactively.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Show Suggested Answer Hide Answer
Suggested Answer:

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, 10 months ago
1. In code, create new trace activity 2. In code, send a trace activity 3. Run bot app on local host https://learn.microsoft.com/en-us/azure/bot-service/using-trace-activities?view=azure-bot-service-4.0&tabs=csharp A trace activity is an activity that your bot can send to the Bot Framework Emulator. You can use trace activities to interactively debug a bot, as they allow you to view information about your bot while it runs locally. Trace activities are sent only to the Emulator and not to any other client or channel. The Emulator displays them in the log but not the main chat panel.
upvoted 23 times
zellck
1 year, 10 months ago
https://learn.microsoft.com/en-us/azure/bot-service/using-trace-activities?view=azure-bot-service-4.0&tabs=csharp#to-use-a-trace-activity In order to see a trace activity in the Emulator, you need a scenario in which your bot will send a trace activity, such as throwing an exception and sending a trace activity from the adapter's on turn error handler. To send a trace activity from your bot: - Create a new activity. - Create a new activity. To view a trace activity in the Emulator: - Run the bot locally on your machine. - Test it using the Emulator.
upvoted 8 times
rdemontis
1 year, 5 months ago
thanks for your accurate explanation
upvoted 2 times
...
...
...
evangelist
Highly Voted 1 year, 2 months ago
The order should run bot app on local host first and then create trace activity and send trace activity
upvoted 5 times
tech_rum
1 day, 20 hours ago
1 Run the bot app on local host 2 In the code for the bot, create a new trace activity 3 In the code for the bot, send a trace activity For example: Would you open a website after you wrote HTML but before starting the web server? No — you need the server running first. Same idea here: Bot must be running first to interact with the Emulator.
upvoted 1 times
...
...
syupwsh
Most Recent 2 months, 2 weeks ago
1) In the code for the bot, create a new trace activity: Creating a trace activity in the bot's code helps to capture and log specific events or data points during the bot's execution. This step is crucial for understanding what happens internally when the bot runs. 2) In the code for the bot, send a trace activity: Sending the trace activity to the Bot Framework Emulator provides detailed insights into the bot's operations and facilitates interactive debugging. This action allows you to see the trace messages in the emulator and use them for troubleshooting. 3) Run the bot app on a local host: Running the bot locally allows you to interact with it directly through the Bot Framework Emulator. This setup is essential for real-time debugging and testing.
upvoted 2 times
...
anto69
8 months, 2 weeks ago
1. In code, create new trace activity 2. In code, send a trace activity 3. Run bot app on local host
upvoted 2 times
...
krzkrzkra
9 months, 2 weeks ago
1. In code, create new trace activity 2. In code, send a trace activity 3. Run bot app on local host
upvoted 1 times
...
evangelist
1 year, 3 months ago
Connect with the Bot Framework Emulator: Use the Bot Framework Emulator to connect to your bot running on localhost. The default URL is typically http://localhost:3978/api/messages. Test Your Bot: Interact with your bot via the Emulator to see the responses and the trace activities.
upvoted 1 times
...
973b658
1 year, 10 months ago
It is true.
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