AI-102 Question 231
Select 2You are developing an Azure-based solution that needs to translate user-provided text into multiple languages. The translated text will then be displayed in a web application. You decide to use the Azure AI Translator service. Which steps are required to successfully implement the translation functionality?
- A
Obtain an API key and endpoint URL from the Azure Translator service.
- B
Use the Text Analytics API to detect the language before translation.
- C
Send a POST request to the Translator service endpoint with the text to be translated and target language(s).
- D
Configure a custom model in Translator to handle specific domain-based translations.
- E
Enable the Neural Text-to-Speech feature in the Translator service for audio output.
Show answer and explanation
Correct answers: A, C
Explanation
To successfully implement text translation using the Azure AI Translator service, you must first obtain an API key and endpoint URL for authentication and communication with the service. You then send a POST request to the Translator endpoint with the text to be translated and the target language(s). Other steps, such as using the Text Analytics API for language detection or enabling Neural Text-to-Speech, are not required for text translation in this scenario.
- A. Correct.
Correct. To use the Azure Translator service, you must first obtain an API key and endpoint URL from the Azure portal, which are needed to authenticate and interact with the service.
- B. Incorrect.
Incorrect. The Translator service automatically detects the source language of the input text if it is not specified, so you do not need to use the Text Analytics API for this purpose.
- C. Correct.
Correct. Sending a POST request with the text and target language(s) is the necessary step to request translation from the Translator service.
- D. Incorrect.
Incorrect. While you can customize some Azure AI services, the Translator service does not require a custom model for general translation tasks unless domain-specific customization is needed, which is not mentioned in this scenario.
- E. Incorrect.
Incorrect. Neural Text-to-Speech is a separate Azure service and is not required for text translation. It is used for converting text into speech.