Courseiva
Implement generative AI solutionsmediumMultiple ChoiceObjective-mapped

Preventing Offensive Language in Azure OpenAI Outputs

A company uses Azure OpenAI to generate marketing copy. They want to ensure that the generated content does not contain offensive language. Which feature should they enable?

Quick Answer

The correct answer is to enable content filtering at the deployment level. This feature, built into Azure OpenAI, leverages Microsoft’s Responsible AI models to automatically detect and block offensive language in both input prompts and generated outputs, ensuring marketing copy remains safe without requiring custom code or manual review. On the AI-102 exam, this question tests your understanding of Azure OpenAI’s built-in safety mechanisms versus custom moderation solutions—a common trap is assuming you need to build a separate content filter using Azure Content Safety or a custom classifier, when the deployment-level filter is the simplest and most scalable option. Remember that content filtering is configured per deployment in the Azure AI Studio, not at the resource or API level. A helpful memory tip: think “deploy and defend”—the filter is activated when you deploy the model, not when you train it.

⚠ Common exam trap

It's easy for candidates to assume prompt engineering (system messages) is sufficient for safety, but Azure OpenAI requires explicit content filtering at the deployment level to enforce policies reliably and prevent bypassing via prompt injection.

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 filtering at the deployment level.

Azure OpenAI provides built-in content filtering at the deployment level that automatically detects and blocks offensive or harmful language in both input prompts and generated outputs. This feature uses Microsoft's Responsible AI models to enforce safety policies without requiring custom code or manual review, making it the most reliable and scalable solution for preventing offensive content in marketing copy.

Answer analysis

Option-by-option breakdown

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

  • Use DALL-E to generate images instead of text.

    Why it's wrong here

    DALL-E is for images, not text.

  • Use a system message instructing the model to avoid offensive language.

    Why it's wrong here

    System messages are not foolproof.

  • Enable diagnostic logging to review all outputs.

    Why it's wrong here

    Logging is reactive, not preventive.

  • Enable content filtering at the deployment level.

    Why this is correct

    Content filtering proactively blocks offensive content.

About these practice questions

Courseiva writes every AI-102 question from scratch — 945 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

Same concept, more angles

1 more way this is tested on AI-102

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 company is deploying a generative AI solution using Azure OpenAI Service to generate product descriptions. The solution must comply with responsible AI principles, specifically ensuring that generated content does not include harmful or offensive language. Which Azure AI service feature should they implement to automatically filter the output?

medium
  • A.Enable the default content filtering system in Azure OpenAI Service.
  • B.Configure Prompt Shields in Azure AI Content Safety.
  • C.Use Azure AI Content Safety with a custom category severity threshold.
  • D.Use groundedness detection in Azure AI Content Safety.

Why A: Azure OpenAI Service includes a built-in default content filtering system that automatically screens generated outputs for harmful or offensive language, aligning with responsible AI principles. This system operates at the service level without additional configuration, making it the simplest and most direct way to filter product descriptions for compliance.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AI-102 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-102 exam.