Prompt Injection Prevention Quiz

5 questions Pass: 70% +25 pts

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. 1

    What is the primary goal of a prompt injection attack?

  2. 2

    Which of the following is an effective technique for mitigating prompt injection at the system level?

  3. 3

    Why is 'sandwiching' user input between system instructions considered a partial but insufficient defense?

  4. 4

    When implementing a 'dual LLM' pattern for security, what is the role of the second, smaller model?

  5. 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?