Microsoft

AI-102 Free Practice Questions

This is the free Microsoft AI-102 practice question bank — 140 of 278 total questions, each with a full explanation, free to read with no signup required. Updated 2026-04-24.

Every answer is verified against official Microsoft documentation — see our methodology.

Question 1

DRAG DROP - You have an Azure subscription that contains an Azure OpenAI resource named AI1. You plan to build an app named App1 that will write press releases by using AI1. You need to deploy an Azure OpenAI model for App1. The solution must minimize development effort. Which three actions should you perform in sequence in Azure OpenAI Studio? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Illustration for AI-102 question 1
Show Answer
Correct Answer: Create a deployment that uses the GPT-35 Turbo model. Apply the Marketing Writing Assistant system message template. Deploy the solution to a new web app.
Explanation:
GPT‑35 Turbo is suitable for text generation like press releases. Using the Marketing Writing Assistant template minimizes prompt design effort. Deploying to a web app completes the end-to-end solution with minimal development.

Question 2

You have the following Python function. You call the function by using the following code. my_function(text_analytics_client, "the quick brown fox jumps over the lazy dog") Following 'Key phrases', what output will you receive?

A. The quick - The lazy
B. jumps over the
C. quick brown fox lazy dog
D. the quick brown fox jumps over the lazy dog
Show Answer
Correct Answer: C
Explanation:
Azure Text Analytics key phrase extraction removes stop words and returns the most relevant noun phrases rather than full sentences. For the sentence provided, common words like "the" and verbs are dropped, leaving the main content terms: "quick brown fox" and "lazy dog", which together match option C.

Question 2

HOTSPOT - You have an Azure subscription that contains an Azure OpenAI resource named AI1. You build a chatbot that will use AI1 to provide generative answers to specific questions. You need to ensure that the responses are more creative and less deterministic. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AI-102 question 2
Show Answer
Correct Answer: ChatRole.User Temperature
Explanation:
To generate more creative and less deterministic responses, the request should include the user's prompt using the User role, and the randomness of the model’s output should be increased by setting the Temperature parameter (for example, to 1.0).

Question 3

You are developing a text processing solution. You have the following function. You call the function and use the following string as the second argument. Our tour of London included a visit to Buckingham Palace What will the function return?

A. London and Buckingham Palace only
B. Tour and visit only
C. London and Tour only
D. Our tour of London included visit to Buckingham Palace
Show Answer
Correct Answer: A
Explanation:
The function uses TextAnalyticsClient.RecognizeEntities to extract named entities (proper nouns such as locations). In the sentence, the recognized entities are the place names "London" and "Buckingham Palace". Common nouns like "tour" and "visit" are not returned, so only those two entities are output.

Question 3

HOTSPOT - You are developing a text processing solution. You develop the following method. You call the method by using the following code. get_key_phrases(text_analytics_client, "the cat sat on the mat") For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for AI-102 question 3 Illustration for AI-102 question 3
Show Answer
Correct Answer: Yes No No
Explanation:
The method prints extracted key phrases to the console. Key phrase extraction does not return every word; stop words like "the" and simple verbs/prepositions are excluded. The code only prints key phrase strings and does not output confidence scores.

Question 4

HOTSPOT - You have 1,000 scanned images of hand-written survey responses. The surveys do NOT have a consistent layout. You have an Azure subscription that contains an Azure AI Document Intelligence resource named AIdoc1. You open Document Intelligence Studio and create a new project. You need to extract data from the survey responses. The solution must minimize development effort. To where should you upload the images, and which type of model should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AI-102 question 4
Show Answer
Correct Answer: Upload to: An Azure Storage account Model type: Custom neural
Explanation:
Document Intelligence Studio uses Azure Storage for uploading and managing large sets of documents with minimal setup. Because the surveys are handwritten and have no consistent layout, a Custom neural model is best suited; it handles unstructured documents and handwriting without requiring fixed templates, minimizing development effort.

Question 4

HOTSPOT - You create a knowledge store for Azure Cognitive Search by using the following JSON. Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic. NOTE: Each correct selection is worth one point.

Illustration for AI-102 question 4 Illustration for AI-102 question 4
Show Answer
Correct Answer: two projection groups be projected to Azure Blob storage
Explanation:
The JSON contains two projection groups inside the projections array: one with table projections and a second with object projections. Object projections with storageContainer create blobs in Azure Blob Storage, so the normalized image text outputs are projected there.

Question 5

You have an Azure DevOps pipeline named Pipeline1 that is used to deploy an app. Pipeline1 includes a step that will create an Azure AI services account. You need to add a step to Pipeline1 that will identify the created Azure AI services account. The solution must minimize development effort. Which Azure Command-Line Interface (CLI) command should you run?

A. az resource link
B. az cognitiveservices account network-rule
C. az cognitiveservices account show
D. az account list
Show Answer
Correct Answer: C
Explanation:
To identify an Azure AI (Cognitive Services) account created earlier in the pipeline with minimal effort, you should retrieve its details. The `az cognitiveservices account show` command is designed to display information about a specific Cognitive Services account, making it the correct choice. The other options either manage networking, link resources, or list Azure subscriptions rather than identifying a Cognitive Services account.

Question 5

You have a Speech resource and a bot that was built by using the Microsoft Bot Framework Composer. You need to add support for speech-based channels to the bot. Which three actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A. Configure the language and voice settings for the Speech resource.
B. Add the endpoint and key of the Speech resource to the bot.
C. Add language understanding to dialogs.
D. Add Orchestrator to the bot.
E. Add Speech to the bot responses.
F. Remove the setSpeak configuration.
Show Answer
Correct Answer: A, B, E
Explanation:
To add speech-based channel support to a Bot Framework Composer bot, you must connect it to an Azure Speech resource and enable spoken input/output. This requires configuring the Speech resource language and voice (A), providing the Speech resource endpoint and key so the bot can use speech-to-text and text-to-speech services (B), and adding speech (speak) responses in the bot so it can return spoken output on speech-enabled channels (E). The other options are not required for enabling speech channels.

Question 6

You have an Azure subscription that contains an Azure AI Content Safety resource named CS1. You plan to build an app that will analyze user-generated documents and identify obscure offensive terms. You need to create a dictionary that will contain the offensive terms. The solution must minimize development effort. What should you use?

A. a text classifier
B. language detection
C. text moderation
D. a blocklist
Show Answer
Correct Answer: D
Explanation:
Azure AI Content Safety supports blocklists, which let you define and manage a custom dictionary of offensive or sensitive terms. This directly meets the requirement to identify obscure offensive terms while minimizing development effort, since no custom model training or complex logic is required.

$19

Get all 278 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.