AI-102: Designing and Implementing a Microsoft Azure AI Solution Part 2
Question #: 22
Topic #: 5
You are designing a conversational interface for an app that will be used to make vacation requests. The interface must gather the following data:
• The start date of a vacation
• The end date of a vacation
• The amount of required paid time off
The solution must minimize dialog complexity.
Which type of dialog should you use?
A. adaptive
B. skill
C. waterfall
D. component
Selected Answer: C
Question #: 34
Topic #: 5
You are building a chatbot by using Microsoft Bot Framework Composer.
You need to configure the chatbot to present a list of available options. The solution must ensure that an image is provided for each option.
Which two features should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. an entity
B. an Azure function
C. an utterance
D. an adaptive card
E. a dialog
Selected Answer: DE
Question #: 35
Topic #: 5
You are building a chatbot.
You need to configure the bot to guide users through a product setup process.
Which type of dialog should you use?
A. component
B. action
C. waterfall
D. adaptive
Selected Answer: C
Question #: 36
Topic #: 5
You have a chatbot that was built by using Microsoft Bot Framework and deployed to Azure.
You need to configure the bot to support voice interactions. The solution must support multiple client apps.
Which type of channel should you use?
A. Cortana
B. Microsoft Teams
C. Direct Line Speech
Selected Answer: C
Question #: 37
Topic #: 5
You are building a bot by using Microsoft Bot Framework.
You need to configure the bot to respond to spoken requests. The solution must minimize development effort.
What should you do?
A. Deploy the bot to Azure and register the bot with a Direct Line Speech channel.
B. Integrate the bot with Cortana by using the Bot Framework SDK.
C. Create an Azure function that will call the Speech service and connect the bot to the function.
D. Deploy the bot to Azure and register the bot with a Microsoft Teams channel.
Selected Answer: A
Question #: 2
Topic #: 4
You deploy a web app that is used as a management portal for indexing in Azure Cognitive Search. The app is configured to use the primary admin key.
During a security review, you discover unauthorized changes to the search index. You suspect that the primary access key is compromised.
You need to prevent unauthorized access to the index management endpoint. The solution must minimize downtime.
What should you do next?
A. Regenerate the primary admin key, change the app to use the secondary admin key, and then regenerate the secondary admin key.
B. Change the app to use a query key, and then regenerate the primary admin key and the secondary admin key.
C. Regenerate the secondary admin key, change the app to use the secondary admin key, and then regenerate the primary key.
D. Add a new query key, change the app to use the new query key, and then delete all the unused query keys.
Selected Answer: C
Question #: 4
Topic #: 4
You need to implement a table projection to generate a physical expression of an Azure Cognitive Search index.
Which three properties should you specify in the skillset definition JSON configuration table node? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. tableName
B. generatedKeyName
C. dataSource
D. dataSourceConnection
E. source
Selected Answer: ABE
Question #: 8
Topic #: 3
You are building an Azure WebJob that will create knowledge bases from an array of URLs.
You instantiate a QnAMakerClient object that has the relevant API keys and assign the object to a variable named client.
You need to develop a method to create the knowledge bases.
Which two actions should you include in the method? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Create a list of FileDTO objects that represents data from the WebJob.
B. Call the client.Knowledgebase.CreateAsync method.
C. Create a list of QnADTO objects that represents data from the WebJob.
D. Create a CreateKbDTO object.
Selected Answer: BD
Question #: 19
Topic #: 3
You are training a Language Understanding model for a user support system.
You create the first intent named GetContactDetails and add 200 examples.
You need to decrease the likelihood of a false positive.
What should you do?
A. Enable active learning.
B. Add a machine learned entity.
C. Add additional examples to the GetContactDetails intent.
D. Add examples to the None intent.
Selected Answer: D
Question #: 33
Topic #: 3
You have an Azure Cognitive Services model named Model1 that identifies the intent of text input.
You develop an app in C# named App1.
You need to configure App1 to use Model1.
Which package should you add to App1?
A. Universal.Microsoft.CognitiveServices.Speech
B. SpeechServicesToolkit
C. Azure.AI.Language.Conversations
D. Xamarin.Cognitive.Speech
Selected Answer: C
Question #: 36
Topic #: 3
You are building a social media extension that will convert text to speech. The solution must meet the following requirements:
• Support messages of up to 400 characters.
• Provide users with multiple voice options.
• Minimize costs.
You create an Azure Cognitive Services resource.
Which Speech API endpoint provides users with the available voice options?
A. https://uksouth.api.cognitive.microsoft.com/speechtotext/v3.0/models/base
B. https://uksouth.customvoice.api.speech.microsoft.com/api/texttospeech/v3.0/longaudiosynthesis/voices
C. https://uksouth.tts.speech.microsoft.com/cognitiveservices/voices/list
D. https://uksouth.voice.speech.microsoft.com/cognitiveservices/v1?deploymentId={deploymentId}
Selected Answer: C
Question #: 41
Topic #: 3
You have an Azure subscription that contains an Azure Cognitive Service for Language resource.
You need to identify the URL of the REST interface for the Language service.
Which blade should you use in the Azure portal?
A. Identity
B. Keys and Endpoint
C. Networking
D. Properties
Selected Answer: B
Question #: 43
Topic #: 3
You are building a retail kiosk system that will use a custom neural voice.
You acquire audio samples and consent from the voice talent.
You need to create a voice talent profile.
What should you upload to the profile?
A. a .zip file that contains 10-second .wav files and the associated transcripts as .txt files
B. a five-minute .flac audio file and the associated transcript as a .txt file
C. a .wav or .mp3 file of the voice talent consenting to the creation of a synthetic version of their voice
D. a five-minute .wav or .mp3 file of the voice talent describing the kiosk system
Selected Answer: C
Question #: 57
Topic #: 3
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”)
Selected Answer: D
Question #: 61
Topic #: 3
You are developing an app that will use the Decision and Language APIs.
You need to provision resources for the app. The solution must ensure that each service is accessed by using a single endpoint and credential.
Which type of resource should you create?
A. Language
B. Speech
C. Azure Cognitive Services
D. Content Moderator
Selected Answer: C
Question #: 62
Topic #: 3
You are building a chatbot.
You need to ensure that the bot will recognize the names of your company’s products and codenames. The solution must minimize development effort.
Which Azure Cognitive Service for Language service should you include in the solution?
A. custom text classification
B. entity linking
C. custom Named Entity Recognition (NER)
D. key phrase extraction
Selected Answer: C
Question #: 63
Topic #: 3
You have an Azure subscription that contains an Azure App Service app named App1.
You provision a multi-service Azure Cognitive Services resource named CSAccount1.
You need to configure App1 to access CSAccount1. The solution must minimize administrative effort.
What should you use to configure App1?
A. a system-assigned managed identity and an X.509 certificate
B. the endpoint URI and an OAuth token
C. the endpoint URI and a shared access signature (SAS) token
D. the endpoint URI and subscription key
Selected Answer: D
Question #: 64
Topic #: 3
You have an Azure subscription that contains a multi-service Azure Cognitive Services Translator resource named Translator1.
You are building an app that will translate text and documents by using Translator1.
You need to create the REST API request for the app.
Which headers should you include in the request?
A. the access control request, the content type, and the content length
B. the subscription key and the client trace ID
C. the resource ID and the content language
D. the subscription key, the subscription region, and the content type
Selected Answer: D
Question #: 65
Topic #: 3
You have a file share that contains 5,000 images of scanned invoices.
You need to analyze the images. The solution must extract the following data:
• Invoice items
• Sales amounts
• Customer details
What should you use?
A. Custom Vision
B. Azure AI Computer Vision
C. Azure AI Immersive Reader
D. Azure AI Document Intelligence
Selected Answer: D
Question #: 70
Topic #: 3
You are designing a content management system.
You need to ensure that the reading experience is optimized for users who have reduced comprehension and learning differences, such as dyslexia. The solution must minimize development effort.
Which Azure service should you include in the solution?
A. Azure AI Immersive Reader
B. Azure AI Translator
C. Azure AI Document Intelligence
D. Azure AI Language
Selected Answer: A
Question #: 72
Topic #: 3
You have an Azure AI service model named Model1 that identifies the intent of text input.
You develop a Python app named App1.
You need to configure App1 to use Model1.
Which package should you add to App1?
A. azure-cognitiveservices-language-textanalytics
B. azure-ai-language-conversations
C. azure-mgmt-cognitiveservices
D. azure-cognitiveservices-speech
Selected Answer: B
Question #: 11
Topic #: 2
You use the Custom Vision service to build a classifier.
After training is complete, you need to evaluate the classifier.
Which two metrics are available for review? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. recall
B. F-score
C. weighted accuracy
D. precision
E. area under the curve (AUC)
Selected Answer: AD
Question #: 10
Topic #: 2
You have an Azure Video Analyzer for Media (previously Video Indexer) service that is used to provide a search interface over company videos on your company’s website.
You need to be able to search for videos based on who is present in the video.
What should you do?
A. Create a person model and associate the model to the videos.
B. Create person objects and provide face images for each object.
C. Invite the entire staff of the company to Video Indexer.
D. Edit the faces in the videos.
E. Upload names to a language model.
Selected Answer: A
Question #: 16
Topic #: 2
Your company uses an Azure Cognitive Services solution to detect faces in uploaded images. The method to detect the faces uses the following code.
You discover that the solution frequently fails to detect faces in blurred images and in images that contain sideways faces.
You need to increase the likelihood that the solution can detect faces in blurred images and images that contain sideways faces.
What should you do?
A. Use a different version of the Face API.
B. Use the Computer Vision service instead of the Face service.
C. Use the Identify method instead of the Detect method.
D. Change the detection model.
Selected Answer: D
Question #: 20
Topic #: 2
You need to build a solution that will use optical character recognition (OCR) to scan sensitive documents by using the Computer Vision API. The solution must
NOT be deployed to the public cloud.
What should you do?
A. Build an on-premises web app to query the Computer Vision endpoint.
B. Host the Computer Vision endpoint in a container on an on-premises server.
C. Host an exported Open Neural Network Exchange (ONNX) model on an on-premises server.
D. Build an Azure web app to query the Computer Vision endpoint.
Selected Answer: B
Question #: 21
Topic #: 2
You have an Azure Cognitive Search solution and a collection of handwritten letters stored as JPEG files.
You plan to index the collection. The solution must ensure that queries can be performed on the contents of the letters.
You need to create an indexer that has a skillset.
Which skill should you include?
A. image analysis
B. optical character recognition (OCR)
C. key phrase extraction
D. document extraction
Selected Answer: B
Question #: 23
Topic #: 2
You have an app that captures live video of exam candidates.
You need to use the Face service to validate that the subjects of the videos are real people.
What should you do?
A. Call the face detection API and retrieve the face rectangle by using the FaceRectangle attribute.
B. Call the face detection API repeatedly and check for changes to the FaceAttributes.HeadPose attribute.
C. Call the face detection API and use the FaceLandmarks attribute to calculate the distance between pupils.
D. Call the face detection API repeatedly and check for changes to the FaceAttributes.Accessories attribute.
Selected Answer: B
Question #: 32
Topic #: 2
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
Selected Answer: B
Question #: 33
Topic #: 2
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.
Selected Answer: C
Question #: 35
Topic #: 2
You are building an app that will share user images.
You need to configure the app to perform the following actions when a user uploads an image:
• Categorize the image as either a photograph or a drawing.
• Generate a caption for the image.
The solution must minimize development effort.
Which two services should you include in the solution? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. object detection in Azure AI Computer Vision
B. content tags in Azure AI Computer Vision
C. image descriptions in Azure AI Computer Vision
D. image type detection in Azure AI Computer Vision
E. image classification in Azure AI Custom Vision
Selected Answer: CD
Question #: 31
Topic #: 1
You have an Azure Cognitive Search instance that indexes purchase orders by using Form Recognizer.
You need to analyze the extracted information by using Microsoft Power BI. The solution must minimize development effort.
What should you add to the indexer?
A. a projection group
B. a table projection
C. a file projection
D. an object projection
Selected Answer: B
Question #: 37
Topic #: 1
You have a factory that produces food products.
You need to build a monitoring solution for staff compliance with personal protective equipment (PPE) requirements. The solution must meet the following requirements:
* Identify staff who have removed masks or safety glasses.
* Perform a compliance check every 15 minutes.
* Minimize development effort.
* Minimize costs.
Which service should you use?
A. Face
B. Computer Vision
C. Azure Video Analyzer for Media (formerly Video Indexer)
Selected Answer: A
Question #: 38
Topic #: 1
You have an Azure Cognitive Search solution and a collection of blog posts that include a category field.
You need to index the posts. The solution must meet the following requirements:
* Include the category field in the search results.
* Ensure that users can search for words in the category field.
* Ensure that users can perform drill down filtering based on category.
Which index attributes should you configure for the category field?
A. searchable, sortable, and retrievable
B. searchable, facetable, and retrievable
C. retrievable, filterable, and sortable
D. retrievable, facetable, and key
Selected Answer: B
Question #: 45
Topic #: 1
You have an Azure IoT hub that receives sensor data from machinery.
You need to build an app that will perform the following actions:
• Perform anomaly detection across multiple correlated sensors.
• Identify the root cause of process stops.
• Send incident alerts.
The solution must minimize development time.
Which Azure service should you use?
A. Azure Metrics Advisor
B. Form Recognizer
C. Azure Machine Learning
D. Anomaly Detector
Selected Answer: A
Question #: 46
Topic #: 1
You have an app that analyzes images by using the Computer Vision API.
You need to configure the app to provide an output for users who are vision impaired. The solution must provide the output in complete sentences.
Which API call should you perform?
A. readInStreamAsync
B. analyzeImagesByDomainInStreamAsync
C. tagImageInStreamAsync
D. describeImageInStreamAsync
Selected Answer: D
Question #: 50
Topic #: 1
You are developing a monitoring system that will analyze engine sensor data, such as rotation speed, angle, temperature, and pressure. The system must generate an alert in response to atypical values.
What should you include in the solution?
A. Application Insights in Azure Monitor
B. metric alerts in Azure Monitor
C. Multivariate Anomaly Detection
D. Univariate Anomaly Detection
Selected Answer: C
Question #: 51
Topic #: 1
You have an app named App1 that uses an Azure Cognitive Services model to identify anomalies in a time series data stream.
You need to run App1 in a location that has limited connectivity. The solution must minimize costs.
What should you use to host the model?
A. Azure Kubernetes Service (AKS)
B. Azure Container Instances
C. a Kubernetes cluster hosted in an Azure Stack Hub integrated system
D. the Docker Engine
Selected Answer: B
Question #: 56
Topic #: 3
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
Selected Answer: D
Question #: 69
Topic #: 1
You are building an internet-based training solution. The solution requires that a user’s camera and microphone remain enabled.
You need to monitor a video stream of the user and detect when the user asks an instructor a question. The solution must minimize development effort.
What should you include in the solution?
A. speech-to-text in the Azure AI Speech service
B. language detection in Azure AI Language Service
C. the Face service in Azure AI Vision
D. object detection in Azure AI Custom Vision
Selected Answer: A
Question #: 28
Topic #: 5
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 have a chatbot that uses question answering in Azure Cognitive Service for Language.
Users report that the responses of the chatbot lack formality when answering spurious questions.
You need to ensure that the chatbot provides formal responses to spurious questions.
Solution: From Language Studio, you change the chitchat source to qna_chitchat_professional.tsv, and then retrain and republish the model.
Does this meet the goal?
A. Yes
B. No
Selected Answer: A
Question #: 30
Topic #: 5
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 ?
The chatbot fails to respond to the following question: How much does cost?
You need to ensure that the chatbot responds correctly to both questions.
Solution: From Language Studio, you add alternative phrasing to the question and answer pair, and then retrain and republish the model.
Does this meet the goal?
A. Yes
B. No
Selected Answer: A