Free AI-103 practice test

20 questions for the Microsoft Azure AI Apps and Agents Developer Associate (AI-103) exam, taken from our 350-question bank and spread across its 5domains by their weighting. No sign-up needed: pick an answer to check it, or open “Show answer & explanation” under any question.

What this test covers

Question 1 · Plan and manage an Azure AI solution

A startup is building a conversational AI assistant using Azure AI Foundry. The team wants to quickly prototype using a pre-trained large language model without any custom training data. The assistant must answer general business questions and summarize documents. Which approach best fits this scenario?

Show answer & explanation

Correct answer: B

  • B. Use prompt engineering with a pre-trained Azure OpenAI model, crafting system prompts to guide behavior.

Prompt engineering with a pre-trained model is the fastest, lowest-cost starting point when no custom training data exists and the task is general-purpose. It requires no training pipeline or labeled data. Fine-tuning (C) requires labeled examples and additional cost, which is unnecessary here. Training from scratch (D) is impractical for a startup with no training infrastructure or data. RAG (A) adds architectural complexity and requires a document index; it is valuable but not the simplest first choice when the task is already general and no specific knowledge base is mandated.

Question 2 · Plan and manage an Azure AI solution

An AI engineer is configuring Azure AI Content Safety for a children's educational platform powered by Azure OpenAI. The platform must block all sexual content at any severity and block violent content only when it is graphically detailed (high severity). Which configuration correctly reflects these requirements?

Show answer & explanation

Correct answer: B

  • B. Set Sexual content filter threshold to Low; set Violence content filter threshold to High.

In Azure AI Content Safety, a lower severity threshold means the filter triggers (blocks) content at lower severity levels, providing stricter filtering. Setting Sexual to Low blocks all sexual content (even mild). Setting Violence to High means only high-severity (graphic) violent content is blocked, allowing lower-severity content to pass—matching the requirement. Option D reverses the thresholds, which would allow low-severity sexual content (incorrect for a children's platform) and block even low-severity violence. Option C disables sexual filtering entirely, which is unacceptable. Option A sets both to Low, which would block even mild violence references—more restrictive than the stated requirement for violence.

Question 3 · Plan and manage an Azure AI solution

A developer is configuring Azure AI Content Safety for a general-purpose Azure OpenAI assistant. They want to ensure that any user input or model output categorized as 'Hate' content at ANY severity level is blocked. Which severity threshold setting achieves this?

Show answer & explanation

Correct answer: B

  • B. Set the 'Hate' filter action to 'Block' at severity level 'Low', which also blocks Medium and High severity content.

Azure AI Content Safety severity thresholds work cumulatively: setting the block threshold to 'Low' means content rated Low, Medium, or High severity for that category will all be blocked. This ensures no Hate content at any severity level passes through, which is what the developer requires. Option A is incorrect: blocking only at 'High' severity would allow Low and Medium severity Hate content to pass, which violates the requirement. Option D is incorrect: the 'Annotate' action flags content in the API response metadata but does not block it — flagged content is still returned to the application, so harmful content would not be stopped. Option C is incorrect: the default content filter profile in Azure OpenAI blocks Hate content at 'Medium' and 'High' severity by default, not 'Low'; Low-severity Hate content would pass through under the default configuration, so the default profile does not meet the stated requirement.

Question 4 · Plan and manage an Azure AI solution

A company is building a multi-region Azure AI Foundry solution with hubs in East US and West Europe. A central platform team manages all Azure OpenAI deployments, while regional product teams consume them. Which Azure RBAC role assignment grants a regional product team the ability to consume (call) deployed Azure OpenAI models without allowing them to create or delete deployments?

Show answer & explanation

Correct answer: D

  • D. Cognitive Services OpenAI User at the Azure OpenAI resource scope.

The 'Cognitive Services OpenAI User' role grants permissions to call Azure OpenAI inference endpoints (completions, embeddings) but does NOT allow creating, modifying, or deleting deployments or fine-tuned models—exactly matching the requirement. 'Cognitive Services OpenAI Contributor' (A) includes permissions to create and manage deployments, which exceeds the requirement. 'Azure AI Developer' at hub scope (B) is broader, granting project-level development permissions across AI Foundry resources, not just inference consumption. 'Cognitive Services Contributor' at subscription scope (C) is far too broad, granting management-plane write permissions across all Cognitive Services in the subscription.

Question 5 · Plan and manage an Azure AI solution

A manufacturing company is building a quality-control assistant using Azure AI Foundry. The assistant analyzes sensor logs and maintenance reports stored in Azure Blob Storage to answer technician questions. The data is highly specialized and not covered by general LLM pre-training. The company has 500 labeled question-answer pairs from domain experts. Which approach should the architect recommend?

Show answer & explanation

Correct answer: B

  • B. RAG with Azure AI Search indexing the sensor logs and maintenance reports, so the model retrieves relevant context at query time.

RAG is the best fit: the knowledge base (sensor logs and maintenance reports) is large, specialized, and needs to stay current as new reports are added. RAG retrieves exact passages, reducing hallucination on factual technical content. Prompt engineering alone (C) cannot surface specific sensor log data at inference time. Fine-tuning alone (A) bakes knowledge into weights at training time; it cannot incorporate new reports without retraining and risks hallucinating specifics. The combined approach (D) is legitimate in advanced scenarios but is more complex than necessary here, and fine-tuning on only 500 pairs for formatting purposes adds cost and maintenance overhead without clear benefit over RAG alone.

Question 6 · Plan and manage an Azure AI solution

A healthcare analytics company is planning an Azure AI Foundry deployment. The compliance team requires that the Azure OpenAI Service endpoint must never be reachable over the public internet, and all data must stay within the corporate virtual network. Which TWO configuration steps are REQUIRED to satisfy this requirement? (Choose TWO)

Select 2 answers.

Show answer & explanation

Correct answers: D, E

  • D. Disable the public network access setting on the Azure OpenAI resource.
  • E. Create a private endpoint for the Azure OpenAI resource within the corporate VNet.

To prevent public internet access to Azure OpenAI, two steps are required: (1) Disabling public network access on the resource ensures no traffic is accepted from public IP addresses. (2) Creating a private endpoint in the corporate VNet provides a private IP address within the VNet so applications can reach the service over the private network. Together, these two steps ensure data never leaves the corporate network. CMK (option C) is an encryption-at-rest feature for data confidentiality — it does not control network access paths. Blocking port 443 via NSG (option B) would break HTTPS connectivity entirely, including from within the VNet, and NSGs operate at the subnet level for VM traffic — not for PaaS service endpoints. RBAC role assignment (option A) controls who can call the API but does not restrict network routing.

Question 7 · Implement generative AI and agentic solutions

A developer integrates an OpenAPI tool into an Azure AI Foundry agent pointing to an external logistics REST API. During testing, the agent successfully calls the API in development, but calls fail in production with authentication errors. The production API requires OAuth 2.0 client credentials. What is the correct way to configure authentication for the OpenAPI tool in the Foundry Agent Service?

Show answer & explanation

Correct answer: A

  • A. Store the client credentials in Azure Key Vault and reference them via a managed identity connection in the tool configuration

Storing credentials in Azure Key Vault and referencing them via a managed identity connection is the correct approach. Azure AI Foundry Agent Service supports configuring authentication for OpenAPI tools using connections that leverage managed identity, keeping secrets out of code and specifications. Hard-coding the client secret in the OpenAPI spec is a critical security risk and an anti-pattern that violates least-privilege principles. Passing a Bearer token through the system prompt is fragile, insecure, and not a supported authentication mechanism for tool-level API calls. Using a custom function tool to retrieve and pass a token adds unnecessary complexity and still requires secure secret storage, which managed identity connections already handle natively.

Question 8 · Implement generative AI and agentic solutions

An Azure AI Foundry agent uses an OpenAPI tool connected to an external shipping carrier's API. During testing, the agent occasionally calls an endpoint (DELETE /shipments/{id}) that should never be invoked by the agent. How should the developer restrict which endpoints the agent can call?

Show answer & explanation

Correct answer: C

  • C. Remove all DELETE operations from the OpenAPI specification provided to the agent tool, leaving only the permitted endpoints.

The agent can only invoke endpoints that are described in the OpenAPI specification provided to the tool. Removing the DELETE operation from the spec structurally prevents the agent from ever calling it, regardless of model behavior. System prompt instructions (D) are soft guardrails and can be bypassed through prompt injection or model errors—they do not provide a hard constraint. API Management filtering (B) can serve as a defense-in-depth layer but requires additional infrastructure and does not prevent the agent from attempting the call; a hard block in the spec is simpler and more reliable. Content filters (A) operate on text content, not on HTTP method routing, and cannot block specific API operations.

Question 9 · Implement generative AI and agentic solutions

A product team is deciding between prompt engineering with RAG versus fine-tuning to adapt an Azure OpenAI model for a new internal HR chatbot. The HR chatbot needs to answer questions using a 500-page employee handbook that is updated quarterly. Which approach is most appropriate, and why?

Show answer & explanation

Correct answer: A

  • A. RAG with Azure AI Search, because the handbook is a discrete, updatable document corpus that can be re-indexed quarterly without retraining the model

RAG is the correct choice here. The handbook is a discrete, authoritative document corpus that changes quarterly—RAG allows the index to be refreshed without retraining the model, keeping answers current at low cost and effort. Fine-tuning embeds knowledge into model weights during training; when the handbook is updated quarterly, the model would need to be retrained each time, which is expensive and slow. Fine-tuning is better for teaching style, format, or behavior—not for injecting frequently changing factual knowledge. RAG can handle large corpora far exceeding the context window via chunking and retrieval—it is not limited to context-window-sized documents. While large context models can accept long documents, placing a 500-page handbook in every system prompt is prohibitively expensive in tokens, slow, and impractical for production use.

Question 10 · Implement generative AI and agentic solutions

You are building a RAG solution with Azure AI Search. You want search results to combine the strengths of both keyword matching and semantic vector similarity, without requiring a dedicated semantic ranker configuration. Which search mode should you enable?

Show answer & explanation

Correct answer: A

  • A. Hybrid search (keyword + vector)

Hybrid search in Azure AI Search fuses BM25 keyword scores with vector similarity scores using Reciprocal Rank Fusion (RRF), combining the strengths of both approaches without requiring the additional semantic ranker configuration. Pure vector search ignores keyword signals and can miss exact-term matches. Full-text (BM25) search only ignores vector similarity and performs poorly on paraphrased or conceptually similar queries. Semantic ranker with vector search does provide re-ranking but requires explicit semantic configuration and adds latency/cost beyond what the question asks for.

Question 11 · Implement generative AI and agentic solutions

A developer is calling the Azure OpenAI chat completions API and wants to stream the response so that tokens are displayed to the user as they are generated. Which parameter must be set in the API request body to enable streaming?

Show answer & explanation

Correct answer: B

  • B. "stream": true

Setting "stream": true in the chat completions request body instructs the API to return server-sent events (SSE), delivering tokens incrementally as they are generated. "async": true is not a valid Azure OpenAI API parameter; asynchronous behavior is handled client-side by the SDK. "incremental": true is not a recognized parameter in the Azure OpenAI API. "output_mode": "stream" is also not a valid Azure OpenAI API field — this is a common misconception.

Question 12 · Implement generative AI and agentic solutions

An Azure AI Foundry agent is configured with a custom function tool named check_inventory. During a Run, the model decides to call this tool. A developer observes that the Run enters a status of requires_action. What must the developer's application do next to allow the Run to continue?

Show answer & explanation

Correct answer: A

  • A. Submit the tool output using the submit_tool_outputs endpoint, referencing the tool call ID

Submitting tool outputs via the submit_tool_outputs endpoint is correct. When a Run reaches requires_action status, the application must call the submit tool outputs API, providing the tool call ID returned by the model and the result of executing the function. This is the designed handshake that allows the Run to proceed. Deleting and recreating the Run is incorrect because that would lose conversation context and is not the intended workflow. Adding the tool output as a new user message is incorrect; that would corrupt the conversation structure — tool outputs must be submitted through the dedicated tool output mechanism. Updating the Agent definition is incorrect; the Agent definition is for static configuration such as instructions and available tools, not for passing runtime function results.

Question 13 · Implement generative AI and agentic solutions

You are designing a multi-agent system in Azure AI Foundry. A primary orchestrator agent must delegate sub-tasks to two specialist agents: a DataAnalystAgent and a ReportWriterAgent. The orchestrator needs to pass structured outputs from the DataAnalystAgent as inputs to the ReportWriterAgent before producing a final response. Which orchestration pattern best describes this design?

Show answer & explanation

Correct answer: A

  • A. Sequential pipeline pattern

Sequential pipeline pattern is correct because tasks are executed in a defined order — the DataAnalystAgent runs first, its output is passed to the ReportWriterAgent, and only then is the final response produced. This linear dependency chain is the hallmark of a sequential pipeline. Fan-out / Fan-in is incorrect because that pattern dispatches tasks to multiple agents in parallel and then aggregates results; there is no dependency between the parallel tasks. Competing consumers is a messaging pattern where multiple workers compete to process items from a queue, which is unrelated to the described design. Event-driven reactive pattern involves agents acting autonomously in response to events, not the deterministic step-by-step handoff described.

Question 14 · Implement computer vision solutions

A retailer wants to use Azure Content Understanding to extract structured visual characteristics — such as dominant colors, detected brand logos, and product category — from a large batch of catalog images, and wants a single configured pipeline to consistently apply the same extraction schema across all images. Which processing approach is MOST appropriate?

Show answer & explanation

Correct answer: B

  • B. A pro-mode Content Understanding pipeline defined once with a consistent extraction schema and reused across the batch

A pro-mode Content Understanding pipeline lets you define a reusable, structured extraction schema (colors, logos, category) once and apply it consistently across a batch, which is exactly the stated need for uniform structured extraction at scale. Option A describes ad hoc, per-image prompting without a consistent schema, which risks inconsistent output across the catalog. Option C does not scale and is not an Azure AI capability. Option D is the wrong modality — it processes audio, not visual catalog images.

Question 15 · Implement computer vision solutions

A team must choose between a single-task and a pro-mode Content Understanding pipeline for a new project extracting five different structured fields (product name, price, condition, category, and defect notes) from images of used goods. Which choice is MOST appropriate, and why?

Show answer & explanation

Correct answer: C

  • C. Pro-mode pipeline, because it supports defining a consistent multi-field structured extraction schema in one pass

Pro-mode Content Understanding is designed for defining a structured, multi-field extraction schema applied consistently in one pipeline, which matches the need to pull five related fields per image reliably. Option A undersells single-task mode's fit — it targets one narrow objective, making it a poor match for five simultaneous fields. Option D reintroduces fragile brittle parsing logic that Content Understanding is meant to replace. Option B would technically work but is inefficient and loses the benefit of one consistent schema, unlike the pro-mode pipeline in option C.

Question 16 · Implement computer vision solutions

A marketing team wants to generate a series of product hero images from short text prompts, then produce a short promotional video from the best image using the same visual style. Which pairing of capabilities BEST fits this workflow?

Show answer & explanation

Correct answer: C

  • C. Text-to-image generation to produce the still, then image-to-video generation seeded from that still

Text-to-image generation creates the still from the prompt, and image-to-video (video generation seeded with a reference image) carries the same subject and style into motion — this is the standard two-stage generative workflow. Content Understanding (option B) is an extraction/analysis capability for understanding existing content, not a generation service, so it cannot synthesize new stills or video. Option D misapplies speech-to-text, which has nothing to do with image generation from a prompt. Option A is a retrieval task, not generation, and does not meet the requirement to create new promotional media.

Question 17 · Implement text analysis solutions

A support ticketing system wants to automatically detect the language of an incoming ticket and route it to the correct queue, while also translating a short preview snippet into English for triage staff. Which approach BEST fits both needs?

Show answer & explanation

Correct answer: A

  • A. Azure Translator (or an LLM-powered translation flow) to detect language and produce the English preview snippet

Translation services such as Azure Translator (or an LLM-powered flow) typically support language detection alongside translation, making them well suited to both routing by detected language and producing an English preview. Option B misapplies sentiment detection, which analyzes tone, not language identity or translation. Option D produces audio, not a text preview, and does not address routing. Option C extracts only product entities and provides no language detection or translation capability.

Question 18 · Implement text analysis solutions

A telehealth platform wants patients to speak their symptoms, have the system reason over the audio to summarize likely symptom categories for a nurse, and separately maintain a full audio-derived transcript for the medical record. Which set of capabilities is required together?

Show answer & explanation

Correct answer: B

  • B. Multimodal reasoning over audio for the symptom summary, plus speech-to-text for the full transcript record

Multimodal reasoning from the audio can directly produce the symptom-category summary, while speech-to-text separately produces the full transcript needed for the medical record — these are complementary capabilities serving different outputs. Option A misapplies text-to-speech, which converts text to audio, the opposite direction of what's needed here, and it does neither summarization nor transcription. Option D assumes away the multilingual reality and does not perform summarization or transcription. Option C substitutes an unrelated visual capability for what is fundamentally an audio-content task.

Question 19 · Implement information extraction solutions

A team building a RAG pipeline for internal support agents wants Content Understanding to produce a clean, grounded representation of each source document that downstream retrieval and generation steps can consume reliably, rather than raw noisy OCR output. Which capability addresses this need?

Show answer & explanation

Correct answer: A

  • A. Content Understanding analyzers producing structured or markdown output specifically intended for clean, grounded downstream reasoning

Content Understanding analyzers that produce structured or markdown output are specifically designed to give downstream retrieval and generation steps a clean, grounded representation, reducing noise compared to raw extraction output. Option B retains OCR noise and artifacts, which is exactly the problem the scenario wants solved. Option D is unrelated to producing clean structured representations. Option C misapplies a video-specific capability to static document pages.

Question 20 · Implement information extraction solutions

A document ingestion pipeline for a RAG system currently chunks PDF text purely by fixed character count, which sometimes splits a table or a key clause mid-sentence across chunks, degrading retrieval quality. Which improvement addresses this specific problem?

Show answer & explanation

Correct answer: B

  • B. Use layout-aware analysis/chunking so structural elements like tables and clauses are less likely to be split arbitrarily across chunk boundaries

Layout-aware analysis informs chunking so that structural elements (tables, sections, clauses) are respected as boundaries rather than split arbitrarily by a fixed character count, directly addressing the described degradation in retrieval quality. Option A is unrelated — sentiment detection does not perform chunking or affect retrieval at all. Option D is a near-miss that may reduce the frequency of mid-structure splits somewhat but does not address the root cause, since a large fixed count can still split content awkwardly; it is not a considered structural fix. Option C would exclude a large portion of valid, useful content from the index.

Pick an answer on each question to check it. 20 questions in this test.

330 more AI-103 questions

Sign up free to start practising, or subscribe (from $4.97/mo) for the full 350-question bank, flashcards and timed mock exams.

Microsoft Azure AI Apps and Agents Developer Associate course overview and study guides →