Designing and Implementing a Microsoft Azure AI Solution — Question 38
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?
Answer options
- 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
Correct answer: D
Explanation
The correct answer is D because the subscription key is required for authentication, the subscription region indicates the endpoint to use, and the content type specifies the format of the request. Options A, B, and C do not include the necessary headers for a valid request to the Translator resource in Azure Cognitive Services.