AI-102 Implement an agentic solution Practice Question
Exhibit
Refer to the exhibit.
{
"name": "MyAgent",
"configuration": {
"description": "Agent for IT support",
"instructions": "You are an IT support agent...",
"model": {
"provider": "azure_openai",
"name": "gpt-4",
"version": "1106-Preview"
},
"tools": [
{
"type": "function",
"function": {
"name": "reset_password",
"description": "Reset user password",
"parameters": {
"type": "object",
"properties": {
"username": {
"type": "string"
}
},
"required": ["username"]
}
}
},
{
"type": "function",
"function": {
"name": "get_user_info",
"description": "Get user information",
"parameters": {
"type": "object",
"properties": {
"user_id": {
"type": "string"
}
},
"required": ["user_id"]
}
}
}
],
"conversation_starters": [
"Reset my password"
],
"security": {
"authentication": {
"type": "api_key",
"api_key": "<key>"
}
}
}
}You are reviewing the configuration of an agent deployed via Azure AI Agent Service, as shown. The agent fails to authenticate when calling the reset_password function, which requires a token from Microsoft Entra ID. What is the most likely issue?
⚠ Common exam trap
Watch out — candidates often assume authentication failures are always due to missing permissions or incorrect function parameters, rather than recognizing that the authentication method itself (api_key vs. managed identity/OAuth) is the root cause when Entra ID tokens are required.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The agent's authentication is set to api_key instead of managed identity or OAuth
The agent's authentication is set to api_key instead of managed identity or OAuth. Azure AI Agent Service supports multiple authentication methods, but when calling a function that requires a token from Microsoft Entra ID (e.g., reset_password), the agent must use either a managed identity (for Azure resources) or OAuth 2.0 client credentials flow to obtain a valid token. Using an api_key does not provide the necessary Entra ID token, causing authentication failures for the function call.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The conversation_starters are preventing the agent from calling functions
Why it's wrong here
Conversation starters do not block function calls.
- ✓
The agent's authentication is set to api_key instead of managed identity or OAuth
Why this is correct
API key cannot authenticate to Microsoft Entra ID.
- ✗
The reset_password function is missing required parameters
Why it's wrong here
Parameters are correctly defined.
- ✗
The model version is outdated and does not support function calling
Why it's wrong here
Model supports function calling.
Go deeper
Related to this question
About these practice questions
This AI-102 question is part of Courseiva's 945-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-102 exam.