nerdexam
Microsoft

AZ-204 · Question #51

A company sells products worldwide and provides customer service in many languages. The company has a customer service email address for customer requests. The language of the email is written in need

The correct answer is B. Implement the DetectLanguageAsync method of the TextAnalyticsClient object.. The DetectLanguageAsync(String) method detects the language of a text. Incorrect Answers: A: the Spark natural language processing functionality on Azure HDInsight Doesn't support language detection. C: The RecognizeAsync method of the SpeechRecognizer object is used for speech r

Submitted by alyssa_d· Mar 30, 2026Connect to and consume Azure services and third-party services

Question

A company sells products worldwide and provides customer service in many languages. The company has a customer service email address for customer requests. The language of the email is written in needs to be recognized and routed to the appropriate local language department. You need to use the appropriate cognitive service to detect the language of the email. How should you initiate language detection?

Options

  • AUse the Spark natural language processing functionality on Azure HDInsight.
  • BImplement the DetectLanguageAsync method of the TextAnalyticsClient object.
  • CUse the RecognizeAsync method of the SpeechRecognizer object.
  • DPass the content as a query parameter to https://api.cognitive.microsoft.com/bing/v7.0/search.

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    80% (24)
  • C
    7% (2)
  • D
    10% (3)

Explanation

The DetectLanguageAsync(String) method detects the language of a text. Incorrect Answers: A: the Spark natural language processing functionality on Azure HDInsight Doesn't support language detection. C: The RecognizeAsync method of the SpeechRecognizer object is used for speech recognition. D: The request URL to https://api.cognitive.microsoft.com/bing/v7.0/search is used for customized https://docs.microsoft.com/en- us/dotnet/api/microsoft.toolkit.services.microsofttranslator.translatorservice.detectlanguageasync ?view=win-comm-toolkit-dotnet-stable

Topics

#Cognitive Services#Text Analytics#language detection#TextAnalyticsClient

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice