Microsoft
AI-102 · Question #279
You have the following Python 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 D. 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 rania.sa· Mar 30, 2026ERROR: Official Exam Domains list was empty in the prompt, could not select a domain.
Question
You have the following Python 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
Options
- Acreate_resource("res1", "TextAnalytics", "Standard", "East US")
- Bcreate_resource("res1", "ContentModerator", "S0", "eastus")
- Ccreate_resource("res1", "ContentModerator", "Standard", "East US")
- Dcreate_resource("res1", "TextAnalytics", "S0", "eastus")
How the community answered
(22 responses)- A23% (5)
- B9% (2)
- C5% (1)
- D64% (14)
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 Text Analytics#Sentiment analysis#Cognitive Services SKU#Azure region formats
Community Discussion
No community discussion yet for this question.
