Question 1hardmultiple choice
Read the full Implement an agentic solution explanation →AI-102 Implement an agentic solution • Complete Question Bank
Complete AI-102 Implement an agentic solution question bank — all 0 questions with answers and detailed explanations.
Refer to the exhibit.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Agents/agent",
"apiVersion": "2024-12-01-preview",
"name": "my-agent",
"location": "eastus",
"properties": {
"displayName": "Customer Support Agent",
"description": "Agent for customer support",
"instructions": "You are a helpful assistant...",
"model": {
"format": "openai",
"name": "gpt-4o-mini",
"version": "2024-07-18"
},
"tools": [
{
"type": "code_interpreter",
"enabled": true
},
{
"type": "file_search",
"enabled": false
},
{
"type": "function",
"function": {
"name": "get_order_status",
"description": "Get order status by order ID",
"parameters": {
"type": "object",
"properties": {
"order_id": {
"type": "string"
}
},
"required": ["order_id"]
}
}
}
],
"conversation_starters": [
{
"text": "Check my order status"
}
]
}
}
]
}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>"
}
}
}
}Refer to the exhibit.
$agents = Get-AzAIAgent -ResourceGroupName 'rg-agent' -SubscriptionId 'sub-123'
foreach ($agent in $agents) {
if ($agent.Properties.Tools.Count -eq 0) {
Write-Output "Agent $($agent.Name) has no tools configured."
}
}{
"type": "Microsoft.Agents/agent",
"apiVersion": "2025-01-01-preview",
"properties": {
"displayName": "SupportAgent",
"description": "Agent for IT support",
"actions": [
{
"type": "conversation",
"id": "resetPassword",
"authentication": {
"type": "ManagedIdentity",
"resourceId": "/subscriptions/.../userAssignedIdentities/support-identity"
},
"parameters": {
"endpoint": "https://graph.microsoft.com/v1.0/users/{userId}/resetPassword",
"method": "POST"
}
}
],
"knowledgeStores": [
{
"type": "azureAISearch",
"connectionReference": "search-connection"
}
]
}
}{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Agents/agent",
"apiVersion": "2025-01-01-preview",
"name": "MyAgent",
"properties": {
"displayName": "MyAgent",
"model": {
"provider": "AzureOpenAI",
"name": "gpt-4o-mini",
"version": "2024-07-18"
},
"actions": [
{
"type": "openApi",
"id": "weatherApi",
"authentication": {
"type": "ApiKey",
"keyName": "x-functions-key",
"keyValue": "[listKeys(resourceId('Microsoft.Web/sites/functions', 'MyFunctionApp'), '2022-03-01').functionKeys.default]"
},
"parameters": {
"url": "https://myfunctionapp.azurewebsites.net/api/weather"
}
}
]
}
}
]
}{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Agents/agent",
"apiVersion": "2025-01-01-preview",
"name": "MyAgent",
"properties": {
"displayName": "MyAgent",
"model": {
"provider": "AzureAI",
"name": "gpt-4o"
},
"actions": [
{
"type": "openApi",
"id": "weatherApi",
"authentication": {
"type": "ManagedIdentity",
"resourceId": "[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', 'agent-identity')]"
},
"parameters": {
"url": "https://api.weather.example.com/current"
}
}
]
}
}
]
}Refer to the exhibit.
{
"assistant_id": "asst_abc123",
"model": "gpt-4o",
"tools": [
{
"type": "code_interpreter",
"enabled": true
},
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather for a location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA"
}
},
"required": ["location"]
}
}
}
]
}Refer to the exhibit.
{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "What is the weather in Seattle?"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get weather",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string"
}
},
"required": ["location"]
}
}
}
],
"tool_choice": "auto"
}Refer to the exhibit.
{
"assistant_id": "asst_xyz",
"instructions": "You are a helpful assistant. When asked about weather, call the get_weather function.",
"tools": [
{
"type": "code_interpreter"
},
{
"type": "function",
"function": {
"name": "get_weather",
"strict": true,
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string"
}
},
"required": ["location"]
}
}
}
],
"tool_resources": {
"code_interpreter": {
"file_ids": []
}
}
}