AI0-001 AI Concepts and Techniques Practice Question
A company is deploying an LLM-powered application that answers questions based on internal documents. They want to minimize prompt injection attacks where users trick the model into ignoring instructions. Which THREE measures should they implement? (Select THREE)
⚠ Common exam trap
The AI0-001 exam often tests the misconception that reducing model temperature or randomness can mitigate security threats, when in fact temperature only affects output creativity, not instruction adherence or input safety.
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
✓
Use a system-level prompt that clearly defines allowed behavior and boundaries
A is correct because a system-level prompt establishes a foundational instruction set that defines the model's allowed behavior and boundaries. This acts as a first line of defense by explicitly instructing the model to ignore any user attempts to override its core directives, thereby reducing the risk of prompt injection attacks.
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 a system-level prompt that clearly defines allowed behavior and boundaries
Why this is correct
A strong system prompt sets context and restricts the model from following malicious instructions.
- ✗
Set temperature to 0.0 for all queries
Why it's wrong here
Temperature affects randomness, not security; injection can still occur.
- ✗
Allow the model to execute any code from user prompts for flexibility
Why it's wrong here
This is highly dangerous and increases injection risk.
- ✓
Implement a separate classifier to detect and block injection attempts
Why this is correct
An injection detection classifier adds a layer of defense before the LLM processes the input.
- ✓
Sanitize user inputs to remove special tokens or injection patterns
Why this is correct
Input sanitization prevents attackers from embedding injection payloads.
About these practice questions
One of 754 original AI0-001 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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.