Input Validation and Filtering Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Safety Guardrails

What you'll be asked

  1. What is the primary purpose of input validation in the context of AI safety guardrails?
  2. Which of the following is an example of a 'deny-list' approach to input filtering?
  3. When implementing input filtering for a chatbot, why is it considered best practice to use an 'allow-list' over a 'deny-list' whenever possible?
  4. A developer notices that users are bypassing text-based input filters by using non-standard Unicode characters to represent malicious commands. What is the most effective way to mitigate this?
  5. You are designing a system to prevent prompt injection. Which of the following strategies represents a 'defense-in-depth' approach to input validation?

Answers and explanations come after you submit.