exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 3 question 64 discussion

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

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
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
audlindr
Highly Voted 10 months, 2 weeks ago
Selected Answer: D
Answer is correct https://learn.microsoft.com/en-us/azure/ai-services/translator/reference/v3-0-translate content-type is required header https://learn.microsoft.com/en-us/azure/ai-services/translator/reference/v3-0-reference When you use a multi-service secret key, you must include two authentication headers with your request. There are two headers that you need to call the Translator. Ocp-Apim-Subscription-Key The value is the Azure secret key for your multi-service resource. Ocp-Apim-Subscription-Region The value is the region of the multi-service resource. Region is required for the multi-service Text API subscription. The region you select is the only region that you can use for text translation when using the multi-service key. It must be the same region you selected when you signed up for your multi-service subscription through the Azure portal. D is the only option with both the headers
upvoted 9 times
...
Murtuza
Highly Voted 9 months, 3 weeks ago
To create the REST API request for your app that will translate text and documents using the Azure Cognitive Services Translator resource (Translator1), you should include the following headers: Subscription Key: This key serves as the authentication token to access the service. Subscription Region: The region where your Translator resource is deployed. Content Type: Specify the type of content you are sending (e.g., JSON, plain text). Therefore, the correct answer is D. the subscription key, the subscription region, and the content type. When making the API request, ensure that you include these headers to connect your application to the Translator service.
upvoted 5 times
...
anto69
Most Recent 4 months, 4 weeks ago
Selected Answer: D
D for Copilot too
upvoted 1 times
...
HaraTadahisa
6 months, 3 weeks ago
Selected Answer: D
I say this answer is D. Please hurry up and transport the meat.
upvoted 1 times
...
reigenchimpo
7 months ago
Selected Answer: D
D is answer.
upvoted 1 times
...
takaimomoGcup
7 months, 3 weeks ago
Selected Answer: D
the subscription key, the subscription region, and the content type
upvoted 1 times
...
kay1101
8 months ago
D. https://learn.microsoft.com/en-us/azure/ai-services/translator/quickstart-text-rest-api?tabs=csharp#headers
upvoted 2 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