A company uses Azure Content Moderator to moderate text in a chat application. They want to automatically reject messages that contain profanity or personal data. Which API should they use?
The Text Moderation API screens text for profanity and personally identifiable information (PII).
Why this answer
The Text Moderation API (D) is the correct choice because it is specifically designed to scan text content for profanity, personally identifiable information (PII), and other unwanted text patterns. This API returns a moderation score and a list of detected terms, enabling automated rejection of messages that violate the defined policies.
Exam trap
The trap here is that candidates may confuse the Review API with the moderation APIs, not realizing that the Review API is for manual review workflows rather than automated content detection.
How to eliminate wrong answers
Option A is wrong because the Review API is used for human-in-the-loop review workflows, not for automated detection and rejection of profanity or personal data. Option B is wrong because the Video Moderation API is designed to moderate video content, not text messages. Option C is wrong because the Image Moderation API handles image content, not text-based chat messages.