test2 Flashcards

(41 cards)

1
Q

HOTSPOT

You are building a bot and that will use Language Understanding.

You have a LUDown file that contains the following content.
## Confirm
- confirm
- ok
- yes
## ExtractName
- call me steve !
- i am anna
- (i’m|i am) {@PersonName.Any} [ .]
- my name is {@PersonName.Any} [ .]
## Logout
- forget me
- log out
## SelectItem
- choose last
- choose the {@DirectionalReference=bottom left}
- choose {@DirectionalReference=top right}
- i like {@DirectionalReference=left} one
## SelectNone
- none
@ ml DirectionalReference
@ prebuilt personName
Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic. NOTE: Each correct selection is worth one point.
SelectItem is [answer choice].

a domain
an entity
an intent
an utterance

Choose (@DirectionalReference=top right} is [answer choice].

a domain
an entity
an intent
an utterance

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You plan to provision a QnA Maker service in a new resource group named RG1.

In RG1, you create an App Service plan named AP1.

Which two Azure resources are automatically created in RG1 when you provision the QnA Maker service? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Language Understanding
Azure SQL Database
Azure Storage
Azure Cognitive Search
Azure App Service

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DRAG DROP

You train a Custom Vision model to identify a company’s products by using the Retail domain.

You plan to deploy the model as part of an app for Android phones.

You need to prepare the model for deployment.

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.
Actions
Change the model domain.
Retrain the model.
Test the model.
Export the model.

Answer Area

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

You are building a chatbot for a Microsoft Teams channel by using the Microsoft Bot Framework SDK.

The chatbot will use the following code.
protected override async Task OnMembersAddedAsync(IList<ChannelAccount>
membersAdded, ITurnContext<IConversationUpdateActivity> turnContext,
CancellationToken cancellationToken)
{</IConversationUpdateActivity></ChannelAccount>

foreach (var member in membersAdded)
if (member.Id != turnContext.Activity.Recipient. Id)
await turnContext.SendActivityAsync($”Hi there - {member.Name}.
{WelcomeMessage)”, cancellationToken: cancellationToken);

}

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth
one point.
Answer Area

Statements

OnMembersAddedAsync will be triggered when a user joins the conversation.

When a new user joins the conversation, the existing users in the conversation will see the chatbot greeting.

OnMembersAddedAsync will be initialized when a user sends a message.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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 create a web app named app1 that runs on an Azure virtual machine named vm1.

Vm1 is on an Azure virtual network named vnet1.

You plan to create a new Azure Cognitive Search service named service1.

You need to ensure that app1 can connect directly to service1 without routing traffic over the public internet.

Solution: You deploy service1 and a public endpoint, and you configure a network security group (NSG) for vnet1.

Does this meet the goal?

Yes
No

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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?

Enable active learning.
Add a machine learned entity.
Add additional examples to the GetContactDetails intent.
Add examples to the None intent.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DRAG DROP

You are planning the product creation project.

You need to recommend a process for analyzing videos.

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. (Choose four.)
Actions

Index the video by using the Video
Indexer API.
Upload the video to blob storage.
Analyze the video by using the
Computer Vision API.
Extract the transcript from
Microsoft Stream.
Send the transcript to the Language
Understanding API as an utterance.
Extract the transcript from the
Video Indexer API.
Translate the transcript by using
the Translator API.
Upload the video to file storage.

Answer Area

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

DRAG DROP

You are developing an application that will recognize faults in components produced on a factory production line. The components are specific to your business.

You need to use the Custom Vision API to help detect common faults.

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

Train the classifier model.
Upload and tag images.
Initialize the training dataset.
Train the object detection model.
Create a project.

Answer Area

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

HOTSPOT

You are building a chatbot by using the Microsoft Bot Framework SDK.

You use an object named UserProfile to store user profile information and an object named ConversationData to store information related to a conversation.

You create the following state accessors to store both objects in state.

var userStateAccessors = _userState.CreateProperty<UserProfile>(nameof(UserProfile));</UserProfile>

var conversationStateAccessors =

_conversationState.CreateProperty<ConversationData>(nameof(ConversationData));</ConversationData>

The state storage mechanism is set to Memory Storage.

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.
Answer Area

Statements

The code will create and maintain the UserProfile object
in the underlying storage layer.

The code will create and maintain the ConversationData
object in the underlying storage layer.

The UserProfile and ConversationData objects will
persist when the Bot Framework runtime terminates.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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?

Yes
No

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

You are building a natural language model.

You need to enable active learning.

What should you do?

Add show-all-intents=true to the prediction endpoint query.
Enable speech priming.
Add log=true to the prediction endpoint query.
Enable sentiment analysis.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Your company wants to reduce how long it takes for employees to log receipts in expense reports. All the receipts are in English.

You need to extract top-level information from the receipts, such as the vendor and the transaction total. The solution must minimize development effort.

Which Azure Cognitive Services service should you use?

Custom Vision
Personalizer
Form Recognizer
Computer Vision

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

HOTSPOT

You develop a test method to verify the results retrieved from a call to the Computer Vision API. The call is used to analyze the existence of company logos in images. The call returns a collection of brands named brands.
You have the following code segment.
foreach (var brand in brands)
{
if (brand.Confidence >= .75)
Console.WriteLine($”Logo of {brand.Name} between {brand.Rectangle.X},
{brand.Rectangle.Y} and {brand.Rectangle.W), (brand.Rectangle.H}”);
For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth
one point.
Answer Area

Statements

The code will return the name of each detected brand with a
confidence equal to or higher than 75 percent.

The code will return coordinates for the bottom-left corner of the rectangle that contains the brand logo of the displayed brands.

The code will return coordinates for the bottom-right corner of the rectangle that contains the brand logo of the displayed brands.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You are developing the smart e-commerce project.

You need to implement autocompletion as part of the Cognitive Search solution.

Which three actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point. (Choose three.)

Make API queries to the autocomplete endpoint and include suggesterName in the body.
Add a suggester that has the three product name fields as source fields.
Make API queries to the search endpoint and include the product name fields in the searchFields query parameter.
Add a suggester for each of the three product name fields.
Set the searchAnalyzer property for the three product name variants.
Set the analyzer property for the three product name variants.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You have the following data sources:

✑ Finance: On-premises Microsoft SQL Server database

✑ Sales: Azure Cosmos DB using the Core (SQL) API

✑ Logs: Azure Table storage

✑ HR: Azure SQL database

You need to ensure that you can search all the data by using the Azure Cognitive Search REST API .

What should you do?

Configure multiple read replicas for the data in Sales.
Mirror Finance to an Azure SQL database.
Migrate the data in Sales to the MongoDB AP
Ingest the data in Logs into Azure Sentinel.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

You need to upload speech samples to a Speech Studio project .

How should you upload the samples?

Combine the speech samples into a single audio file in the .wma format and upload the file.
Upload a .zip file that contains a collection of audio files in the .wav format and a corresponding text transcript file.
Upload individual audio files in the FLAC format and manually upload a corresponding transcript in Microsoft Word format.
Upload individual audio files in the .wma format.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

You have a collection of 50,000 scanned documents that contain text.

You plan to make the text available through Azure Cognitive Search.

You need to configure an enrichment pipeline to perform optical character recognition (OCR) and text analytics. The solution must minimize costs.

What should you attach to the skillset?

a new Computer Vision resource
a free (Limited enrichments) Cognitive Services resource
an Azure Machine Learning pipeline
a new Cognitive Services resource that uses the SO pricing tier

16
Q

You are developing a text processing solution.

You develop the following method.
static void GetKeyPhrases (TextAnalyticsClient textAnalyticsClient, string text)
var response = textAnalyticsClient.ExtractKeyPhrases (text);
Console.WriteLine(“Key phrases:”);
foreach (string keyphrase in response.Value)
{

Console.WriteLine($”\t(keyphrase)”);

You call the method by using the following code.

GetKeyPhrases(textAnalyticsClient, “the cat sat on the mat”);

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth
one point.
Answer Area

Statements

The call will output key phrases from the input string to the console.

The output will contain the following words: the, cat, sat, on, and mat.

The output will contain the confidence level for key phrases.

17
Q

Topic 2, Misc. Questions

You build a bot by using the Microsoft Bot Framework SDK and the Azure Bot Service.

You plan to deploy the bot to Azure.

You register the bot by using the Bot Channels Registration service.

Which two values are required to complete the deployment? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

botld
tenancld
appld
objeccld
appSecrec

17
Q

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.)
Actions

Add a new question and answer (QnA) pair.

Retrain the model.

Add additional questions to the document.

Republish the model.
Add alternative phrasing to the question
and answer (QnA) pair.

Answer Area

18
Q

You plan to perform predictive maintenance.

You collect IoT sensor data from 100 industrial machines for a year. Each machine has 50 different sensors that generate data at one-minute intervals. In total, you have 5,000 time series datasets.

You need to identify unusual values in each time series to help predict machinery failures.

Which Azure Cognitive Services service should you use?

Anomaly Detector
Cognitive Search
Form Recognizer
Custom Vision

18
Q

HOTSPOT

You need to create a new resource that will be used to perform sentiment analysis and optical character recognition (OCR).

The solution must meet the following requirements:

✑ Use a single key and endpoint to access multiple services.

✑ Consolidate billing for future services that you might use.

✑ Support the use of Computer Vision in the future.

How should you complete the HTTP request to create the new resource? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Answer Area

————-https://management.azure.com/subscriptions/xxxxxxxx-xxxx-

PATCH
POST
PUT
xxxx-xxxx-
xxxxxxxxx/resourceGroups/RG1/providers/Microsoft.CognitiveServices/
accounts/CS1?api-version=2017-04-18
{

“location”: “West US”,
“kind”: “———–

CognitiveServices
ComputerVision
TextAnalytics

“sku”: {
“name”: “SO”
},
“properties”: {},
“identity”: {
“type”: “SystemAssigned”

18
Q

You plan to provision a QnA Maker service in a new resource group named RG1.

In RG1, you create an App Service plan named AP1.

Which two Azure resources are automatically created in RG1 when you provision the QnA Maker service? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Language Understanding
Azure SQL Database
Azure Storage
Azure Cognitive Search
Azure App Service

19
Q

DRAG DROP

You train a Custom Vision model to identify a company’s products by using the Retail domain.

You plan to deploy the model as part of an app for Android phones.

You need to prepare the model for deployment.

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

Answer Area

Change the model domain.

Retrain the model.

Test the model.

Export the model.

19
You build a conversational bot named bot1. You need to configure the bot to use a QnA Maker application. From the Azure Portal, where can you find the information required by bot1 to connect to the QnA Maker application? Access control (IAM) Properties Keys and Endpoint Identity
20
HOTSPOT You are developing the shopping on-the-go project. You are configuring access to the QnA Maker resources. Which role should you assign to AllUsers and LeadershipTeam? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer Area AllUsers: Cognitive Service User Contributor Owner QnA Maker Editor QnA Maker Read LeadershipTeam: Cognitive Service User Contributor Owner QnA Maker Editor QnA Maker Read
21
HOTSPOT You are reviewing the design of a chatbot. The chatbot includes a language generation file that contains the following fragment. Greet(user) - ${Greeting()}, ${user.name} For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Answer Area Statements $ {user. name} retrieves the user name by using a prompt. Greet () is the name of the language generation template. $ {Greeting () } is a reference to a template in the language generation file.
22
You create a web app named app1 that runs on an Azure virtual machine named vm1. Vm1 is on an Azure virtual network named vnet1. You plan to create a new Azure Cognitive Search service named service1. You need to ensure that app1 can connect directly to service1 without routing traffic over the public internet. Solution: You deploy service1 and a public endpoint, and you configure an IP firewall rule. Does this meet the goal? Yes No
23
You are developing a method that uses the Computer Vision client library. The method will perform optical character recognition (OCR) in images. The method has the following code. public static async Task ReadFileUrl (ComputerVisionClient client, string urlFile) const int numberOfCharsInOperationId = 36; var txtHeaders = await client.ReadAsync(urlFile, language: "en"); string opLocation = textHeaders.OperationLocation; string operationId = opLocation.Substring (opLocation. Length - numberOfCharsInOperationId); ReadOperationResult results; results = await client.GetReadResultAsync(Guid.Parse(operationId)); var textUrlFileResults = results.AnalyzeResult.ReadResults; foreach (ReadResult page in textUrlFileResults) foreach (Line line in page.Lines) { Console.WriteLine(line.Text); } During testing, you discover that the call to the GetReadResultAsync method occurs before the read operation is complete. You need to prevent the GetReadResultAsync method from proceeding until the read operation is complete. Which two actions should you perform? Each correct answer presents part of the solution. (Choose two.) NOTE: Each correct selection is worth one point. Remove the Guid.Parse(operationId) parameter. Add code to verify the results.Status value. Add code to verify the status of the txtHeaders.Status value. Wrap the call to GetReadResultAsync within a loop that contains a delay.
24
HOTSPOT You develop an application that uses the Face API. You need to add multiple images to a person group. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer Area Parallel.For(0, PersonCount, async i => { Guid personId = persons[i].PersonId; string personImageDir = $"/path/to/person/{i}/images"; foreach (string imagePath in Directory.GetFiles(personImageDir, " *. jpg")) { using ----------------- t = File.OpenRead (imagePath)) File Stream Uri Url { await faceClient. PersonGroupPerson.............................. AddFaceFromStreamAsync AddFaceFromUrlAsync CreateAsync GetAsync (personGroupId, personId, t); } });
25
7. HOTSPOT You are building a chatbot for a Microsoft Teams channel by using the Microsoft Bot Framework SDK. The chatbot will use the following code. protected override async Task OnMembersAddedAsync(IList membersAdded, ITurnContext turnContext, CancellationToken cancellationToken) { foreach (var member in membersAdded) if (member.Id != turnContext.Activity.Recipient. Id) await turnContext.SendActivityAsync($"Hi there - {member.Name}. {WelcomeMessage)", cancellationToken: cancellationToken); } For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Answer Area Statements OnMembersAddedAsync will be triggered when a user joins the conversation. When a new user joins the conversation, the existing users in the conversation will see the chatbot greeting. OnMembersAddedAsync will be initialized when a user sends a message.
26
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? machine learned Regex list Pattern.any
27
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. Actions Upload the images by category. Get suggested tags. Upload all the images. Group the images locally into category folders. Review the suggestions and confirm the tags. Tag the images manually. Answer Area
28
You need to measure the public perception of your brand on social media messages. Which Azure Cognitive Services service should you use? Text Analytics Content Moderator Computer Vision Form Recognizer
29
DRAG DROP You have a Custom Vision resource named acvdev in a development environment. You have a Custom Vision resource named acvprod in a production environment. In acvdev, you build an object detection model named obj1 in a project named proj1. You need to move obj1 to acvprod. 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. Actions Use the ExportProject endpoint on acvdev. Use the GetProjects endpoint on acvdev. Use the ImportProject endpoint on acvprod. Use the ExportIteration endpoint on acvdev. Use the GetIterations endpoint on acvdev. Use the UpdateProject endpoint on acvprod. Answer Area
29
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. (Choose two.) recall F-score weighted accuracy precision area under the curve (AUC)
30
DRAG DROP You are developing a webpage that will use the Video Indexer service to display videos of internal company meetings. You embed the Player widget and the Cognitive Insights widget into the page. You need to configure the widgets to meet the following requirements: ✑ Ensure that users can search for keywords. ✑ Display the names and faces of people in the video. ✑ Show captions in the video in English (United States). How should you complete the URL for each widget? 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. Values: en-US false people, keywords people,search search true Answer Area Cognitive Insights Widget https://www.videoindexer.ai/embed/insights///?widgets=____controls=____ Player Widget https://www.videoindexer.ai/embed/player///?showcaptions=____captions=____
30
You need to build a chatbot that meets the following requirements: ✑ Supports chit-chat, knowledge base, and multilingual models ✑ Performs sentiment analysis on user messages ✑ Selects the best language model automatically What should you integrate into the chatbot? QnA Maker, Language Understanding, and Dispatch Translator, Speech, and Dispatch Language Understanding, Text Analytics, and QnA Maker Text Analytics, Translator, and Dispatch
31
You build a language model by using a Language Understanding service. The language model is used to search for information on a contact list by using an intent named FindContact. A conversational expert provides you with the following list of phrases to use for training. Find contacts in London. Who do I know in Seattle? Search for contacts in Ukraine. You need to implement the phrase list in Language Understanding. Solution: You create a new pattern in the FindContact intent. Does this meet the goal? Yes No
32
DRAG DROP You are planning the product creation project. You need to recommend a process for analyzing videos. 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. (Choose four.) Actions Index the video by using the Video Indexer API. Upload the video to blob storage. Analyze the video by using the Computer Vision API. Extract the transcript from Microsoft Stream. Send the transcript to the Language Understanding API as an utterance. Extract the transcript from the Video Indexer API. Translate the transcript by using the Translator API. Upload the video to file storage. Answer Area
33
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? Yes No