- A
Set the temperature parameter to 0
Why wrong: Temperature controls randomness in the output. Setting it to 0 makes the output more deterministic but does not block harmful code.
- B
Enable content filters
Content filters are designed to detect and prevent the generation of harmful content, including code that could be used maliciously. This is the most direct way to improve safety.
- C
Set max_tokens to a low value
Why wrong: Max_tokens limits the length of the generated response, but it does not filter the content itself. Harmful code could still be generated within the token limit.
- D
Use a specific system message that requests secure code
Why wrong: While a system message can instruct the model to produce safe code, it is not enforced. The model may still generate unsafe code. Content filters provide a stronger guarantee.
Quick Answer
The answer is to enable content filters. Content filters in Azure OpenAI act as a safety layer that actively scans both the prompt and the generated code for prohibited patterns, including security vulnerabilities and malicious instructions, even when the prompt is ambiguous. This feature is specifically designed to detect and block harmful content, making it the correct choice for minimizing security risks in generated code for sensitive applications like banking. On the Microsoft Azure AI Fundamentals AI-900 exam, this question tests your understanding of Azure OpenAI’s safety systems versus other parameters like temperature or max tokens, which control creativity or length but not security. A common trap is confusing content filters with system messages or grounding data, but only filters provide automated, real-time scanning for prohibited content. Memory tip: think of content filters as a “security guard” that checks every line of code before it leaves the model, ensuring no malicious instructions slip through.
AI-900 Practice Question: Describe features of generative AI workloads on Azure
This AI-900 practice question tests your understanding of describe features of generative ai workloads on azure. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A developer is using Azure OpenAI to generate code snippets for a banking application. The developer wants to minimize the risk that the generated code contains security vulnerabilities or malicious instructions, even if the prompt is ambiguous. Which Azure OpenAI feature should the developer configure to address this concern?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"minimum / minimize"Why it matters: Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.
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
Enable content filters
Content filters in Azure OpenAI are specifically designed to detect and block harmful content, including security vulnerabilities and malicious instructions, in both prompts and completions. Unlike other parameters, content filters provide a safety layer that actively scans generated code for prohibited patterns, making them the correct choice for minimizing security risks in ambiguous prompts.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set the temperature parameter to 0
Why it's wrong here
Temperature controls randomness in the output. Setting it to 0 makes the output more deterministic but does not block harmful code.
- ✓
Enable content filters
Why this is correct
Content filters are designed to detect and prevent the generation of harmful content, including code that could be used maliciously. This is the most direct way to improve safety.
Clue confirmation
The clue word "minimum / minimize" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Set max_tokens to a low value
Why it's wrong here
Max_tokens limits the length of the generated response, but it does not filter the content itself. Harmful code could still be generated within the token limit.
- ✗
Use a specific system message that requests secure code
Why it's wrong here
While a system message can instruct the model to produce safe code, it is not enforced. The model may still generate unsafe code. Content filters provide a stronger guarantee.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse model parameters (temperature, max_tokens) or prompt engineering (system messages) with actual safety mechanisms, overlooking that content filters are the only built-in feature that actively enforces security policies on generated output.
Trap categories for this question
Command / output trap
Temperature controls randomness in the output. Setting it to 0 makes the output more deterministic but does not block harmful code.
Detailed technical explanation
How to think about this question
Content filters in Azure OpenAI operate at multiple severity levels (low, medium, high) across categories like hate, violence, self-harm, and security-related content, using both pre-trained classifiers and customizable thresholds. Under the hood, these filters are applied after the model generates a response, allowing them to block or replace completions that violate configured policies, even if the model itself would have produced harmful output. In a real-world banking scenario, content filters can prevent the generation of code containing SQL injection patterns or hardcoded credentials, which a system message alone might not catch.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Describe features of generative AI workloads on Azure — study guide chapter
Learn the concepts, then practise the questions
- →
Describe features of generative AI workloads on Azure practice questions
Targeted practice on this topic area only
- →
All AI-900 questions
1,020 questions across all exam domains
- →
Microsoft Azure AI Fundamentals AI-900 study guide
Full concept coverage aligned to exam objectives
- →
AI-900 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AI-900 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Describe Artificial Intelligence workloads and considerations practice questions
Practise AI-900 questions linked to Describe Artificial Intelligence workloads and considerations.
Describe fundamental principles of machine learning on Azure practice questions
Practise AI-900 questions linked to Describe fundamental principles of machine learning on Azure.
Describe features of computer vision workloads on Azure practice questions
Practise AI-900 questions linked to Describe features of computer vision workloads on Azure.
Describe features of Natural Language Processing workloads on Azure practice questions
Practise AI-900 questions linked to Describe features of Natural Language Processing workloads on Azure.
Describe features of generative AI workloads on Azure practice questions
Practise AI-900 questions linked to Describe features of generative AI workloads on Azure.
AI-900 fundamentals practice questions
Practise AI-900 questions linked to AI-900 fundamentals.
AI-900 scenario practice questions
Practise AI-900 questions linked to AI-900 scenario.
AI-900 troubleshooting practice questions
Practise AI-900 questions linked to AI-900 troubleshooting.
Practice this exam
Start a free AI-900 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AI-900 question test?
Describe features of generative AI workloads on Azure — This question tests Describe features of generative AI workloads on Azure — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Enable content filters — Content filters in Azure OpenAI are specifically designed to detect and block harmful content, including security vulnerabilities and malicious instructions, in both prompts and completions. Unlike other parameters, content filters provide a safety layer that actively scans generated code for prohibited patterns, making them the correct choice for minimizing security risks in ambiguous prompts.
What should I do if I get this AI-900 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "minimum / minimize". Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 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 marketing team wants to use Azure OpenAI to generate blog posts. They require the output to avoid toxic language and adhere to their brand safety guidelines. Which Azure OpenAI feature should they configure to automatically block harmful content?
easy- ✓ A.Content filters
- B.Grounding
- C.Temperature
- D.Few-shot learning
Why A: Content filters in Azure OpenAI are designed to automatically detect and block harmful content, including toxic language, hate speech, and violence, based on configurable severity levels. This feature directly addresses the marketing team's requirement to enforce brand safety guidelines by filtering out undesirable outputs before they are returned to the user.
Last reviewed: Jun 11, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.