Microsoft certification · Exam AI-103

AI-103 Mock Exam

Developing AI Apps and Agents on Azure

Free AI-103 questions on Topic 1: Case Study Contoso, Ltd, each with the answer and an explanation.

20 questions · 40 minutes · free, no sign-up

Topic 1: Case Study Contoso, Ltd questions

1–2 of 2 free
Question 1 Choose 1
You need to recommend a solution to support the planned changes and technical requirements for Agent1 to use the product information stored in storage1. What should you include in the recommendation?
Show answerHide answer

Correct answer: A Azure Al Search

Explanation

Explanation:

This question evaluates how to enable an Azure AI agent to retrieve proprietary product data from Azure Storage for grounded responses. It focuses on knowledge integration and retrieval patterns in agentic solutions.

✅ Correct Option:

A. Azure AI Search
Include Azure AI Search to index content from storage1. It supports hybrid/vector search, connects directly to Blob Storage as a data source, and integrates with Foundry agents via tools or knowledge bases. This enables efficient, relevant retrieval of product information for Agent1 in RAG or agent workflows.

❌ Incorrect options:

B. Azure Translator in Foundry Tools
This service translates text between languages. It offers no capabilities for indexing, searching, or retrieving data from storage.

C. Azure Document Intelligence in Foundry Tools
This tool extracts text and structure from documents during preprocessing. It does not handle search or agent retrieval of stored product data.

D. Grounding with Bing Search
This grounds agents with public web results. It cannot access private data in storage1 and is limited to external internet content.

🔧 Reference:
→ Microsoft Learn - File search tool for agents
Confirms Azure AI Search with storage for agent knowledge retrieval.
Question 2
You need to ensure that Agent1Dev Team can access Agent1. The solution must meet the security and compliance requirements. How should you complete the Python code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Show answerHide answer

Explanation



Explanation:

This question tests your understanding of authenticating with the Azure AI Foundry SDK and retrieving an existing agent. The solution must meet security and compliance requirements, which means using Microsoft Entra ID (formerly Azure AD) authentication. It also tests knowledge of the correct method to retrieve an agent by name from the AgentsOperations class.

✔️ Credential: DefaultAzureCredential()
DefaultAzureCredential is the recommended authentication method for Azure SDK clients as it supports Microsoft Entra ID, meeting security and compliance requirements. It attempts multiple credential sources (environment variables, Azure CLI, managed identity) automatically, making it suitable for development and production environments without hardcoding keys.

❌ Credential: AzureKeyCredential()
This uses an API key for authentication, which does not meet the security and compliance requirements for agent access as the question states Entra ID is needed. The Azure AI Projects SDK expects a TokenCredential type, making AzureKeyCredential incompatible with the AIProjectClient constructor.

❌ Credential: None
Passing None as the credential parameter will cause the SDK to fail to authenticate. The AIProjectClient requires a valid TokenCredential object such as DefaultAzureCredential to establish a connection to the Azure AI Foundry project endpoint.

❌ Credential: The dictionary/map syntax
The dictionary format shown in the second image is syntactically invalid for credential assignment. The credential parameter expects a single TokenCredential object directly, not a dictionary or map containing credential objects.

✔️ Agent retrieval method: get
The get method of the AgentsOperations class retrieves an existing agent by its name, which is exactly what the code needs to do with myAgent = "Agent1". It takes agent_name as a required parameter and returns AgentDetails containing the agent's properties.

❌ Agent retrieval method: get_version
The get_version method requires both agent_name and agent_version parameters to retrieve a specific version of an agent. Since the code does not specify a version number and the requirement is simply to access Agent1, this method is inappropriate for the scenario.

❌ Agent retrieval method: create_version
The create_version method is used to create a new agent or a new version of an existing agent, not to retrieve an existing one. Using this would either create a duplicate agent or fail if the agent already exists, which does not satisfy the requirement to access Agent1.

🔧 Reference:
→ AgentsOperations.get method - Learn Microsoft: This reference confirms get retrieves the agent by name and get_version requires an additional version parameter.

That's the last free question in Topic 1: Case Study Contoso, Ltd

You've seen the free 30% (2 of 7 questions). Full access unlocks every question and full-length AI-103 mock exams (60 questions, 120 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the AI-103 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real AI-103 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full AI-103 mock exam
  • 60questions per mock
  • 120 mintime limit
  • 95questions in the bank
  • Newmock on every attempt