Flashcardsfor IT Certifications

D2: Content Boundaries & Schema Design

Claude Certified Developer – Foundations exam practice questions · 10 flashcards

Question
What are content boundaries?
1 / 10

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

Last updated: · Report an error on this page

Show all 10 Content Boundaries & Schema Design practice questions and answers
  1. What are content boundaries?
    Clear separation between trusted instructions and untrusted or reference content.
  2. How do you mark content boundaries in prompts?
    Wrap data in XML tags (e.g. <document>) and say it's data, not instructions.
  3. Why do boundaries matter for security?
    They reduce the chance instructions hidden in data get followed (prompt injection).
  4. How do you define scope boundaries for an assistant?
    State in the system prompt what topics/actions are in and out of scope and how to decline.
  5. What makes a good schema design?
    Clear field names, descriptions, correct types, required fields and enums for fixed choices.
  6. Why use enums in schemas?
    They restrict values to valid options, reducing invalid output.
  7. Why prefer flat, simple schemas?
    Deeply nested or overly complex schemas raise error rates and token use.
  8. Why describe each schema field?
    Descriptions tell Claude what to put in each field.
  9. How do you handle optional data in schemas?
    Make the field optional or nullable rather than forcing Claude to invent a value.
  10. Why version schemas?
    Downstream consumers depend on structure; versioning avoids breaking them.