Courseiva
← Back to Microsoft Azure AI Engineer Associate AI-102 questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise Microsoft Azure AI Engineer Associate AI-102 practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

15
scenario questions
AI-102
exam code
Microsoft
vendor

Scenario guide

How to approach refer to the exhibit practice questions

Practise exhibit-style questions that ask you to read a topology, table, command output or diagram before choosing the best answer.

Quick answer

Exhibit-style questions test whether you can read a topology, command output, diagram or table before choosing the best answer.

How to extract the relevant detail from an exhibit.

How topology, command output or routing information affects the answer.

How to avoid answering from memory before reading the evidence.

How to map the exhibit back to the exam objective.

Related practice questions

Related AI-102 topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1hardmultiple choice
Full question →

You deploy the ARM template shown in the exhibit. After deployment, you need to allow access to the Language service from your on-premises application. What should you do?

Exhibit

Refer to the exhibit.

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "resources": [
    {
      "type": "Microsoft.CognitiveServices/accounts",
      "apiVersion": "2023-05-01",
      "name": "myLanguageService",
      "location": "[resourceGroup().location]",
      "sku": {
        "name": "S"
      },
      "kind": "TextAnalytics",
      "properties": {
        "customSubDomainName": "mylanguageservice",
        "networkAcls": {
          "defaultAction": "Deny"
        }
      }
    }
  ]
}
Question 2hardmultiple choice
Full question →

Refer to the exhibit. A developer is configuring a QnA Maker skill for a bot. The skill fails to respond to queries. What is the most likely issue?

Exhibit

{
  "name": "QnA-Maker-Skill",
  "description": "QnA Maker skill for FAQ",
  "modelUrl": "https://westus.api.cognitive.microsoft.com/qnamaker/v4.0",
  "endpointKey": "abc123",
  "kbId": "def456"
}
Question 3mediummultiple choice
Full question →

Refer to the exhibit. You are designing a Data Factory pipeline to perform sentiment analysis on a text column. The pipeline fails with a 'BadRequest' error. What is the most likely issue?

Exhibit

{
  "pipeline": {
    "name": "text-analytics-pipeline",
    "activities": [
      {
        "name": "AnalyzeSentiment",
        "type": "CognitiveService",
        "inputs": [{"name": "textColumn", "value": "@activity('GetData').output.text"}],
        "outputs": [{"name": "sentimentResult", "value": ""}],
        "linkedServiceName": "AzureAILanguageService"
      }
    ]
  }
}
Question 4mediummultiple choice
Full question →

Refer to the exhibit. You have trained an object detection model in Azure Custom Vision. The model is published as 'defect-model'. You need to deploy this model to a Docker container for on-premises inference using the Azure IoT Edge runtime. What should you do first?

Exhibit

{
  "customvision": {
    "project": {
      "name": "DefectDetection",
      "type": "ObjectDetection",
      "domain": "General",
      "exportable": true
    },
    "training": {
      "iteration": {
        "name": "Iteration 5",
        "publishName": "defect-model",
        "status": "Completed",
        "performance": {
          "precision": 0.85,
          "recall": 0.78,
          "mAP": 0.82
        }
      }
    }
  }
}
Question 5easymultiple choice
Full question →

You are designing a conversational AI solution using Microsoft Copilot Studio. The exhibit shows part of a topic configuration. What is the purpose of the 'triggers' section?

Exhibit

Refer to the exhibit.

{
  "displayName": "Support Bot",
  "triggers": [
    {
      "triggerType": "Utterance",
      "utterance": "I want to reset my password"
    }
  ],
  "actions": [
    {
      "actionType": "SendMessage",
      "message": "Please visit the password reset page."
    }
  ]
}
Question 6easymultiple choice
Full question →

Refer to the exhibit. You have this Azure AI Search indexer configuration. The indexer is failing after processing 6 documents that contain errors. What should you do to ensure the indexer continues processing even if some documents fail?

Exhibit

{
  "indexer": {
    "dataSourceName": "blob-datasource",
    "targetIndexName": "knowledge-index",
    "schedule": {
      "interval": "PT1H"
    },
    "parameters": {
      "batchSize": 10,
      "maxFailedItems": 5,
      "maxFailedItemsPerBatch": 5
    }
  }
}
Question 7hardmultiple choice
Full question →

Refer to the exhibit. A developer runs this PowerShell script to call Azure OpenAI. The script fails with an authentication error. What is the most likely cause?

Exhibit

Refer to the exhibit.

$response = Invoke-RestMethod -Uri "https://myfoundry.openai.azure.com/openai/deployments/gpt-4/chat/completions?api-version=2024-02-15-preview" -Method Post -Headers @{
    "Authorization" = "Bearer my-key"
} -Body (ConvertTo-Json @{
    messages = @(
        @{ role = "system"; content = "You are an AI assistant." },
        @{ role = "user"; content = "Tell me a joke." }
    )
    max_tokens = 50
    temperature = 0.7
})
Question 8mediummultiple choice
Full question →

Refer to the exhibit. You called the Named Entity Recognition API on a document. Which entity type is "Seattle"?

Exhibit

{
  "documents": [
    {
      "id": "1",
      "entities": [
        {
          "text": "Seattle",
          "type": "Location",
          "subtype": null,
          "offset": 14,
          "length": 7,
          "confidenceScore": 0.99
        },
        {
          "text": "Microsoft",
          "type": "Organization",
          "subtype": null,
          "offset": 30,
          "length": 9,
          "confidenceScore": 0.95
        }
      ],
      "warnings": []
    }
  ],
  "errors": []
}
Question 9easymultiple choice
Full question →

Refer to the exhibit. You are deploying a GPT-4 model using Azure OpenAI Service. The deployment uses the Standard scale type. Which statement is true about this deployment?

Exhibit

Refer to the exhibit. {
  "deploymentName": "gpt-4",
  "model": {
    "format": "OpenAI",
    "name": "gpt-4",
    "version": "0613"
  },
  "scaleSettings": {
    "scaleType": "Standard"
  }
}
Question 10hardmultiple choice
Full question →

Refer to the exhibit. You are configuring a system message for an Azure OpenAI deployment. The assistant is still generating harmful code despite the instruction. Which additional measure should you implement?

Exhibit

{
  "role": "system",
  "content": "You are an AI assistant that generates code. When asked to write code, always include comments explaining the code. If the user asks for something harmful, refuse and suggest an alternative."
}
Question 11hardmultiple choice
Full question →

Based on the exhibit, which entity should you focus on improving by adding more labeled examples?

Exhibit

Refer to the exhibit. You have the following JSON policy from an Azure AI Language custom entity extraction project evaluation:

{
  "evaluation": {
    "entities": {
      "ProductName": {
        "precision": 0.92,
        "recall": 0.65,
        "f1": 0.76
      },
      "OrderNumber": {
        "precision": 0.88,
        "recall": 0.90,
        "f1": 0.89
      },
      "Date": {
        "precision": 0.95,
        "recall": 0.85,
        "f1": 0.90
      }
    }
  }
}
Question 12hardmultiple choice
Full question →

Refer to the exhibit. You are calling the Azure AI Language API for entity linking. What is the primary purpose of this request?

Exhibit

{
  "kind": "EntityLinking",
  "parameters": {
    "modelVersion": "latest"
  },
  "analysisInput": {
    "documents": [
      {
        "id": "1",
        "language": "en",
        "text": "Microsoft Azure provides AI services."
      }
    ]
  }
}
Question 13hardmultiple choice
Full question →

You have configured a system message for an Azure OpenAI chat completion deployment as shown in the exhibit. Users are reporting that the assistant sometimes refuses to answer questions that are clearly within the scope of the provided data. What is the most likely issue?

Exhibit

Refer to the exhibit.
{
  "role": "system",
  "content": "You are an AI assistant that helps users find information. When you don't know the answer, say 'I don't know' and do not make up information."
}
Question 14hardmultiple choice
Full question →

Refer to the exhibit. You are using Azure AI Document Intelligence with a layout model. The pipeline returns an empty tables array even though the document contains tables. The OCR step extracts text correctly. What is the most likely issue?

Exhibit

{
  "pipeline": {
    "steps": [
      {
        "step": "1",
        "action": "OCR",
        "source": "document"
      },
      {
        "step": "2",
        "action": "Layout extraction",
        "source": "OCR output"
      },
      {
        "step": "3",
        "action": "Table extraction",
        "source": "Layout output"
      }
    ],
    "result": {
      "tables": []
    }
  }
}

Refer to the exhibit. You have created a Text Analytics resource and retrieved its keys. You want to use the key1 to call the Sentiment Analysis API from a Python application. Which endpoint URL should you use?

Network Topology
subscription MySubresource-group MyRGname MyTextAnalyticskind TextAnalyticsaz cognitiveservices account createsku Slocation westusyes"key1": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p","key2": "q1w2e3r4t5y6u7i8o9p0a1s2d3f4g5h6""endpoint": "https://mytextanalytics.cognitiveservices.azure.com/","properties": {"apiProperties": {"statisticsEnabled": true

These AI-102 practice questions are part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style AI-102 questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.