Courseiva
AI SecuritymediumMultiple ChoiceObjective-mapped

AI0-001 AI Security Practice Question

A developer is building an LLM-powered code assistant. They want to prevent the model from generating insecure code. Which OWASP LLM Top 10 category is most relevant to this risk?

⚠ Common exam trap

The AI0-001 exam often tests the distinction between input-based attacks (prompt injection) and output-based risks (insecure output handling), so candidates mistakenly choose prompt injection because they focus on how the model is manipulated rather than on the security of what the model produces.

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

Insecure output handling

Insecure output handling (B) is the most relevant OWASP LLM Top 10 category because the risk is that the LLM generates insecure code, which is a direct output from the model. This category specifically addresses failures to validate, sanitize, or restrict the model's output before it is used in downstream applications, such as a code assistant. By not properly handling the generated code, the assistant could introduce vulnerabilities like SQL injection or command injection into the user's codebase.

Answer analysis

Option-by-option breakdown

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

  • Sensitive information disclosure

    Why it's wrong here

    Sensitive information disclosure is about leaking data, not generating insecure code.

  • Insecure output handling

    Why this is correct

    Insecure output handling covers risks from failing to validate LLM outputs, such as generating unsafe code.

  • Model denial of service

    Why it's wrong here

    Model denial of service is about resource exhaustion, not output security.

  • Prompt injection

    Why it's wrong here

    Prompt injection focuses on input manipulation, not output validation.

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.