Flashcardsfor IT Certifications

D7: Prompt Injection & Jailbreak Defense

Claude Certified Developer – Foundations exam practice questions · 11 flashcards

Question
What is prompt injection?
1 / 11

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 11 Prompt Injection & Jailbreak Defense practice questions and answers
  1. What is prompt injection?
    Malicious instructions placed in input or data that try to override the app's intended instructions.
  2. Direct vs indirect prompt injection?
    Direct: the user types the attack. Indirect: it's hidden in content the model reads (web pages, files, emails, tool results).
  3. A summarizer reads a page with hidden 'ignore previous instructions' text. Best mitigation?
    Treat page content as untrusted, keep it separate from instructions, and use guardrails/hooks so it can't trigger sensitive actions.
  4. Does raising temperature help against injection?
    No. Temperature is unrelated.
  5. Is asking users not to inject in the system prompt a control?
    No. It isn't enforceable.
  6. Does a larger, more instruction-following model prevent injection?
    No. It can even be more susceptible.
  7. What is a jailbreak?
    An attempt to make the model break its safety rules or policies.
  8. How can you screen inputs for attacks?
    Use a lightweight classifier or a fast model to flag suspicious input before main processing.
  9. Why is least privilege key against injection?
    If injected text can't reach sensitive tools, the damage is limited.
  10. Why require human approval for high-impact actions?
    Injected instructions can't complete sensitive actions without a person confirming.
  11. Why monitor and log suspicious inputs?
    To detect attacks, tune defenses and investigate incidents.