exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 8 question 11 discussion

Actual exam question from Microsoft's AI-102
Question #: 11
Topic #: 8
[All AI-102 Questions]

HOTSPOT
-

You have an Azure subscription that contains an Azure AI Content Safety resource named CS1.

You need to use the SDK to call CS1 to identify requests that contain harmful content.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
a8da4af
Highly Voted 6 months ago
Answer is ContentSafetyClient and AnalyzeTextOptions : https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/use-blocklist?tabs=windows%2Crest
upvoted 5 times
pabsinaz
4 months ago
Correct: ContentSafetyClient AnalyzeTextOptions
upvoted 2 times
...
...
syupwsh
Most Recent 1 month, 4 weeks ago
ContentSafetyClient is CORRECT. This class is used to connect to the Azure AI Content Safety resource and perform operations such as analyzing text for harmful or objectionable content. By initializing the client with the correct endpoint and key, you can call the AnalyzeText method to assess the content. AnalyzeTextOptions is CORRECT. This class is used to configure the options for analyzing text, such as specifying the content to be evaluated for harmful or objectionable material. In this case, it is needed to create a request for the AnalyzeText method, which checks the input for content violations.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago