AI-900 Practice Question: Describe features of generative AI workloads on Azure
A marketing team uses Azure OpenAI Service to generate ad copy. They notice the model sometimes uses offensive language. Which Azure OpenAI feature should they use to automatically block such content?
⚠ Common exam trap
Watch out — candidates often confuse model parameters (temperature, frequency_penalty, max_tokens) with safety features, assuming they can control content appropriateness, when in fact content filtering is a separate, dedicated mechanism in Azure OpenAI Service.
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
✓
Enabling content filtering
Azure OpenAI Service includes built-in content filtering that automatically detects and blocks offensive or harmful language in both prompts and completions. This feature uses AI-based classifiers to enforce responsible AI policies without requiring manual configuration of model parameters.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Setting the temperature parameter to 0.0
Why it's wrong here
Setting temperature to 0.0 forces the model to always choose the highest-probability token at each step, making the output highly deterministic and reducing surprising or creative phrasing, but it does not apply any safety classification. The model's trained probability distribution still includes harmful language, and deterministic sampling can even lock in a problematic phrase if that phrase is the top-ranked completion. Temperature controls the trade-off between randomness and predictability, not the responsible AI safeguards that filter content.
When this WOULD be correct
If the question asked how to make the model produce more focused, less creative outputs (e.g., for factual Q&A), setting temperature to 0.0 would be correct.
- ✗
Using the frequency_penalty parameter
Why it's wrong here
The frequency_penalty parameter adjusts the logit scores of tokens based on how often they have already appeared in the generated sequence, making the model less likely to repeat itself but leaving the actual word choices unfiltered. It operates at the arithmetic level of token selection and has no concept of offensiveness, so a biased or profane phrase could still be generated even with a high penalty value. This parameter is useful for reducing redundancy in marketing copy, not for enforcing content safety.
When this WOULD be correct
A question asks: 'The model is generating repetitive ad copy. Which parameter should be adjusted to reduce repetition?' In that scenario, frequency_penalty is the correct answer.
- ✓
Enabling content filtering
Why this is correct
Content filtering in Azure OpenAI Service is a built-in safety layer that evaluates both the input prompt and the generated completion against Microsoft's content moderation policies, covering categories such as hate, sexual, violence, and self-harm at multiple severity levels. When enabled, the service can block or annotate harmful content before it reaches the advertiser, which directly prevents the ad copy from containing offensive language. It is the only option here that actively assesses the semantic safety of the output, rather than altering generation parameters.
- ✗
Configuring the max_tokens parameter
Why it's wrong here
max_tokens sets a hard limit on the number of tokens (roughly word pieces) the model can produce in a single completion, effectively truncating the response when it reaches that length. It does not scan or classify the words that are generated; it merely stops generation at a predetermined size, so harmful phrases can easily appear within the allowed token budget. For example, a short, offensive slogan would fit within a 50-token limit, demonstrating that length restrictions are orthogonal to content moderation.
When this WOULD be correct
When a question asks how to prevent excessively long responses that exceed API cost or latency limits, setting max_tokens to an appropriate value would be correct.
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.
✓Enabling content filteringCorrect answer▾
Why this is correct
Content filtering in Azure OpenAI Service is a built-in safety layer that evaluates both the input prompt and the generated completion against Microsoft's content moderation policies, covering categories such as hate, sexual, violence, and self-harm at multiple severity levels. When enabled, the service can block or annotate harmful content before it reaches the advertiser, which directly prevents the ad copy from containing offensive language. It is the only option here that actively assesses the semantic safety of the output, rather than altering generation parameters.
✗Setting the temperature parameter to 0.0Wrong answer — click to see why▾
Why this is wrong here
Setting temperature to 0.0 makes output more deterministic but does not filter offensive language; it only reduces randomness.
★ When this WOULD be the correct answer
If the question asked how to make the model produce more focused, less creative outputs (e.g., for factual Q&A), setting temperature to 0.0 would be correct.
Why candidates choose this
Candidates may think lowering temperature reduces undesirable outputs, confusing randomness control with content safety filtering.
✗Using the frequency_penalty parameterWrong answer — click to see why▾
Why this is wrong here
The frequency_penalty parameter reduces repetition of token sequences but does not filter offensive or inappropriate content. It cannot block specific categories of language like hate speech or profanity.
★ When this WOULD be the correct answer
A question asks: 'The model is generating repetitive ad copy. Which parameter should be adjusted to reduce repetition?' In that scenario, frequency_penalty is the correct answer.
Why candidates choose this
Candidates may confuse content filtering with other model parameters, thinking that penalizing frequency can somehow reduce offensive language, or they may not fully understand the distinct roles of safety filters versus generation controls.
✗Configuring the max_tokens parameterWrong answer — click to see why▾
Why this is wrong here
Configuring max_tokens limits the length of generated text but does not filter offensive content; it only truncates output after a token count.
★ When this WOULD be the correct answer
When a question asks how to prevent excessively long responses that exceed API cost or latency limits, setting max_tokens to an appropriate value would be correct.
Why candidates choose this
Candidates may mistakenly believe that limiting output length can prevent offensive content, or they confuse token limits with content moderation controls.
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
Model
In IT and AI, a model is a trained mathematical representation that learns patterns from data to make predictions or decisions.
Key term
Service
A service is a software component or system that performs a specific function and is available to be used by other programs or users over a network.
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.