Question 13

- (Exam Topic 2)
You are designing a conversation flow to be used in a chatbot.
You need to test the conversation flow by using the Microsoft Bot Framework Emulator.
How should you complete the .chat file? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
AI-102 dumps exhibit
Solution:
Graphical user interface, text, application Description automatically generated
Reference:
https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-add-media-attachments?view=azure-bot-s

Does this meet the goal?

Correct Answer:A

Question 14

- (Exam Topic 2)
You have a Computer Vision resource named contoso1 that is hosted in the West US Azure region.
You need to use contoso1 to make a different size of a product photo by using the smart cropping feature. How should you complete the API URL? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
AI-102 dumps exhibit
Solution:
Graphical user interface, text, application, Word Description automatically generated
Reference:
https://westus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-2/operations/56f91f2e778daf14a4 https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/concept-generating-thumbnails#exam

Does this meet the goal?

Correct Answer:A

Question 15

- (Exam Topic 2)
You are developing a solution to generate a word cloud based on the reviews of a company’s products. Which Text Analytics REST API endpoint should you use?

Correct Answer:A
Reference:
https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview

Question 16

- (Exam Topic 2)
You have the following C# method for creating Azure Cognitive Services resources programmatically.
AI-102 dumps exhibit
You need to call the method to create a free Azure resource in the West US Azure region. The resource will be used to generate captions of images automatically.
Which code should you use?

Correct Answer:B
Many of the Cognitive Services have a free tier you can use to try the service. To use the free tier, use F0 as the SKU for your resource.
There are two tiers of keys for the Custom Vision service. You can sign up for a F0 (free) or S0 (standard) subscription through the Azure portal.
Reference:
https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-apis-create-account-client-library? https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/limits-and-quotas

Question 17

- (Exam Topic 2)
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.
AI-102 dumps exhibit
Solution:
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 { "it", "fr", "de" }; translationConfig.SpeechRecognitionLanguage = fromLanguage; toLanguages.ForEach(translationConfig.AddTargetLanguage);
using var recognizer = new TranslationRecognizer(translationConfig);
}

Does this meet the goal?

Correct Answer:A

Question 18

- (Exam Topic 2)
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:
AI-102 dumps exhibit Use a single key and endpoint to access multiple services.
AI-102 dumps exhibit Consolidate billing for future services that you might use.
AI-102 dumps exhibit 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.
AI-102 dumps exhibit
Solution:
Box 1: PUT
Sample Request: PUT
https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg
Reference:
https://docs.microsoft.com/en-us/rest/api/deviceupdate/resourcemanager/accounts/create https://www.analyticsvidhya.com/blog/2020/12/microsoft-azure-cognitive-services-api-for-ai-development/

Does this meet the goal?

Correct Answer:A

START AI-102 EXAM