Free Microsoft AI-102 Practice Test & Real Exam Questions

  • Exam Code/Number: AI-102
  • Exam Name/Title: Designing and Implementing a Microsoft Azure AI Solution
  • Certification Provider: Microsoft
  • Corresponding Certification: Azure AI Engineer Associate
  • Exam Questions: 416
  • Updated On: Jun 24, 2026
You are developing a text processing solution.
You have the function shown below.
Correct Answer:

Explanation:
The output will include the following words: our and included. # No
The output will include the following words: Paris, Eiffel, and Tower. # Yes The function will output all the key phrases from the input string to the console. # No Comprehensive Detailed Explanation Let's examine the function:
static void GetKeyWords ( TextAnalyticsClient textAnalyticsClient, string text)
{
var response = textAnalyticsClient.RecognizeEntities(text);
Console.WriteLine( " Key words: " );
foreach (CategorizedEntity entity in response.Value)
{
Console.WriteLine( $ " {entity.Text} " );
}
}
The function uses RecognizeEntities from the Azure Text Analytics SDK.
RecognizeEntities detects and categorizes named entities in text (such as locations, people, organizations, dates, etc.).
It does not extract all words or key phrases.
For extracting key phrases, you would use ExtractKeyPhrases , not RecognizeEntities .
Evaluating the statements:
" The output will include the following words: our and included. "
These are common words, not entities. They will not appear.
The answer: No
" The output will include the following words: Paris, Eiffel, and Tower. " These are named entities (location, landmark). They will be recognized and returned.
The answer: Yes
" The function will output all the key phrases from the input string to the console. " No. The function extracts entities, not key phrases. Key phrases would require ExtractKeyPhrases .
The answer: No
You have a 20-GB file named file1, avi that is stored on a local drive.
You need to index file1, avi by using the Azure Video indexer website.
What should you do first?
Correct Answer: B Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
You have an Azure subscription that contains a Content Safety in Foundry Control Plane resource.
You are building a social media messaging app.
You need to build a solution that will analyze messages and flag messages that contain explicit content.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:
You have an Azure subscription that contains an Azure Al Content Safety resource.
You are building a social media app that will enable users to share images.
You need to configure the app to moderate inappropriate content uploaded by the users.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:

The question describes:
An Azure subscription with an Azure AI Content Safety resource.
A social media application where users can upload images.
The requirement is to moderate inappropriate content in those uploaded images.
In Azure AI Content Safety SDKs:
You create a ContentSafetyClient by providing the endpoint and key.
The ContentSafetyClient exposes methods such as:
AnalyzeText() # For text moderation
AnalyzeImage() # For image moderation
Let's review the code structure:
public static void Analyze ( AnalyzeImageOptions request )
{
var endpoint = Environment.GetEnvironmentVariable( " ENDPOINT " );
var key = Environment.GetEnvironmentVariable( " KEY " );
var client = new ContentSafetyClient( new Uri(endpoint), new AzureKeyCredential(key)); return client.AnalyzeImage(request);
}
First dropdown: must be ContentSafetyClient to instantiate the correct client for Azure AI Content Safety.
Second dropdown: since the requirement is image moderation, we must call client.AnalyzeImage(request) .
Other options:
BlocklistClient # used for custom blocklists, not full moderation.
TextCategoriesAnalysis # refers to text analysis categories, not suitable here.
AnalyzeText # would be used only for text moderation.
Therefore, the correct completion is:
ContentSafetyClient
client.AnalyzeImage(request)
The answer:
First dropdown: ContentSafetyClient
Second dropdown: client.AnalyzeImage(request)
Microsoft References
Azure AI Content Safety - Analyze images
Azure AI Content Safety SDK documentation
ContentSafetyClient class
You have an Azure subscription that contains an Azure Al Document Intelligence resource named DM.
You build an app named App1 that analyzes PDF files for handwritten content by using DM.
You need to ensure that App1 will recognize the handwritten content.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:

Comprehensive Detailed Explanation
The requirement:
You have an Azure AI Document Intelligence resource (formerly Form Recognizer).
You want the app to detect handwritten content inside PDF files.
Step 1 - Choosing the correct model
prebuilt-document: Extracts structure and text from documents, but not optimized specifically for handwriting.
prebuilt-contract: Designed for contracts, not general handwriting.
prebuilt-read: Extracts text (printed and handwritten) from documents. Supports handwritten content recognition.
Therefore, to analyze handwritten content, the correct choice is prebuilt-read.
Step 2 - Confidence threshold
The style.Confidence value indicates the confidence that the text is handwritten.
A typical threshold used is 0.75 (75%).
This ensures that only results with reasonably high confidence are considered handwritten.
Values like 0.1 would be too low (allowing false positives), while 1.0 might miss valid handwriting because it requires absolute certainty.
The answer:
Model: prebuilt-read
Confidence threshold: 0.75
You have an Azure subscription.
You plan to build an app that will use the Azure Al DALL-E model.
You need to deploy the model.
What should you use?
Correct Answer: A Vote an answer
You are building a Language Understanding model for purchasing tickets.
You have the following utterance for an intent named PurchaseAndSendTickets.
Purchase [2 audit business] tickets to [Paris] [next Monday] and send tickets to [[email protected]] You need to select the entity types. The solution must use built-in entity types to minimize training data whenever possible.
Which entity type should you use for each label? To answer, drag the appropriate entity types to the correct labels. Each entity type may be used once, more than once, or not at all.
You may need to drag the split bar between panes or scroll to view content.
Correct Answer:

Explanation:

Box 1: GeographyV2
The prebuilt geographyV2 entity detects places. Because this entity is already trained, you do not need to add example utterances containing GeographyV2 to the application intents.
Box 2: Email
Email prebuilt entity for a LUIS app: Email extraction includes the entire email address from an utterance.
Because this entity is already trained, you do not need to add example utterances containing email to the application intents.
Box 3: Machine learned
The machine-learning entity is the preferred entity for building LUIS applications.
Reference:
https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-reference-prebuilt-geographyv2
https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-reference-prebuilt-email
https://docs.microsoft.com/en-us/azure/cognitive-services/luis/reference-entity-machine-learned-entity
You are building an app that will use the Azure AI Speech service.
You need to ensure that the app can authenticate to the service by using a Microsoft Entra ID token.
Which two action should you perform? Each answer part of the solution.
NOTE: Each correct selection is worth one point.
Correct Answer: C,D Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop an application to identify species of flowers by training a Custom Vision model. You receive images of new flower species.
You need to add the new images to the classifier.
Solution: You add the new images and labels to the existing model. You retrain the model, and then publish the model.
Does this meet the goal?
Correct Answer: B Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
You are building a social media messaging app.
You need to identify in real time the language used in messages.
Which service should you use?
Correct Answer: B Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
You develop an app in O named App1 that performs speech-to-speech translation.
You need to configure App1 to translate English to German.
How should you complete the speechTransiationConf ig object? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:

You are configuring speech-to-speech translation in an app. The workflow is:
Recognize spoken input language (in this case, English).
Translate the recognized text into the target language (in this case, German).
(Optional) Synthesize speech in the target language.
Step 1 - SpeechRecognitionLanguage
This property defines the input language for speech recognition.
Since the input is English, it should be set to " en-US " .
Step 2 - AddTargetLanguage
This method specifies the output translation language(s).
Since the requirement is to translate into German, use " de " .
Other options (incorrect here):
speechSynthesisLanguage # used if you want to output translated text as synthesized speech in the target language voice. Not required in this snippet.
voiceName # specifies the actual voice to use for speech synthesis, not translation.
Correct Completed Code Snippet:
var translationConfig = SpeechTranslationConfig.FromSubscription(SPEECH_SUBSCRIPTION_KEY, SPEECH_SERVICE_REGION); translationConfig.SpeechRecognitionLanguage = " en-US " ; translationConfig.AddTargetLanguage( " de " ); Microsoft References Speech Translation with Azure AI Speech SDK SpeechTranslationConfig Class Reference