Prompt Injection Prevention Quiz
Quiz covering GenAI Security and Compliance
Prompt Injection Prevention Quiz
5 questions | Pass: 70% | Earn 25 points
Questions in this quiz
A preview of the 5 questions covered. Start the quiz above to answer them, check your score, and read the explanations.
- 1
What is the primary goal of a prompt injection attack?
- 2
Which of the following is an effective technique for mitigating prompt injection at the system level?
- 3
Why is 'sandwiching' user input between system instructions considered a partial but insufficient defense?
- 4
When implementing a 'dual LLM' pattern for security, what is the role of the second, smaller model?
- 5
A system uses a retrieval-augmented generation (RAG) pipeline. An attacker inserts instructions into a document that the RAG system retrieves. What is this specific type of attack called?
Enjoying the courses?
Everything stays free. Pro shows fewer ads, doubles the points you earn on every lesson and quiz so you progress twice as fast, unlocks half of every practice exam — plus full case studies — with the Learn & Exam study modes, and lets you read each lesson on one page.
- ✓ Fewer advertisements
- ✓ 2× points per lesson & quiz
- ✓ 50% of every exam unlocked
- ✓ Learn & Exam modes
- ✓ Distraction-free lessons