exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 3 question 29 discussion

Actual exam question from Microsoft's AI-102
Question #: 28
Topic #: 3
[All AI-102 Questions]

HOTSPOT -
You are developing an application that includes language translation.
The application will translate text retrieved by using a function named get_text_to_be_translated. 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.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: ("api-nam.cognitive.microsofttranslator.com")
Geography USA: api-nam.cognitive.microsofttranslator.com
Datacenters: East US, South Central US, West Central US, and West US 2
Box 2: "/translate?to=en"
Must specify the language which it is being translated to. The 'to' parameter is required
Reference:
https://docs.microsoft.com/en-us/azure/cognitive-services/translator/reference/v3-0-reference https://docs.microsoft.com/en-us/azure/cognitive-services/translator/reference/v3-0-translate

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
zellck
Highly Voted 1 year, 6 months ago
1.api-nam.cognitive.microsofttranslator.com 2. /translate?to=en https://learn.microsoft.com/en-us/azure/cognitive-services/Translator/reference/v3-0-reference#base-urls Requests to Translator are, in most cases, handled by the datacenter that is closest to where the request originated. If there's a datacenter failure when using the global endpoint, the request may be routed outside of the geography. To force the request to be handled within a specific geography, use the desired geographical endpoint. All requests are processed among the datacenters within the geography. - United States api-nam.cognitive.microsofttranslator.com https://learn.microsoft.com/en-us/azure/cognitive-services/translator/reference/rest-api-guide - translate Translate specified source language text into the target language text.
upvoted 19 times
rdemontis
1 year, 2 months ago
agree with you, answer is correct
upvoted 4 times
...
...
krzkrzkra
Most Recent 5 months, 4 weeks ago
1.api-nam.cognitive.microsofttranslator.com 2. /translate?to=en
upvoted 1 times
...
reiwanotora
7 months, 2 weeks ago
api-nam.cognitive.microsofttranslator.com translate?to=en
upvoted 2 times
...
evangelist
11 months, 3 weeks ago
"api-apc.cognitive.microsofttranslator.com" refers to the Asia Pacific endpoint. Using this endpoint will route requests to Azure data centers located in Asia Pacific for processing. "api-nam.cognitive.microsofttranslator.com" refers to the North America endpoint. Using this endpoint will route requests to Azure data centers located in North America for processing. So in summary: "api-apc.cognitive.microsofttranslator.com" - Asia Pacific endpoint "api-nam.cognitive.microsofttranslator.com" - North America endpoint
upvoted 3 times
...
Gvalli
1 year ago
A modified version of this was in the exam today.
upvoted 2 times
...
ddogg
1 year, 4 months ago
I feel like the second one should be /detect?to=en since the input can be multiple unspecified languages.
upvoted 2 times
...
ziggy1117
1 year, 7 months ago
answer is correct
upvoted 1 times
...
Davard
2 years, 3 months ago
The answer seems correct to me. api.nam would keep it within the US.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago