2.2 System Prompts, Templates & Guardrails
Claude Certified Architect – Professional (CCAR-P) exam practice questions · 10 flashcards
Question
What belongs in a system prompt?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 2.2 System Prompts, Templates & Guardrails practice questions and answers
- What belongs in a system prompt?Role, scope, rules, output format, tone and escalation guidance.
- What is a prompt template?A reusable prompt with fixed structure and variable slots.
- Why use templates?Consistency, versioning and easier testing across use cases.
- What are prompt-level guardrails?Instructions defining allowed/disallowed behavior and how to decline.
- Are prompt guardrails sufficient alone?No. Combine them with code-level controls, permissions and output checks.
- Why separate instructions from data?Reduces prompt injection and confusion; use XML tags.
- Why version system prompts?Track changes, compare in evals and roll back.
- How do you keep system prompts maintainable?Modular sections and reusable components.
- Why give reasons for rules?Claude applies rules more sensibly when it knows the purpose.
- Where should static vs dynamic content go?Static content first (cacheable), dynamic content after.