Courseiva
AI Security →mediumMultiple Choice

AI0-001 Guardrail Practice Question

A company is implementing a guardrail system for their LLM chatbot. Which of the following is an example of a guardrail?

⚠ Common exam trap

Candidates often confuse performance tuning parameters (context window, temperature, caching) with actual safety controls, leading them to mistake model configuration options for guardrail mechanisms.

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

✓

Rejecting requests that ask for illegal advice

A guardrail in an LLM system is a safety constraint that filters or rejects harmful inputs and outputs. Rejecting requests for illegal advice directly enforces policy compliance and prevents the model from generating prohibited content, which is the core function of a guardrail.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Using a larger context window

    Why it's wrong here

    A larger context window only increases how much text the model can attend to in one call; it imposes no restriction on generated content. It is tempting because bigger windows improve handling of long inputs, but guardrails enforce policy, which capacity alone never does.

  • ✓

    Rejecting requests that ask for illegal advice

    Why this is correct

    Rejecting requests for illegal advice is a guardrail: an enforced policy that blocks disallowed outputs before they reach the user. It constrains the chatbot's behaviour to permitted content, which is exactly what a guardrail does.

  • ✗

    Increasing the model's temperature parameter

    Why it's wrong here

    Raising temperature increases output randomness by altering the sampling distribution, which weakens consistency rather than constraining behaviour. It is tempting as a tuning knob for creativity, but guardrails restrict outputs, whereas temperature deliberately widens the range of possible responses.

  • ✗

    Enabling caching for frequent queries

    Why it's wrong here

    Caching frequent queries reduces latency and cost by reusing stored responses; it filters nothing and enforces no policy on inputs or outputs. It is tempting as an efficiency measure, but guardrails validate or block content, which caching does not do.

About these practice questions

Courseiva writes every AI0-001 question from scratch — 962 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 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.