‹ All AI-103 questions

AI-103 Practice Question 46: Parallel Tool Call Handling

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

Implement generative AI and agentic solutionsmedium

An application defines get_weather and get_traffic as tools on a chat completions deployment. A user asks: "What's the weather and traffic like in Seattle and in Denver?" The model's response comes back with four entries in the tool_calls array, each with its own id, instead of one call at a time.

What should the application do next?

Select one answer
Show answer and explanation

Answer:

  • A. Execute all four tool calls, then send one follow-up request containing four tool result messages, each carrying the matching tool_call_id

Parallel tool calling lets a model "perform multiple function calls together, allowing for parallel execution and retrieval of results." The correct handling is to iterate through every entry in tool_calls, execute each one, and add one tool-role message per result to the conversation, with each message's tool_call_id matching the id the model assigned to that call, before sending the conversation back for a final response.

- B is wrong because the model asked four questions across two tools and two cities; ignoring three of the four calls leaves the application without the data it needs to answer the user completely. - C is wrong because parallel tool calls are valid, intended behavior for a deployment that supports them; forcing single-call turns discards the latency benefit parallel calling exists to provide, and there's nothing invalid about the response to reject. - D is wrong because correlating each result back to its call depends on returning it as its own message with the matching tool_call_id; this matters most here, since two of the four calls invoke the same function (get_weather for two different cities) and would be indistinguishable without their ids.

Reference: How to use function calling with Microsoft Foundry Models

Practice Test 5 ›

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.