nerdexam
Microsoft

AI-102 · Question #121

You have the following C# method. You need to deploy an Azure resource to the East US Azure region. The resource will be used to perform sentiment analysis. How should you call the method?

The correct answer is B. create_resource("res1", "TextAnalytics", "S0", "eastus"). To perform sentiment analysis, we specify TextAnalytics, not ContentModerator. Possible SKU names include: 'F0','F1','S0','S1','S2','S3','S4','S5','S6','S7','S8' Possible location names include: westus, eastus…

Submitted by cyberguy42· Mar 30, 2026

Question

You have the following C# method. You need to deploy an Azure resource to the East US Azure region. The resource will be used to perform sentiment analysis. How should you call the method?

Exhibit

AI-102 question #121 exhibit

Options

  • Acreate_resource("res1", "ContentModerator", "S0", "eastus")
  • Bcreate_resource("res1", "TextAnalytics", "S0", "eastus")
  • Ccreate_resource("res1", "ContentModerator", "Standard", "East US")
  • Dcreate_resource("res1", "TextAnalytics", "Standard", "East US")

How the community answered

(40 responses)
  • A
    3% (1)
  • B
    80% (32)
  • C
    8% (3)
  • D
    10% (4)

Explanation

To perform sentiment analysis, we specify TextAnalytics, not ContentModerator. Possible SKU names include: 'F0','F1','S0','S1','S2','S3','S4','S5','S6','S7','S8' Possible location names include: westus, eastus https://docs.microsoft.com/en-us/powershell/module/az.cognitiveservices/new-azcognitiveservice

Topics

#Azure AI Language#Sentiment analysis#Azure resource SKUs#Azure region codes

Community Discussion

No community discussion yet for this question.

Full AI-102 Practice