Courseiva

AI-102 Implement generative AI solutions Practice Question

You are developing a generative AI application that uses Azure OpenAI Service. You want to ensure that the application does not generate offensive content. Which Azure service should you use?

⚠ Common exam trap

Test-takers frequently confuse Azure AI Content Safety with Azure AI Language's moderation features, but Azure AI Language does not include a dedicated content safety API for offensive content detection, whereas Content Safety is purpose-built for this task.

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

✓

Azure AI Content Safety

Azure AI Content Safety is the correct service because it is specifically designed to detect and filter offensive, inappropriate, or harmful content in text and images. For a generative AI application using Azure OpenAI, this service can be integrated to review prompts and completions in real time, ensuring that generated outputs comply with content policies and do not contain hate speech, violence, or other offensive material.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Azure AI Bot Service

    Why it's wrong here

    Azure AI Bot Service hosts conversational bots and channels; it does not evaluate or filter generated content. It is the right choice when the requirement is to deploy a bot across channels such as Teams or web chat, not to apply content moderation to model output.

  • ✓

    Azure AI Content Safety

    Why this is correct

    Azure AI Content Safety provides dedicated moderation APIs that detect and filter offensive, violent, hateful, and self-harm content in prompts and completions. Integrating it with the Azure OpenAI application enforces the stem's requirement to prevent offensive output, unlike prompt engineering alone or built-in model filters.

  • ✗

    Azure AI Language

    Why it's wrong here

    Azure AI Language performs text analytics such as sentiment, entity recognition and PII detection; it does not intercept or filter model completions. It is the right choice when the requirement is to extract structured insights from text, not to block offensive generative output.

  • ✗

    Azure AI Search

    Why it's wrong here

    Azure AI Search indexes and retrieves documents for grounding prompts; it does not inspect or block model responses. It is the correct choice when the requirement is to supply relevant context to a model via retrieval-augmented generation, not to enforce content safety.

About these practice questions

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