AI0-001 AI Concepts and Techniques Practice Question
A company wants to deploy an LLM-based chatbot that can handle sensitive customer information. Which THREE measures should be implemented to mitigate prompt injection attacks? (Choose 3)
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 prompt that instructs the model to ignore any instructions in the user input
Input sanitization removes special characters or patterns; output filtering checks responses for sensitive data; system prompts with separation instructions can reduce injection risk. Restricting temperature only affects randomness; using a smaller model does not prevent injection.
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 prompt that instructs the model to ignore any instructions in the user input
Why this is correct
A well-crafted system prompt can reduce the success of injection attacks by separating instructions from data.
- ✓
Implement output filtering to detect and block harmful responses
Why this is correct
Output filtering catches generated responses that contain sensitive data.
- ✓
Sanitize user inputs to remove special characters and escape sequences
Why this is correct
Sanitization prevents malicious strings from being interpreted as commands.
- ✗
Use a smaller model with fewer parameters
Why it's wrong here
Model size does not affect susceptibility to prompt injection.
- ✗
Set temperature to a low value
Why it's wrong here
Temperature controls output randomness, not injection risk.
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 →
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.