AI-900 Practice Question: Describe features of generative AI workloads on Azure
A game development company uses Azure OpenAI Service to automatically generate in-game dialog for non-player characters (NPCs) based on character profiles. They need to ensure the generated text does not contain offensive language or harmful suggestions. Which Azure OpenAI Service feature should they configure to prevent this?
⚠ Common exam trap
Watch out — candidates often confuse prompt engineering (which can reduce but not eliminate harmful outputs) with the built-in content filter feature, which is the only option that provides a guaranteed, policy-enforced safety mechanism.
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
✓
Content filters
Content filters in Azure OpenAI Service allow you to define categories of harmful content (e.g., hate, violence, self-harm) and set severity thresholds. When generating NPC dialog, the service automatically evaluates each output against these filters and blocks or flags any text that violates the configured policies, ensuring offensive language or harmful suggestions are prevented.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Content filters
Why this is correct
Azure OpenAI Service includes a set of configurable content filters that classify both prompts and completions into severity levels for categories such as hate, self-harm, sexual, and violent content. When a severity threshold is hit, the service blocks the response or returns a generic 'content filtered' message. This runtime safety control is the correct mechanism to prevent the model from generating offensive or inappropriate outputs, because it evaluates the actual semantic content in real time.
- ✗
Model deployment
Why it's wrong here
Deploying a model through Azure OpenAI involves provisioning an endpoint with a chosen model version, region, and scaling and capacity options, which makes the model available to client applications. Deployment decisions affect latency, availability, throughput, and quota, but they have no bearing on whether a particular output is harmful or inappropriate. Content filters are applied uniformly at inference time for every request, regardless of which deployment handles it, so filtering works independently of deployment configuration.
When this WOULD be correct
A company needs to make a trained model available for real-time inference in a production application. They should configure model deployment to set up the endpoint and manage scaling.
- ✗
Token limit
Why it's wrong here
The token limit parameter (max_tokens) caps the maximum number of tokens or words that Azure OpenAI is allowed to generate, which directly controls response length, latency, and associated cost. It does not assess the semantic meaning of the text being produced, so a harmful sentence could still appear in full before the limit is reached. Lowering the token limit might truncate an undesirable response, but it cannot classify or block content as unsafe, making it purely a length-control mechanism.
When this WOULD be correct
A company needs to ensure that API responses from Azure OpenAI Service do not exceed a certain number of tokens due to cost or performance constraints. Configuring the token limit would cap the response length.
- ✗
Prompt engineering
Why it's wrong here
Prompt engineering focuses on crafting system messages, few-shot examples, and careful instructions to steer the model toward desirable tone, style, and topic boundaries. While a well-designed prompt can reduce the likelihood of off-topic or unsafe outputs, it cannot guarantee that the model will always follow those constraints, especially against adversarial or novel inputs. Azure OpenAI's content filters add a deterministic, policy-based enforcement layer that does not rely on the model's instruction-following capability, so prompt engineering alone is insufficient to block inappropriate content.
When this WOULD be correct
A question asks: 'A developer wants to improve the relevance and tone of AI-generated responses for a customer support chatbot without modifying the underlying model. Which technique should they use?' In that scenario, prompt engineering 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.
✓Content filtersCorrect answer▾
Why this is correct
Azure OpenAI Service includes a set of configurable content filters that classify both prompts and completions into severity levels for categories such as hate, self-harm, sexual, and violent content. When a severity threshold is hit, the service blocks the response or returns a generic 'content filtered' message. This runtime safety control is the correct mechanism to prevent the model from generating offensive or inappropriate outputs, because it evaluates the actual semantic content in real time.
✗Model deploymentWrong answer — click to see why▾
Why this is wrong here
Model deployment refers to hosting and scaling the model, not to controlling the safety or appropriateness of generated content. It does not provide any filtering or moderation capabilities.
★ When this WOULD be the correct answer
A company needs to make a trained model available for real-time inference in a production application. They should configure model deployment to set up the endpoint and manage scaling.
Why candidates choose this
Candidates may confuse the process of deploying a model with configuring its behavior, thinking that deployment settings include safety controls.
✗Token limitWrong answer — click to see why▾
Why this is wrong here
Token limit controls the maximum length of generated text, not the content's safety or appropriateness. It cannot filter offensive language or harmful suggestions.
★ When this WOULD be the correct answer
A company needs to ensure that API responses from Azure OpenAI Service do not exceed a certain number of tokens due to cost or performance constraints. Configuring the token limit would cap the response length.
Why candidates choose this
Candidates may confuse token limit with content filtering, thinking that limiting tokens could reduce the chance of harmful content appearing, but it does not address content safety.
✗Prompt engineeringWrong answer — click to see why▾
Why this is wrong here
Prompt engineering involves crafting input prompts to guide model output, but it does not provide a systematic, configurable safeguard against offensive or harmful content. Content filters are the dedicated Azure OpenAI Service feature for blocking such content.
★ When this WOULD be the correct answer
A question asks: 'A developer wants to improve the relevance and tone of AI-generated responses for a customer support chatbot without modifying the underlying model. Which technique should they use?' In that scenario, prompt engineering would be correct.
Why candidates choose this
Candidates may think that carefully designed prompts can prevent offensive output, but they overlook that content filters are the explicit, built-in mechanism for safety, while prompt engineering is less reliable for enforcing content policies.
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
Azure Machine Learning Studio
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.
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 →
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.