Courseiva

AI-900 Practice Question: Describe features of generative AI workloads on Azure

A company uses Azure OpenAI Service to generate product descriptions for an e-commerce site. They want to ensure that the generated descriptions never contain offensive, violent, or hateful content. Which built-in feature should the developer enable in the Azure OpenAI Service?

⚠ Common exam trap

A common mix-up: candidates confuse Prompt Engineering (a design practice) with a built-in safety feature, assuming that carefully worded prompts alone can guarantee safe outputs, whereas Azure OpenAI Service requires explicit Content Filtering configuration to enforce content policies.

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 Filtering

Content Filtering is a built-in safety feature in Azure OpenAI Service that automatically detects and blocks harmful content categories such as hate, violence, sexual, and self-harm. It operates at the input prompt and output completion level, ensuring generated product descriptions remain compliant with content policies without requiring custom development.

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 Filtering

    Why this is correct

    Azure OpenAI Service's built-in content filtering operates at inference time, evaluating both prompts and generated completions against configurable severity levels for hate, violence, sexual, and self-harm categories. It is a managed safety layer that blocks or flags prohibited content before you see the response, providing a deterministic enforcement mechanism independent of model parameters. Crucially, these filters cannot be disabled and serve as a hard guardrail rather than a probabilistic guideline.

  • Prompt Engineering

    Why it's wrong here

    Prompt engineering involves designing system messages, instructions, and examples to steer the model toward desired outputs, but this is a soft, instructional approach that depends on how the model interprets the wording. It cannot enforce hard guarantees because there is no programmatic check on the generated text; a cleverly phrased user input can bypass the intended behavior. Unlike the service's built-in filters, prompt engineering is a user-authored configuration, not a component of Azure OpenAI's managed runtime.

    When this WOULD be correct

    A developer wants to improve the relevance and style of generated product descriptions without retraining the model. Which technique involves carefully designing input prompts to achieve desired output characteristics?

  • Fine-tuning

    Why it's wrong here

    Fine-tuning is a training-time technique that adjusts the model's weights using a curated dataset to specialize its behavior for specific tasks such as product descriptions. However, it is not a content moderation mechanism: the resulting model still relies on learned patterns and may generate historically biased or offensive text in edge cases. Azure OpenAI does not apply any additional content filtering as a byproduct of fine-tuning, so a fine-tuned model must still be paired with the service's separate content filters or other moderation layers.

    When this WOULD be correct

    A developer needs to adapt a base model to generate product descriptions in a specific style or domain (e.g., luxury goods) using a curated dataset. Fine-tuning would be the correct answer to improve relevance and accuracy for that niche.

  • Token Limit

    Why it's wrong here

    The token limit parameter (max_tokens) caps the number of tokens, roughly subword units, the model is allowed to generate, effectively truncating long responses to fit cost and latency constraints. It only stops generation after a certain length and performs no analysis of the content's meaning or offensiveness. Consequently, an inappropriate or harmful response can still be generated in full up to the limit, making this parameter irrelevant to content safety.

    When this WOULD be correct

    A developer needs to ensure that generated product descriptions do not exceed 100 characters for a mobile app display. Enabling Token Limit would truncate responses to the specified maximum length.

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 FilteringCorrect answer

Why this is correct

Azure OpenAI Service's built-in content filtering operates at inference time, evaluating both prompts and generated completions against configurable severity levels for hate, violence, sexual, and self-harm categories. It is a managed safety layer that blocks or flags prohibited content before you see the response, providing a deterministic enforcement mechanism independent of model parameters. Crucially, these filters cannot be disabled and serve as a hard guardrail rather than a probabilistic guideline.

Prompt EngineeringWrong answer — click to see why

Why this is wrong here

Prompt Engineering is a technique for crafting inputs to guide model outputs, but it does not provide a built-in, automated safeguard to block offensive, violent, or hateful content. Azure OpenAI Service's Content Filtering is the dedicated feature for this purpose.

★ When this WOULD be the correct answer

A developer wants to improve the relevance and style of generated product descriptions without retraining the model. Which technique involves carefully designing input prompts to achieve desired output characteristics?

Why candidates choose this

Candidates may think that carefully engineered prompts can prevent offensive content, but this is unreliable and not a built-in safety feature; it requires manual effort and cannot guarantee filtering of all harmful outputs.

Fine-tuningWrong answer — click to see why

Why this is wrong here

Fine-tuning customizes the model on specific data but does not enforce content safety policies; it can even amplify biases. Content filtering is the dedicated feature for blocking offensive content.

★ When this WOULD be the correct answer

A developer needs to adapt a base model to generate product descriptions in a specific style or domain (e.g., luxury goods) using a curated dataset. Fine-tuning would be the correct answer to improve relevance and accuracy for that niche.

Why candidates choose this

Candidates may think fine-tuning can teach the model to avoid offensive content by training on safe examples, but it is not designed or reliable for safety enforcement; content filtering is the built-in safeguard.

Token LimitWrong answer — click to see why

Why this is wrong here

Token Limit controls the maximum length of generated text, not content safety. It cannot filter offensive, violent, or hateful content.

★ When this WOULD be the correct answer

A developer needs to ensure that generated product descriptions do not exceed 100 characters for a mobile app display. Enabling Token Limit would truncate responses to the specified maximum length.

Why candidates choose this

Candidates may mistakenly think that limiting output length can prevent harmful content, but token limits only cap text length, not filter content.

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?”

About these practice questions

This AI-900 question is part of Courseiva's 985-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.