Microsoft Azure AI Engineer Associate AI-102 Practice Question
Your team is prototyping a development assistant that uses three specialized Azure AI Foundry agents (Researcher, Coder, Tester). At run time the model must decide which agent to call next and repeat the Researcher-Coder-Tester cycle until the Tester reports success or a maximum iteration limit is reached. Project managers need to inject clarifying chat messages at any point in the conversation, and the workflow should answer them before continuing without rebuilding the plan. Within Semantic Kernel, which mechanism provides this built-in iterative orchestration and human-in-the-loop support without writing external workflow code?
Register the three agent functions and enable FunctionChoiceBehavior.Auto so the kernel's built-in function-calling loop decides which agent to invoke until completion.
Create a SequentialPlanner plan that chains the agent functions inside a loop conditioned on the Tester result.
Publish each agent as an Azure Function and pass messages between them with Service Bus topics and subscriptions.
Implement the workflow in Azure Logic Apps with sequential actions and a Do-Until loop.
Semantic Kernel's function-calling subsystem automatically handles iterative orchestration when the kernel is configured with FunctionChoiceBehavior.Auto. Each agent is registered as a kernel function; the model selects and invokes those functions, receives the results, and decides whether to call another function or end the loop. Steps 2-6 of the function-calling process repeat until the model returns a final chat message or the configured max-iteration count is hit. Because the orchestration relies on the chat-history object, new user (project-manager) messages can be added at any moment and are processed in the next iteration, so the loop continues seamlessly. Logic Apps, Service Bus, or hard-coded skill chains do not offer this automatic loop with chat-based intervention across agent boundaries.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is FunctionChoiceBehavior.Auto in Semantic Kernel?
Open an interactive chat with Bash
How are chat-history objects used in Semantic Kernel?
Open an interactive chat with Bash
Why not use Azure Logic Apps or Service Bus for this workflow?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Implement an agentic solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .