Courseiva

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

A company uses a generative AI model to create blog posts. They want to ensure that the model's output never contains offensive or harmful language before the content is published. They implement a system that checks the generated text against a list of prohibited terms and blocks or edits the content if necessary. Which type of safety measure is this?

⚠ Common exam trap

Test-takers frequently confuse post-processing filtering with pre-training or fine-tuning methods, assuming that any safety measure must involve modifying the model itself, rather than recognizing that a runtime check on output is a distinct and valid safety layer.

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

Post-processing content filtering

The described system operates after the model generates text, scanning the output against a prohibited terms list and blocking or editing it. This is a classic post-processing content filtering approach, distinct from modifying the model's training data, prompts, or weights. Azure AI Content Safety is an example of such a post-processing filter that can be applied to generative AI outputs.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Pre-training data cleaning

    Why it's wrong here

    Pre-training data cleaning is a data curation step performed before model training, where offensive, biased, or low-quality examples are removed from the training corpus to shape the model's prior knowledge. This influences what the model learns, but once training is done, the weights are frozen and inference-time outputs are generated without any reference to the cleaned dataset. It therefore cannot inspect or block a generated blog post after it has been produced, making it a poor fit for a post-generation safety mechanism.

  • Prompt engineering with safety instructions

    Why it's wrong here

    Prompt engineering with safety instructions adds directives to the input prompt (for example, 'do not produce offensive content') so the model conditions its next-token sampling on that guidance. However, these instructions are probabilistic soft constraints—the model can still assign nonzero probability to a harmful continuation, and no post-generation verification step reads the final output to catch slips. Thus it may reduce but cannot guarantee the absence of offensive text in every generated blog post.

  • Post-processing content filtering

    Why this is correct

    Post-processing content filtering is a separate verification step executed after the model finishes generating text, where the complete output is scored by rule-based profanity lists, regex patterns, or machine-learning toxicity classifiers (such as Perspective API or Azure AI Content Safety). Any flagged text can be hard-blocked, automatically rewritten, or routed to human review before it is published, providing deterministic enforcement. Unlike prompt- or training-time measures, this method inspects the actual final artifact, making it the only option on the list that guarantees a filter is applied to every generated blog post.

  • Model fine-tuning on safe examples

    Why it's wrong here

    Model fine-tuning on safe examples modifies the model's weights by continued training on a curated dataset of safe and appropriate text, steering the learned distribution away from offensive phrasing. This reduces the baseline likelihood of harmful tokens, but it is a one-time training modification that does not create any runtime inspection of individual outputs; a novel or adversarial prompt can still push the model into a harmful continuation. Because it never checks the final generated text, it cannot serve as a real-time filter for every blog post.

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 →

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.