AI-103 Implement Generative AI And Agentic Solutions Practice Question
You are orchestrating a multi-agent system in Microsoft Foundry where Agent A generates code and Agent B reviews it. Agent B frequently gets stuck in a loop trying to optimize minor syntax formatting. How should you design the agentic workflow to prevent this infinite refinement loop?
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
✓
Configure a maximum turn counter and state transition condition in the orchestrator workflow to terminate the loop after a set threshold.
Establishing a strict iteration limit or state machine check within the orchestrator prevents agents from looping indefinitely.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Disable function calling for Agent B so it can only output text responses.
Why it's wrong here
Disabling function calling does not address the logic loop between code generation and review.
- ✓
Configure a maximum turn counter and state transition condition in the orchestrator workflow to terminate the loop after a set threshold.
Why this is correct
Explicit termination conditions and state management are essential pattern controls in multi-agent orchestration.
- ✗
Increase the model's presence penalty so Agent B is forced to generate novel review comments.
Why it's wrong here
Presence penalty encourages new topics but does not stop agent loops or manage workflow termination.
- ✗
Use a smaller model for Agent B to reduce the quality of its reviews.
Why it's wrong here
Degrading model quality does not solve workflow control issues.
About these practice questions
One of 510 original AI-103 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 and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Microsoft exam blueprint
This AI-103 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-103 exam.