‹ All AI-103 questions

AI-103 Practice Question 84: Agent Run Requires Action

Microsoft Azure AI Apps and Agents Developer Associate (AI-103) · Test 9 · question 4 of 10

Implement generative AI and agentic solutionsmedium

A developer's polling loop reads run.status in a tight loop and treats any value other than completed as "still running," so it just sleeps and checks again, including when the status is requires_action. The agent has a function tool that looks up account balances. In testing, every run that needs the balance lookup ends with status expired about ten minutes after it starts, even though the balance service itself replies in well under a second.

What is the polling loop missing?

Select one answer
Show answer and explanation

Answer:

  • A. It never detects requires_action, reads required_action.submit_tool_outputs.tool_calls, executes the named function locally, and submits the results with a submit-tool-outputs call before continuing to poll

A run's documented lifecycle is queued → in_progress → (optionally) requires_action → completed, and Microsoft is explicit that a language model never executes a function itself: "When the agent determines a function is needed, the run status indicates requires_action with function call details. Your application code must detect this, execute the appropriate function, and submit the results back to the agent via the API." A loop that only waits during requires_action leaves the run permanently parked in that state (nothing ever supplies the output the model is waiting for) until the documented 10-minute run expiration fires and the run becomes expired, matching exactly what the team observed.

- B is wrong because a longer polling interval only changes how often the loop *checks* the status; it never executes the function or submits an output, so the run still has nothing to advance past requires_action and still expires at the same ten-minute mark. - C is wrong because streaming changes how status updates are delivered to the client, not the run's expiration window or the requirement to submit tool outputs for a pending function call. - D is wrong because a new run would ask the same question again, generate the same function call, and land back in requires_action immediately; it never supplies the missing output either, it just repeats the failure.

Reference: Use Foundry Agent Service with function calling (classic)

Practice Test 9 ›

Study guides for AI-103

AI engineer roadmap 2026: skills, certs and the orderAI engineer roadmap for 2026: skills to learn in order, AI engineer vs ML engineer, which certifications fit each stage, and what to skip.
AI-200 exam guide: Azure AI Cloud Developer AssociateAI-200 replaced AZ-204: what the Azure AI Cloud Developer exam tests, how it differs from AI-103, price in USD and INR, format and how to prepare.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
AI-901 exam guide: Azure AI Fundamentals after AI-900AI-901 replaced AI-900: learn what changed, how much Python and Microsoft Foundry you need, exam costs in India, and how to prepare.
Best AI certifications 2026: AWS, Google, Microsoft, ClaudeThe best AI certifications in 2026 from AWS, Google, Microsoft, Claude and Databricks, by level, with price, status and which one to take first.
Microsoft AI certification path 2026: which exam firstMicrosoft AI certification path for 2026 - AI-901, AB-730, AI-103, AI-200, AI-300, AB-100, AI-500 and GH-300 by role, and which exam to take first.
AI-103 Certification Guide: What Changed From AI-102The AI-103 certification replaced AI-102 in 2026. Exam format, cost, the five skill domains, what changed and how to prepare, with free practice questions.
What Is RAG? How Retrieval-Augmented Generation WorksWhat RAG is and how it works: chunking, embeddings, vector search, hybrid search, reranking, GraphRAG and agentic RAG on AWS, Google and Azure.
Prompt engineering vs RAG vs fine-tuningWhen to use prompt engineering, retrieval-augmented generation, fine-tuning or continued pre-training, compared on cost, freshness, hallucination and privacy.