Content Filtering in Azure OpenAI
A company uses Azure OpenAI Service to generate marketing copy for social media posts. They want to prevent the model from producing content that contains offensive language, harmful stereotypes, or violent themes that go against their brand guidelines. Which feature should the company configure within Azure OpenAI Service?
Quick Answer
The correct answer is configuring the content filtering (responsible AI filters) within Azure OpenAI Service. These built-in filters automatically scan both user prompts and model outputs for offensive language, harmful stereotypes, and violent themes, blocking any content that violates predefined safety policies. This allows the company to enforce brand guidelines without needing custom model modifications or manual oversight. On the AI-900 exam, this question tests your understanding of Azure OpenAI’s responsible AI safeguards, often appearing in scenario-based questions about content safety. A common trap is confusing content filtering with content moderation APIs or custom fine-tuning—remember that filtering is a configuration toggle, not a model retraining task. Memory tip: think of “filter first, fine-tune later”—the filters are the first line of defense for brand-safe outputs.
⚠ Common exam trap
Watch out — candidates often confuse fine-tuning or prompt engineering as content safety mechanisms, when in fact Azure OpenAI's content filtering is the only built-in feature designed specifically to block offensive or harmful content at inference 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
✓
Configuring the content filtering (responsible AI filters)
B is correct because Azure OpenAI Service includes built-in content filtering (responsible AI filters) that automatically detects and blocks offensive language, harmful stereotypes, and violent themes in both input prompts and generated outputs. This feature enforces brand guidelines without requiring custom model modifications or manual oversight.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Fine-tuning the model with a custom dataset
Why it's wrong here
Fine-tuning trains the model on specific data to improve performance on a task. However, it does not inherently filter out objectionable content; the model might still generate harmful text if the fine-tuning data contains such patterns.
When this WOULD be correct
A company needs the model to generate marketing copy in a specific brand voice (e.g., formal, humorous) and has a large dataset of approved examples. Fine-tuning would adapt the model to that style, whereas content filtering alone cannot achieve stylistic alignment.
- ✓
Configuring the content filtering (responsible AI filters)
Why this is correct
Azure OpenAI’s content filtering system is a built-in safeguard that automatically screens inputs and outputs for categories like hate, violence, sexual content, and self-harm. Companies can configure severity levels to prevent undesirable content from being generated.
- ✗
Increasing the token limit per response
Why it's wrong here
Token limits control the maximum length of the text generated (e.g., 200 tokens). They do not prevent the model from producing harmful content; they only limit how long the output can be.
When this WOULD be correct
A question asks: 'Which configuration should be adjusted to allow the model to generate longer marketing copy for a detailed product description?' In that scenario, increasing the token limit per response would be correct.
- ✗
Using prompt engineering techniques
Why it's wrong here
Prompt engineering (e.g., adding instructions like 'do not use bad language') can help guide the model, but it is not a guaranteed safety mechanism. The model may still generate inappropriate content if the instruction is not perfectly followed. Content filtering is the official safeguard.
When this WOULD be correct
When the question asks how to improve the relevance or style of generated content without changing the underlying model, such as 'A company wants to ensure marketing copy consistently uses a friendly tone without retraining the model. Which technique should they use?'
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AI-900 exam frequently reuses these exact scenarios with slightly different constraints.
✓Configuring the content filtering (responsible AI filters)Correct answer▾
Why this is correct
Azure OpenAI’s content filtering system is a built-in safeguard that automatically screens inputs and outputs for categories like hate, violence, sexual content, and self-harm. Companies can configure severity levels to prevent undesirable content from being generated.
✗Fine-tuning the model with a custom datasetWrong answer — click to see why▾
Why this is wrong here
Fine-tuning adjusts model behavior on custom data but does not enforce content safety filters; it can even amplify biases if the dataset contains problematic content. Azure OpenAI's content filtering system is specifically designed to block offensive, harmful, or violent outputs regardless of the model's training.
★ When this WOULD be the correct answer
A company needs the model to generate marketing copy in a specific brand voice (e.g., formal, humorous) and has a large dataset of approved examples. Fine-tuning would adapt the model to that style, whereas content filtering alone cannot achieve stylistic alignment.
Why candidates choose this
Candidates may think fine-tuning can 'teach' the model to avoid certain topics, but they overlook that fine-tuning does not guarantee safety compliance and that Azure provides a dedicated content filtering service for that purpose.
✗Increasing the token limit per responseWrong answer — click to see why▾
Why this is wrong here
Increasing the token limit per response controls the maximum length of generated text, but does not prevent offensive or harmful content. Content filtering is required to enforce brand safety guidelines.
★ When this WOULD be the correct answer
A question asks: 'Which configuration should be adjusted to allow the model to generate longer marketing copy for a detailed product description?' In that scenario, increasing the token limit per response would be correct.
Why candidates choose this
Candidates may mistakenly think that limiting output length can reduce harmful content, or they confuse token limits with content moderation controls.
✗Using prompt engineering techniquesWrong answer — click to see why▾
Why this is wrong here
Prompt engineering can guide model outputs but does not provide a systematic, configurable filter to block offensive language, harmful stereotypes, or violent themes as required by brand guidelines.
★ When this WOULD be the correct answer
When the question asks how to improve the relevance or style of generated content without changing the underlying model, such as 'A company wants to ensure marketing copy consistently uses a friendly tone without retraining the model. Which technique should they use?'
Why candidates choose this
Candidates may overestimate the power of prompt engineering to enforce safety constraints, confusing it with the built-in content filtering that Azure OpenAI provides for responsible AI.
Analysis generated from the official AI-900blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Go deeper
Related to this question
Learn chapter
Responsible AI Principles
Key term
Feature
A feature is a distinct unit of functionality that delivers value to the user, often managed and tracked throughout the software development lifecycle.
Key term
Azure OpenAI Service
Azure OpenAI Service is a cloud platform from Microsoft that lets developers use powerful artificial intelligence models, like GPT-4, to build applications that can understand and generate human-like text, code, images, and more.
About these practice questions
Courseiva writes every AI-900 question from scratch — 985 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
2 more ways this is tested on AI-900
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. A company uses Azure OpenAI Service to generate marketing copy. They want to ensure that the generated text does not contain offensive language or harmful stereotypes, even if the prompt inadvertently leads the model in that direction. Which Azure OpenAI feature should they configure to help prevent such outputs?
medium- ✓ A.Content filtering
- B.Prompt engineering
- C.Fine-tuning
- D.Few-shot learning
Why A: Content filtering in Azure OpenAI Service uses a set of pre-built, configurable filters to detect and block harmful content categories such as hate, violence, sexual, and self-harm. This feature operates at the service level, intercepting both prompts and completions to prevent offensive language or harmful stereotypes from being generated, regardless of how the prompt is phrased.
Variation 2. A company uses Azure OpenAI to generate marketing copy. They want to ensure that the generated text does not contain inappropriate or harmful content before it is published. Which Azure OpenAI feature is specifically designed for this purpose?
medium- A.Temperature
- B.Top-p (nucleus sampling)
- C.System message
- ✓ D.Content filters
Why D: Content filters are the Azure OpenAI feature specifically designed to detect and block inappropriate or harmful content in generated text. They apply configurable severity levels across categories like hate, violence, self-harm, and sexual content, ensuring outputs meet safety policies before publication.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI-900 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-900 exam.