Courseiva
AI SecurityhardMultiple ChoiceObjective-mapped

AI0-001 AI Security Practice Question

A company uses an LLM API to generate customer support responses. They want to prevent the LLM from generating harmful content, even when users attempt jailbreaking. Which defense is MOST effective at the application layer?

⚠ Common exam trap

The AI0-001 exam often tests the misconception that input validation is sufficient for LLM security, but the trap here is that jailbreaking exploits the model's generative capabilities, which can only be reliably mitigated by inspecting the output after generation, not just the input.

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

Output filtering and content moderation

Output filtering and content moderation is the most effective defense at the application layer because it directly inspects the LLM's generated response before it reaches the user. This approach can catch and block harmful content that results from successful jailbreaking attempts, which input validation alone cannot prevent since the model may still produce undesirable outputs even with sanitized inputs.

Answer analysis

Option-by-option breakdown

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

  • Output filtering and content moderation

    Why this is correct

    Output filtering checks the generated text and blocks harmful content, providing a final safety layer.

  • Input validation and sanitization

    Why it's wrong here

    Input validation can filter known bad patterns, but jailbreaking prompts are diverse and can bypass filters.

  • Robust training techniques

    Why it's wrong here

    Robust training makes the model harder to exploit but still vulnerable; output filtering provides an additional safeguard.

  • Rate limiting

    Why it's wrong here

    Rate limiting controls request frequency but does not prevent harmful outputs.

About these practice questions

This AI0-001 question is part of Courseiva's 754-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 AI0-001 practice question is part of Courseiva's free CompTIA 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 AI0-001 exam.