Microsoft

AI-102 Free Practice Questions — Page 11

Question 114

You have the following Python method. You need to deploy an Azure resource to the East US Azure region. The resource will be used to perform sentiment analysis. How should you call the method?

A. create_resource("res1", "TextAnalytics", "Standard", "East US")
B. create_resource("res1", "ContentModerator", "S0", "eastus")
C. create_resource("res1", "ContentModerator", "Standard", "East US")
D. create_resource("res1", "TextAnalytics", "S0", "eastus")
Show Answer
Correct Answer: D
Explanation:
The requirement is to deploy a resource for sentiment analysis, which uses the Azure Text Analytics service. The correct pricing tier for Text Analytics is S0 (or F0), not Standard. Azure region names must use the short name format, so East US is specified as "eastus". Option D is the only one that correctly specifies TextAnalytics, S0, and eastus.

Question 115

DRAG DROP - You have a collection of Microsoft Word documents and PowerPoint presentations in German. You need to create a solution to translate the files to French. The solution must meet the following requirements: • Preserve the original formatting of the files. • Support the use of a 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 to complete the solution? 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 115
Show Answer
Correct Answer: Upload a glossary file to the container for German files. Define a document translation specification that has a French target. Perform an asynchronous translation by using the document translation specification.
Explanation:
Azure AI Document Translation preserves formatting and supports custom glossaries through a document translation specification. The glossary must be accessible to the translation job and is associated with the source-to-target translation. After uploading the glossary, you define a specification with German as the source and French as the target, then run an asynchronous document translation job that reads from the German container and writes translated files to the French container.

Question 116

You have the following C# function. You call the function by using the following code. Which output will you receive?

A. The quick - The lazy
B. the quick brown fox jumps over the lazy dog
C. jumps over the
D. quick brown fox lazy dog
Show Answer
Correct Answer: D
Explanation:
The function extracts key phrases rather than the full sentence, omitting articles like "the" and selecting adjective–noun groupings. Applied to the given input, this results in the phrases "quick brown fox" and "lazy dog", producing the output "quick brown fox lazy dog".

Question 117

HOTSPOT - You are building an app by using the Speech SDK. The app will translate speech from French to German by using natural language processing. You need to define the source language and the output language. 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 117
Show Answer
Correct Answer: SpeechRecognitionLanguage = "fr" AddTargetLanguage("de")
Explanation:
The source (spoken) language must be set with SpeechRecognitionLanguage. The translation output language is added using AddTargetLanguage, which defines the target language for speech translation.

Question 118

You are building an app that will use the Speech service. You need to ensure that the app can authenticate to the service by using a Microsoft Azure Active Directory (Azure AD), part of Microsoft Entra, token. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A. Enable a virtual network service endpoint.
B. Configure a custom subdomain.
C. Request an X.509 certificate.
D. Create a private endpoint.
E. Create a Conditional Access policy.
Show Answer
Correct Answer: B, D
Explanation:
To authenticate to the Azure Speech service using a Microsoft Entra (Azure AD) token, the Speech resource must meet specific requirements. Microsoft documentation states that token-based (RBAC) authentication is supported only when the Speech resource is configured with a custom subdomain and accessed through a private endpoint. The Speech service uses custom subdomains exclusively with private endpoints for Azure AD authentication. Other options, such as Conditional Access, certificates, or network service endpoints, are not required to enable token authentication itself.

Question 119

You have a 20-GB video 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?

A. Upload File1.avi to an Azure Storage queue.
B. Upload File1.avi to the Azure Video Indexer website.
C. Upload File1.avi to Microsoft OneDrive.
D. Upload File1.avi to the www.youtube.com webpage.
Show Answer
Correct Answer: C
Explanation:
Azure Video Indexer has a 2‑GB limit for direct file uploads from a local device via the website. Larger videos (up to ~30 GB) must be provided via a URL to an online file. Uploading the 20‑GB video to OneDrive first provides a supported URL source for indexing, whereas direct upload (B) would fail due to size limits.

Question 120

HOTSPOT - You are developing a streaming Speech to Text solution that will use the Speech SDK and MP3 encoding. You need to develop a method to convert speech to text for streaming MP3 data. 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 120
Show Answer
Correct Answer: AudioStreamFormat SpeechRecognizer
Explanation:
Streaming MP3 input requires defining a compressed audio stream format using AudioStreamFormat. Converting speech to text with the Speech SDK is done by creating a SpeechRecognizer with the provided speech and audio configuration.

Question 121

DRAG DROP - You develop a Python app named App1 that performs speech-to-speech translation. You need to configure App1 to translate English to German. How should you complete the SpeechTranslationConfig 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.

Illustration for AI-102 question 121
Show Answer
Correct Answer: speech_recognition_language = "en-US" add_target_language("de")
Explanation:
Configure the source speech language for recognition as English, then add German as the target translation language using add_target_language.

Question 122

You are building an app that will include one million scanned magazine articles. Each article will be stored as an image file. You need to configure the app to extract text from the images. The solution must minimize development effort. What should you include in the solution?

A. Computer Vision Image Analysis
B. the Read API in Computer Vision
C. Form Recognizer
D. Azure Cognitive Service for Language
Show Answer
Correct Answer: B
Explanation:
The requirement is to extract text (OCR) from a very large number of scanned magazine articles while minimizing development effort. The Read API in Azure Computer Vision is purpose-built for high-quality OCR on text-heavy documents and images, requiring minimal setup and no custom model training. Computer Vision Image Analysis is broader and not optimized specifically for large-scale text extraction, Form Recognizer (Azure AI Document Intelligence) is more advanced than necessary and adds complexity when only raw text extraction is needed, and Azure Cognitive Service for Language operates on text after extraction, not on images. Therefore, the Read API in Computer Vision is the best fit.

Question 123

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 are building a chatbot that will use question answering in Azure Cognitive Service for Language. You have a PDF named Doc1.pdf that contains a product catalogue and a price list. You upload Doc1.pdf and train the model. During testing, users report that the chatbot responds correctly to the following question: What is the price of

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
The scenario implies the chatbot responds correctly, but the question text is incomplete (“What is the price of …”), indicating the issue is not resolved by the uploaded PDF alone. Therefore, the correct choice is No.

$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.