What to Use for Custom Offensive Terms in Azure AI Content Safety?

AI-102 By islever Editorial Last updated

Short answer

D Use a blocklist to create a custom dictionary of offensive terms in Azure AI Content Safety with minimal development effort.

Question

You have an Azure subscription that contains an Azure AI Content Safety resource named CS1. You plan to build an app that will analyze user-generated documents and identify obscure offensive terms. You need to create a dictionary that will contain the offensive terms. The solution must minimize development effort. What should you use?
  1. a text classifier
  2. language detection
  3. text moderation
  4. a blocklist Correct Answer

Key Takeaways

The question tests the ability to choose the right Azure AI Content Safety feature for custom term filtering, where a blocklist is the low-code solution for custom dictionaries compared to training a text classifier.

To identify obscure offensive terms in user-generated documents with Azure AI Content Safety, you should use a blocklist. This page establishes that custom blocklists minimize development effort by allowing you to supply a custom dictionary of terms directly to the Content Safety API.

Common mistake: Choosing a text classifier (Option A) because it sounds like a custom AI model, but training a classifier requires significant development effort compared to simply uploading a list of terms to a blocklist.

Expert Analysis

Why the Answer Is Correct

A blocklist in Azure AI Content Safety allows you to define a custom dictionary of terms that the built-in models might not catch, such as obscure or localized offensive words. By simply adding these terms to a blocklist, the Content Safety service will automatically flag or block them during analysis. This approach requires minimal development effort since you only need to manage the list items rather than train and deploy a custom machine learning model.

Why the Other Options Are Wrong

Option A, a text classifier, would require gathering training data, training a model, and deploying it, which involves significant development effort and is overkill for a simple term dictionary. Option B, language detection, merely identifies the language of the text and does not filter offensive terms. Option C, text moderation, is the built-in capability that detects profanity using default models, but it does not natively support adding custom obscure terms without integrating a blocklist.

Community Comment Notes

Commenters highlighted that a blocklist is explicitly designed for custom dictionaries of offensive terms. As kennynelcon noted, "You can supply your own list of obscure or custom offensive terms as a blocklist". Another emphasized that blocklists are specifically designed for scenarios where predefined moderation models may not cover region-specific terms, minimizing development effort by integrating directly with the service.

Official Reference

https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/use-blocklist

This link opens the official vendor documentation in a new tab.

Exam Strategy

When a question asks to minimize development effort for custom term filtering in Azure AI Content Safety, look for the blocklist feature. Avoid options that suggest training custom models unless blocklists or built-in features are explicitly insufficient for the scenario.

Community Votes

D
100%

100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 3 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 3

  1. a8da4af 👍 3 Answered D
    Blocklist is what you would use: https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/use-blocklist?tabs=windows%2Crest
  2. kennynelcon 👍 2 Answered D
    To handle a custom dictionary of offensive terms in Azure AI Content Safety, the blocklist feature is designed for exactly that scenario. You can supply your own list of obscure or custom offensive terms as a blocklist, and Content Safety will flag or block content containing those terms.
  3. syupwsh 👍 1 Answered D
    A blocklist allows you to define a custom list of offensive terms, including terms specific to local language dialects, to be flagged during content analysis. Blocklists are specifically designed for scenarios where predefined moderation models may not cover region-specific terms. Using a blocklist minimizes development effort as it integrates directly with Azure AI Content Safety. D is correct

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

← Back to AI-102 Study Guide