CCAR-F Prompt Engineering and Structured Output Practice Question
A support-engineering team is prototyping a Claude-powered assistant that must always reply in a consistent tone and never invent refund policies. They want a single, reusable instruction block that applies to every conversation regardless of the user's message. Where should this persistent behavioral guidance be placed in a Messages API request?
⚠ Common exam trap
The trap here is treating metadata or an assistant prefill as a place for behavioral rules, when only the system prompt is designed to apply guidance across the whole exchange.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
In the system prompt parameter, which is processed before the conversation turns and applies to the whole exchange.
The system prompt exists precisely to hold persistent, cross-turn instructions such as tone, persona, and business rules. Keeping refund-policy constraints there separates durable guidance from user content, prevents dilution as the conversation grows, and lets the same block be reused across sessions. Metadata and assistant prefills serve different purposes and cannot carry standing policy.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
In an assistant turn that precedes the user's first message, so the model sees its own prior commitment to the rules.
Why it's wrong here
Prefilling an assistant turn biases the continuation of that turn, but the Messages API expects conversations to begin with a user message, and an assistant-first transcript is not a supported pattern for establishing standing policy. Even where prefilling is used, it influences only the immediate next tokens, not the entire session's behavior. Durable guidance belongs in the system prompt.
- ✗
In the metadata field of the request, which the model reads as context before generating a reply.
Why it's wrong here
The metadata field carries request-level attributes such as a user identifier for tracking and abuse monitoring; it is not part of the prompt the model reasons over when composing its answer. Putting behavioral rules there means the model never sees them, so tone and policy enforcement silently disappear. Policy text must live in the prompt itself, typically the system prompt.
- ✓
In the system prompt parameter, which is processed before the conversation turns and applies to the whole exchange.
Why this is correct
The system prompt is specifically designed to carry persistent role, tone, and policy instructions that apply across every turn of a conversation. Placing the refund-policy constraints there keeps them separate from user content, so the model treats them as standing rules rather than one-off requests. It also lets the team reuse the same block across sessions and endpoints without rewriting each user message.
- ✗
In the first user message, prefixed with 'Always follow these rules:' before the actual customer question.
Why it's wrong here
Embedding rules in the first user turn mixes durable policy with transient conversation content, so the guidance competes with the user's question for attention and can be diluted or overridden as the dialogue grows. It also forces the client to re-inject the rules into every new conversation manually. A dedicated system prompt is the designed place for persistent, cross-turn behavioral instructions.
About these practice questions
One of 271 original CCAR-F practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Anthropic exam blueprint
This CCAR-F practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCAR-F exam.