Configure Content Safety Filters in Azure OpenAI
Your company uses Azure OpenAI Service to generate product descriptions. You need to ensure that the generated content does not include offensive language and adheres to responsible AI principles. What should you implement?
Quick Answer
The correct answer is to configure content filters in Azure OpenAI. This is because content filters allow you to define specific categories—such as hate, violence, and self-harm—along with severity levels (low, medium, high) to automatically block or flag offensive language in generated outputs, directly enforcing responsible AI principles without requiring model retraining. On the Microsoft Azure AI Engineer Associate AI-102 exam, this concept tests your understanding of Azure OpenAI’s built-in safety mechanisms, often appearing in scenario-based questions where you must choose between retraining, encryption, or filtering; the common trap is selecting “modify the model’s training data” instead of leveraging the configurable filter system. Remember the mnemonic “C-SAFE”: Categories, Severity, Auto-block, Filter, Enforce—to recall that content filters are the straightforward, policy-driven solution for responsible AI compliance.
⚠ Common exam trap
Watch out — candidates often confuse data security controls (like encryption or throttling) with content safety controls, assuming any 'security' feature can filter offensive language, when in fact only purpose-built content filters can analyze and block harmful text in real time.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Configure content filters in Azure OpenAI
Content filters in Azure OpenAI allow you to define categories (e.g., hate, violence, self-harm) and severity levels (low, medium, high) to automatically block or flag offensive language in generated outputs. This directly enforces responsible AI principles by preventing harmful content from being surfaced to users, without requiring model retraining or encryption changes.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable customer-managed key encryption
Why it's wrong here
Customer-managed keys encrypt data at rest in the Azure OpenAI resource; they have no effect on the text the model generates. Encryption at rest is the right control when regulatory requirements mandate key ownership, not when filtering offensive output is the goal.
- ✓
Configure content filters in Azure OpenAI
Why this is correct
Configuring content filters in Azure OpenAI applies severity-based screening across hate, violence, sexual and self-harm categories on both prompts and completions, blocking offensive output before it reaches users. This directly satisfies the stem's requirement to prevent offensive language and uphold responsible AI principles, unlike prompt engineering or moderation applied after generation.
- ✗
Fine-tune the model with a curated dataset
Why it's wrong here
Fine-tuning shapes tone, format and domain vocabulary; it does not enforce content safety, since a curated dataset cannot guarantee outputs avoid offensive language. Content filters are the mechanism that blocks harmful categories. Fine-tuning is correct when adapting style or task accuracy, not for responsible AI guardrails.
- ✗
Set usage limits and throttling
Why it's wrong here
Usage limits and throttling cap request volume and token consumption to control cost and abuse; they do not inspect or block offensive content within a response. Throttling is correct when protecting quota or preventing runaway spend, not for enforcing responsible AI content policies.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AI-102 question from scratch — 761 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on AI-102
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Your company uses Azure OpenAI Service to generate marketing content. You need to ensure that the generated content does not contain offensive language. Which feature should you enable?
easy- ✓ A.Azure AI Content Safety filters.
- B.Audit logging for all API calls.
- C.Data encryption at rest.
- D.Rate limiting on the endpoint.
Why A: Azure AI Content Safety filters are specifically designed to detect and block offensive, inappropriate, or harmful language in text and images. By enabling these filters on your Azure OpenAI Service deployment, you can configure severity thresholds for categories like hate, self-harm, sexual, and violence content, ensuring generated marketing content meets safety policies.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-102 exam.