Microsoft Designing and Implementing a Microsoft Azure AI Solution (AI-102) Free Practice Test
Question 1
You plan to deploy a containerized version of an Azure Cognitive Services service that will be used for text analysis.
You configure https://contoso.cognitiveservices.azure.com as the endpoint URI for the service, and you pull the latest version of the Text Analytics Sentiment Analysis container.
You need to run the container on an Azure virtual machine by using Docker.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You configure https://contoso.cognitiveservices.azure.com as the endpoint URI for the service, and you pull the latest version of the Text Analytics Sentiment Analysis container.
You need to run the container on an Azure virtual machine by using Docker.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:

Box 1: mcr.microsoft.com/azure-cognitive-services/textanalytics/sentiment To run the Sentiment Analysis v3 container, execute the following docker run command.
docker run --rm -it -p 5000:5000 --memory 8g --cpus 1 \
mcr.microsoft.com/azure-cognitive-services/textanalytics/sentiment \
Eula=accept \
Billing={ENDPOINT_URI} \
ApiKey={API_KEY} is the endpoint for accessing the Text Analytics API. https:// < your-custom-subdomain
> .cognitiveservices.azure.com
Box 2: https://contoso.cognitiveservices.azure.com
{ENDPOINT_URI} is the endpoint for accessing the Text Analytics API: https:// < your-custom-subdomain
> .cognitiveservices.a The endpoint for accessing the Text Analytics API. zure.com Reference:
https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-install-containers?tabs=sentiment
Question 2
You have a computer that contains the files shown in the following table.

Which files can you upload and analyze by using Azure Al Video Indexer?

Which files can you upload and analyze by using Azure Al Video Indexer?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
You build a chatbot by using Azure OpenAI Studio.
You need to ensure that the responses are more deterministic and less creative.
Which two parameters should you configure? To answer, select the appropriate parameters in the answer area.
NOTE: Each correct answer is worth one point.

You need to ensure that the responses are more deterministic and less creative.
Which two parameters should you configure? To answer, select the appropriate parameters in the answer area.
NOTE: Each correct answer is worth one point.

Correct Answer:

Explanation:
When working with Azure OpenAI Studio to configure a chatbot or conversational AI model, two key parameters control the creativity vs determinism of responses:
Temperature
Controls the amount of randomness in the model's output.
A lower value (closer to 0) makes the output more deterministic and focused.
A higher value increases creativity and randomness.
For deterministic responses, you should reduce this value (for example, 0.2 or 0.0).
Top P (nucleus sampling)
Controls the diversity of responses by limiting the probability space considered.
A lower value (closer to 0) makes the responses more deterministic by narrowing the token choices.
A higher value increases creativity by expanding possible outputs.
For deterministic responses, keep this value low (e.g., 0.1-0.3).
Why Not Other Parameters?
Max response: Sets maximum token length of the output, not determinism.
Stop sequence: Defines custom stopping conditions, not randomness.
Frequency penalty and Presence penalty: Control repetition and encouragement of new topics, not determinism.
Thus, the correct parameters to adjust for more deterministic and less creative responses are:
Temperature and Top P.
The answer: Temperature, Top P
Microsoft References
Azure OpenAI Service - Parameters
Azure OpenAI Studio Overview
Nucleus Sampling (Top P) explanation

Question 4
You plan to build a chatbot to support task tracking.
You create a Conversational Language Understanding service named Iu1.
You need to build a Conversational Language Understanding model to Integrate into the chatbot. The solution must minimize development time to build the model.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

You create a Conversational Language Understanding service named Iu1.
You need to build a Conversational Language Understanding model to Integrate into the chatbot. The solution must minimize development time to build the model.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Correct Answer:

Explanation:
Correct Sequence:
Add the prebuilt domain ToDo
Add a new application
Train the application
Publish the application
Comprehensive Detailed Explanation
You are building a Conversational Language Understanding (CLU) model for a chatbot that supports task tracking. To minimize development time, the best approach is to use a prebuilt domain (like ToDo) instead of building intents/entities manually.
Steps in correct order:
Add the prebuilt domain ToDo
Prebuilt domains in CLU provide ready-to-use intents and entities for common scenarios (e.g., calendar, email, ToDo).
This significantly reduces development time since you don't need to create all intents/entities manually.
Add a new application
You must first create a CLU application that uses the prebuilt domain.
The application acts as the container for intents, entities, and utterances.
Train the application
Training is required after adding intents, entities, and utterances (or using a prebuilt domain).
This ensures the model can classify and extract information correctly.
Publish the application
Once trained, you must publish the application so it can be accessed via an endpoint and integrated into the chatbot.
Incorrect Actions in this Case
Add example utterances # Not required if you're using the prebuilt ToDo domain (utterances are already included).
Correct Sequence:
Add the prebuilt domain ToDo
Add a new application
Train the application
Publish the application
Microsoft References
Conversational Language Understanding (CLU) overview
Prebuilt domains in CLU (LUIS ToDo example)
Train and publish CLU models
Question 5
You are developing a method for an application that uses the Translator API.
The method will receive the content of a webpage, and then translate the content into Greek (el). The result will also contain a transliteration that uses the Roman alphabet.
You need to create the URI for the call to the Translator API. You have the following URI.
https://api.cognitive.microsofttranslator.com/translate?api-version=3.0 Which three additional query parameters should you include in the URI? Each correct answer presents part of the solution. (Choose three.) NOTE: Each correct selection is worth one point.
The method will receive the content of a webpage, and then translate the content into Greek (el). The result will also contain a transliteration that uses the Roman alphabet.
You need to create the URI for the call to the Translator API. You have the following URI.
https://api.cognitive.microsofttranslator.com/translate?api-version=3.0 Which three additional query parameters should you include in the URI? Each correct answer presents part of the solution. (Choose three.) NOTE: Each correct selection is worth one point.
Correct Answer: C,D,E
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
You have an Azure subscription that contains an Azure OpenA1 resource named AH.
You plan to build an app named App1 that will write press releases by using AM.
You need to deploy an Azure OpenA1 model for Appl. 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.

You plan to build an app named App1 that will write press releases by using AM.
You need to deploy an Azure OpenA1 model for Appl. 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.

Correct Answer:

Explanation:

Comprehensive Detailed Explanation
The requirement:
You have an Azure OpenAI resource.
You want to build an app (App1) that writes press releases.
The solution must minimize development effort.
Step 1 - Select the model deployment
Since press release generation requires natural language generation, the best choice is GPT-3.5 Turbo.
The text-embedding-ada-002 model is used for semantic search and embeddings, not text generation, so it's not appropriate here.
Step 2 - Apply a system message template
Azure OpenAI Studio provides pre-built system message templates to speed up development.
For writing press releases, the correct template is the Marketing Writing Assistant template.
This minimizes development effort since it already configures prompt engineering for marketing copywriting.
Step 3 - Deploy the solution
Once the deployment and template are configured, you deploy the solution to a new web app so it can be used as App1.
Correct Sequence:
Create a deployment that uses the GPT-3.5 Turbo model.
Apply the Marketing Writing Assistant system message template.
Deploy the solution to a new web app.
Microsoft References
Azure OpenAI Studio - Getting Started
Azure OpenAI GPT-3.5 models
Azure OpenAI Studio system message templates
Question 7
You need to upload speech samples to a Speech Studio project. How should you upload the samples?
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 8
You have a chatbot that uses a QnA Maker application.
You enable active learning for the knowledge base used by the QnA Maker application.
You need to integrate user input into the model.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

You enable active learning for the knowledge base used by the QnA Maker application.
You need to integrate user input into the model.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Correct Answer:

Explanation:

Step 1: For the knowledge base, select Show active learning suggestions.
In order to see the suggested questions, on the Edit knowledge base page, select View Options, then select Show active learning suggestions.
Step 2: Approve and reject suggestions.
Each QnA pair suggests the new question alternatives with a check mark, # , to accept the question or an x to reject the suggestions. Select the check mark to add the question.
Step 3: Save and train the knowledge base.
Select Save and Train to save the changes to the knowledge base.
Step 4: Publish the knowledge base.
Select Publish to allow the changes to be available from the GenerateAnswer API.
When 5 or more similar queries are clustered, every 30 minutes, QnA Maker suggests the alternate questions for you to accept or reject.
Reference:
https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/how-to/improve-knowledge-base
Question 9
You are developing a text processing solution.
You have the function shown below.

For the second argument, you call the function and specify the following string.
Our tour of Paris included a visit to the Eiffel Tower.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
You have the function shown below.

For the second argument, you call the function and specify the following string.
Our tour of Paris included a visit to the Eiffel Tower.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
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 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 The function uses RecognizeEntities to identify entities in the text, which typically includes named entities like locations (e.g., Paris, Eiffel Tower). It then prints the text of each recognized entity. The input string " Our tour of Paris included a visit to the Eiffel Tower " contains the entities " Paris " and " Eiffel Tower, " which will be broken down into individual words like " Paris, " " Eiffel, " and " Tower. " However, common words like " our " and " included " are not typically recognized as entities, and the function does not output all key phrases, only the recognized entities.
Question 10
You are building an app named App1 that will use Azure Document Intelligence in Foundry Tools to extract the following data from scanned documents:
* Shipping address
* Billing address
* Customer ID
* Amount due
* Due date
* Total tax
* Subtotal
You need to identify which model to use for App1. The solution must minimize development effort. Which model should you use?
* Shipping address
* Billing address
* Customer ID
* Amount due
* Due date
* Total tax
* Subtotal
You need to identify which model to use for App1. The solution must minimize development effort. Which model should you use?
Correct Answer: A
Question 11
You are building an app that will perform speech translation by using the Azure ai Language service.
You need to ensure that the language input to the app is supported.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You need to ensure that the language input to the app is supported.
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:

To validate that an input language is supported for translation, call the Translator SDK's GetLanguagesAsync with scope: " translation " to retrieve the supported languages. The call returns a GetLanguagesResult, whose Translation property is a dictionary keyed by language codes (e.g., " en " , " it " ). You can then check membership with ContainsKey(language) . If the key exists, the language is supported; otherwise, it isn't.
This matches the .NET Translator client design:
TextTranslationClient.GetLanguagesAsync(...) fetches supported languages.
GetLanguagesResult.Translation is a dictionary of translation-capable languages, so ContainsKey is the correct check.
Microsoft References
TextTranslationClient.GetLanguagesAsync (overview and signature).
Languages REST reference - use scope=translation to get languages supported for translation. Microsoft Learn GetLanguagesResult class - Translation dictionary property.
Question 12
You have a collection of Microsoft Word documents and PowerPoint presentations in German.
You need to create a solution to translate the file to French. The solution must meet the following requirements:
* Preserve the original formatting of the files.
* Support the use of s custom glossary.
You create a blob container for German files and a blob container for French files. You upload the original files to the container for German files.
Which three actions should you perform in sequence actions from the list of actions to the answer area and arrange them in the correct order.

You need to create a solution to translate the file to French. The solution must meet the following requirements:
* Preserve the original formatting of the files.
* Support the use of s custom glossary.
You create a blob container for German files and a blob container for French files. You upload the original files to the container for German files.
Which three actions should you perform in sequence actions from the list of actions to the answer area and arrange them in the correct order.

Correct Answer:

Explanation:
Upload a glossary file to the container for French files
Define a document translation specification that has a French target
Perform an asynchronous translation by using the document translation specification You need to translate Word and PowerPoint files (German # French) while preserving formatting and supporting a custom glossary. The correct service is Azure Document Translation, part of the Translator service in Azure Cognitive Services.
Step-by-step reasoning:
Upload a glossary file to the container for French files.
Glossaries (also called custom terminology files) guide translation to ensure consistent word usage.
They are stored in the target container (in this case, the French container).
Define a document translation specification that has a French target.
A translation request is defined by creating a document translation specification JSON.
This specification indicates:
The source container (German files)
The target container (French files)
The glossary file (for custom terminology)
Output target language (French).
Perform an asynchronous translation by using the document translation specification.
Document translation jobs are submitted asynchronously.
This step executes the translation while preserving formatting and applying the glossary rules.
Why not the other options?
Generate a list of files to be translated # not required, the service automatically processes all files in the source container.
Perform asynchronous translation using a list of files # that method does not support document-level translation with glossary and formatting preservation, it's used for text-based translations.
Correct Answer Order:
Upload a glossary file to the container for French files
Define a document translation specification that has a French target
Perform an asynchronous translation by using the document translation specification Microsoft References Document Translation - Translate documents in containers Use custom glossaries with Document Translation Submit document translation requests

Question 13
You need to recommend a non-relational data store that is optimized for storing and retrieving text files, videos, audio streams, and virtual disk images. The data store must store data, some metadata, and a unique ID for each file. Which type of data store should you recommend?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 14
You are building a Conversational Language Understanding model.
You need to ensure that the model will support the following sample utterances:
* Set all the lights to on.
* Turn off the lights in the living room.
* What is the current thermostat temperature?
* Lower the temperature of the thermostat by five degrees.
Which three elements should you add to the model?
Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
You need to ensure that the model will support the following sample utterances:
* Set all the lights to on.
* Turn off the lights in the living room.
* What is the current thermostat temperature?
* Lower the temperature of the thermostat by five degrees.
Which three elements should you add to the model?
Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
Correct Answer: B,D,F
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).