ExamGecko
Home Home / Microsoft / AI-102

Microsoft AI-102 Practice Test - Questions Answers, Page 6

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: A

Explanation:

The model needs to be extended and retrained.

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 create a new model, and then upload the new images and labels.

Does this meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: B

Explanation:

E xp I an ati o n/Ref e re n ce:

The model needs to be extended and retrained.

You are building a Language Understanding model for an e-commerce chatbot. Users can speak or type their billing address when prompted by the chatbot. You need to construct an entity to capture billing addresses.

Which entity type should you use?

A.
machine learned
A.
machine learned
Answers
B.
Regex
B.
Regex
Answers
C.
list
C.
list
Answers
D.
Pattern.any
D.
Pattern.any
Answers
Suggested answer: B

Explanation:

Reference:

https://docs. microsoft. com/en-us/azure/coqnitive-services/luis/lui s-concept-entity-types

You are building an Azure Weblob that will create knowledge bases from an array of URLs.

You instantiate a QnAMakerciient 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 i nclude 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.
A.
Create a list of FileDTO objects that represents data from the WebJob.
Answers
B.
Call the client .Knowledqebase.CreateAsync method.
B.
Call the client .Knowledqebase.CreateAsync method.
Answers
C.
Create a list of QnADTO objects that represents data from the WebJob.
C.
Create a list of QnADTO objects that represents data from the WebJob.
Answers
D.
Create a createKbDTO object.
D.
Create a createKbDTO object.
Answers
Suggested answer: A, C

Explanation:

Reference: https://docs.microsoft.eom/en-us/rest/api/cognitiveservices-qnamaker/qnamaker4.0/knowledqebase/create

You are building a natural language model.

You need to enable active learning.

What should you do?

A.
Add show-all-intents=true to the prediction endpoint query.
A.
Add show-all-intents=true to the prediction endpoint query.
Answers
B.
Enable speech priming.
B.
Enable speech priming.
Answers
C.
Add iog=true to the prediction endpoint query.
C.
Add iog=true to the prediction endpoint query.
Answers
D.
Enable sentiment analysis.
D.
Enable sentiment analysis.
Answers
Suggested answer: C

Explanation:

Reference:

https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-how-to-review-endpoint-utterances#log-user-queries-to-enable-active-learning

DRAG DROP

You are building a retail chatbot that will use a QnA Maker service.

You upload an internal support document to train the model. The document contains the following question: "What is your warranty period?"

Users report that the chatbot returns the default QnA Maker answer when they ask the following question: "How long is the warranty coverage?"

The chatbot returns the correct answer when the users ask the following question: 'What is your warranty period?"

Both questions should return the same answer.

You need to increase the accuracy of the chatbot responses.

Which three 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. (Choose three.)

Question 56
Correct answer: Question 56

Explanation:

Step 1: Add alternative phrasing to the question and answer (QnA) pair.

Add alternate questions to an existing QnA pair to improve the likelihood of a match to a user query.

Step 2: Retrain the model.

Periodically select Save and train after making edits to avoid losing changes.

Step 3: Republish the model

Note: A knowledge base consists of question and answer (QnA) pairs. Each pair has one answer and a pair contains all the information associated with that answer.

Reference:

https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/how-to/edit-knowledge-base

HOTSPOT

You are developing a service that records lectures given in English (United Kingdom).

You have a method named AppendToTranscriptFile that takes translated text and a language identifier.

You need to develop code that will provide transcripts of the lectures to attendees in their respective language. The supported languages are English, French, Spanish, and German.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question 57
Correct answer: Question 57

Explanation:

Box 1: {"fr", "de", "es"}

A common task of speech translation is to specify target translation languages, at least one is required but multiples are supported. The following code snippet sets both French and German as translation language targets.

static async Task TranslateSpeechAsync()

{

var translationConfig =

SpeechTranslationConfig.FromSubscription(SPEECH__SUBSCRIPTION__KEY, SPEECH__SERVICE__REGION);

translationConfig.SpeechRecognitionLanguage = "it-IT";

// Translate to languages. See, https://aka.ms/speech/sttt-languages

translationConfig.AddTargetLanguage("fr");

translationConfig.AddTargetLanguage("de");

}

Box 2: TranslationRecognizer

After you've created a SpeechTranslationConfig, the next step is to initialize a TranslationRecognizer.

Example code:

static async Task TranslateSpeechAsync()

{

var translationConfig =

SpeechTranslationConfig.FromSubscription(SPEECH__SUBSCRIPTION__KEY, SPEECH__SERVICE__REGION);

var fromLanguage = "en-US";

var toLanguages = new List<string> { "it", "fr", "de" };

translationConfig.SpeechRecognitionLanguage = fromLanguage;

toLanguages.ForEach(translationConfig.AddTargetLanguage);

using var recognizer = new TranslationRecognizer(translationConfig);

}

DRAG DROP

You train a Custom Vision model used in a mobile app.

You receive 1,000 new images that do not have any associated data.

You need to use the images to retrain the model. The solution must minimize how long it takes to retrain the model.

Which three actions should you perform in the Custom Vision portal? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Question 58
Correct answer: Question 58

Explanation:

Reference:

https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/getting-started-build-a-classifier

HOTSPOT

You are developing an application that includes language translation.

The application will translate text retrieved by using a function named getTextToBeTranslated. The text can be in one of many languages. The content of the text must remain within the Americas Azure geography.

You need to develop code to translate the text to a single 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.

Question 59
Correct answer: Question 59

HOTSPOT

You run the following command.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Question 60
Correct answer: Question 60

Explanation:

Box 1: Yes

http://localhost:5000/status : Also requested with GET, this verifies if the api-key used to start the container is valid without causing an endpoint query.

Box 2: Yes

The command saves container and LUIS logs to output mount at C:\output, located on container host

Box 3: Yes

http://localhost:5000/swagger : The container provides a full set of documentation for the endpoints and a Try it out feature. With this feature, you can enter your settings into a web-based HTML form and make the query without having to write any code. After the query returns, an example CURL command is provided to demonstrate the HTTP headers and body format that's required.

Reference:

https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-container-howto

Total 309 questions
Go to page: of 31