AI-102 Implement an agentic solution Practice Question
You are troubleshooting an agent built with Microsoft Copilot Studio. The agent uses a custom topic to check inventory levels. The topic calls a Power Automate flow that returns JSON with 'inStock' boolean. The agent sometimes says 'Item is in stock' even when the flow returns false. What is the most likely cause?
⚠ Common exam trap
Watch out — candidates often assume the issue is with JSON parsing (Option D) or flow timeout (Option A), but the real problem is a variable assignment mismatch, which is a subtle but critical configuration detail in Copilot Studio topic design.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The topic's condition is using a variable that is not being updated with the flow output.
The most likely cause is that the topic's condition is referencing a variable that does not get updated with the flow's output. In Microsoft Copilot Studio, when a Power Automate flow returns data, the output must be explicitly assigned to a topic variable. If the condition checks a different variable (e.g., a default or uninitialized one), it will not reflect the actual 'inStock' value from the flow, leading to incorrect responses like 'Item is in stock' even when the flow returns false.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The Power Automate flow has a timeout and returns default true.
Why it's wrong here
Timeout would cause an error, not a false positive.
- ✓
The topic's condition is using a variable that is not being updated with the flow output.
Why this is correct
The variable might be stale or not set correctly.
- ✗
The agent's response is based on a different variable that defaults to true.
Why it's wrong here
Default values could cause issues but less likely than variable mismatch.
- ✗
The agent's topic is not parsing the JSON output correctly.
Why it's wrong here
Parsing JSON is straightforward.
Go deeper
Related to this question
About these practice questions
One of 945 original AI-102 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-102 exam.