Course menuAIP-C01

Exams / AIP-C01 / Prompt injection and jailbreak defense / Question 1

AIP-C01 practice question: Prompt injection and jailbreak defense

AI Safety, Security, and Governance A free question from our original AIP-C01 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

A legal research firm runs a contract review assistant. Associates upload agreements and type questions, and the assistant answers from the uploaded text using a model on Amazon Bedrock.

Uploaded documents come from outside parties, and some contain hidden instructions such as an order to ignore the firm's rules and reveal internal prompts. The firm's system prompt holds trusted instructions that must not be flagged, and the firm does not want to build its own classifier.

The guardrail must flag injection and jailbreak attempts in the associate's question and in the uploaded document text, while the trusted system prompt is left out of that check.

Which configuration meets these requirements with the LEAST operational overhead?

Choose one answer.

  1. A. Set the prompt attack filter's input strength to NONE, and rely on the output content filters to catch any injected instructions that influence the model's reply.
  2. B. Add denied topics for phrases such as ignore previous instructions, plus a word filter with the same phrases, so that an attack is blocked whenever those exact words appear in the input.
  3. C. Turn on the prompt attack filter at HIGH input strength, and wrap the question and the uploaded document text, but not the system prompt, in guardContent blocks.
  4. D. Host a custom injection classifier on a SageMaker AI real-time endpoint, call it before every Bedrock request, and block any request that the classifier scores as an attack.
Show the answer and explanation

Answer: C

Explanation

The prompt attack filter detects jailbreaks, prompt injection and prompt leakage in input, and tagging the associate's question and document text focuses the check on untrusted content while leaving the system prompt out. Keyword lists miss rephrased attacks, output filters never see the instruction, and a custom classifier adds hosting and tuning work.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Prompt injection and jailbreak defense? The 5 full-length practice sets have 7 more Prompt injection and jailbreak defense questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets