AI-102 exam dumps

AI-102 practice question 233 of 493

Designing and Implementing a Microsoft Azure AI Solution. Professional level, Microsoft. Free question with the correct answer and a full explanation.

AI-102 Question 233

Select 3

You are developing an application that needs to translate user-generated text from English to multiple languages, including Spanish, German, and Japanese. The application should also detect the text's language automatically and allow for dynamic language selection. Which configuration steps are necessary to implement this functionality using the Azure AI Translator service?

  1. A

    Use the Translator Text API to detect the language of the input text before translation.

  2. B

    Call the TranslateDocument API to dynamically translate the text into the selected languages.

  3. C

    Specify the target languages in the 'to' parameter of the Translate Text API request.

  4. D

    Enable the Auto-Detect Language feature in the Azure Translator resource settings.

  5. E

    Pass the input text to the Translate Text API without specifying the source language.

Show answer and explanation

Correct answers: A, C, E

Explanation

To translate user-generated text into multiple languages using the Azure AI Translator service, the Translator Text API should be used. It allows for automatic language detection by omitting the source language parameter and specifying the target languages via the 'to' parameter. The TranslateDocument API is not suitable here since it is designed for document translation, not text strings. Additionally, auto-detection is a feature of the API itself and does not require separate configuration in the Azure portal.

  • A. Correct.

    Correct. The Translator Text API includes functionality for automatic language detection if the source language is not specified, making this a necessary step.

  • B. Incorrect.

    Incorrect. The TranslateDocument API is specifically for translating entire documents, not discrete text strings, making it unsuitable for this use case.

  • C. Correct.

    Correct. The 'to' parameter in the Translate Text API request determines the target languages for translation, so this must be specified.

  • D. Incorrect.

    Incorrect. Language auto-detection is not a setting to enable in the Azure Translator resource but rather a built-in feature of the Translator Text API when the source language is not provided.

  • E. Correct.

    Correct. By not specifying the source language, the Translator Text API will automatically detect it during translation, fulfilling the requirement for automatic language detection.

Timed practice exam

Take a AI-102 practice test under exam conditions

40 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam