You plan to use Azure AI Content Safety to detect hate speech in user-generated content. Which type of content safety is most appropriate for this scenario?
Detects hate speech and offensive language in text.
Why this answer
Text moderation is the correct choice because Azure AI Content Safety's text moderation API is specifically designed to detect and filter hate speech, along with other harmful content categories like violence and self-harm, in user-generated text. It uses machine learning classifiers trained on a vast corpus to assign severity scores across predefined categories, making it the direct and most appropriate tool for this scenario.
Exam trap
The trap here is that candidates may confuse the broad 'text moderation' capability with the more specialized 'Prompt Shields' feature, mistakenly thinking prompt injection protection is the same as hate speech detection, or assume 'custom categories' are needed when the built-in hate category already suffices.
How to eliminate wrong answers
Option A is wrong because custom categories allow you to define your own specific terms or patterns for blocking, but they are not the primary or most appropriate method for detecting broad, nuanced hate speech; the service's built-in text moderation categories already cover hate speech comprehensively. Option B is wrong because image moderation is designed to analyze visual content for adult, racy, or violent imagery, not to detect hate speech in text. Option C is wrong because Prompt Shields are a feature of Azure AI Content Safety that protects against prompt injection attacks in generative AI applications, not for detecting hate speech in general user-generated content.