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