AI-900 Practice Question: Describe features of generative AI workloads on Azure
What is the Azure OpenAI 'content filter' and what categories of content does it cover?
⚠ Common exam trap
Test-takers frequently confuse the content filter with other Azure AI features like cost management (max_tokens), spam detection, or PII redaction, leading them to select options that describe valid but unrelated functionalities.
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
✓
Safety filters that detect and block hate speech, sexual, violent, and self-harm content in inputs and outputs
Azure OpenAI's content filter is a safety system that uses multi-level classification models to detect and block harmful content across four categories: hate, sexual, violence, and self-harm. It applies to both user prompts (inputs) and model completions (outputs), ensuring responsible AI usage.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
A feature that limits the length of API responses to control costs
Why it's wrong here
Limiting API response length is controlled by the `max_tokens` parameter, which caps the number of tokens the model generates and directly reduces cost and latency, but it has no relation to content safety. Content filters evaluate the semantic meaning of input and output text, not their length, and they apply regardless of token count. Moreover, response-length limits are a token-budget control, not a safety mechanism, so this option does not describe Azure OpenAI content filters.
- ✓
Safety filters that detect and block hate speech, sexual, violent, and self-harm content in inputs and outputs
Why this is correct
Azure OpenAI Service's default content filters detect and block hate speech, sexual content, violence, and self-harm in both user prompts and model-generated outputs, scoring each category across severity levels such as safe, low, medium, and high. You can configure filter thresholds or add custom filters (e.g., blocklist) to enforce your organization's safety policies. These filters run at runtime before a prompt is sent to the model and again after a completion is generated, making it the correct description of content filtering.
- ✗
A spam filter that removes irrelevant or off-topic user messages
Why it's wrong here
Spam filtering focuses on message relevance or delivery preference, such as removing off-topic or unsolicited email, which is unrelated to Azure OpenAI's content safety. Azure OpenAI content filters specifically screen textual prompts and completions for the four harm categories: hate, sexual, violence, and self-harm, using severity levels. Off-topic or irrelevant user messages might be handled by application-level intent detection or relevance scoring, not by the model's safety filter.
- ✗
A filter that removes personally identifiable information from model outputs
Why it's wrong here
Removing personally identifiable information (PII) is a data privacy and compliance operation, often implemented with Azure AI Language's PII detection or Azure Purview, not a harm-related content safety measure. Azure OpenAI content filters do not redact PII; instead, they block entire inputs or outputs that violate policies for hate, sexual, violence, and self-harm. A message containing PII could still pass through safely if it contains no harmful content, whereas a harmful message would be blocked even without PII.
Go deeper
Related to this question
Learn chapter
Responsible AI Principles
Key term
Classification
Classification is a supervised machine learning technique used to predict a category or class label for new data based on patterns learned from labeled training data.
Key term
Model
In IT and AI, a model is a trained mathematical representation that learns patterns from data to make predictions or decisions.
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 →
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.