CCDV-F Prompt and Context Engineering Practice Question
A developer wants Claude to write a poem in the style of a specific 19th-century author. Where is the most appropriate place to define this persona to ensure the highest quality and consistency?
⚠ Common exam trap
Candidates often place persona instructions in the user message, which leads to 'persona drift' as the conversation progresses because the model does not treat user messages as persistent behavioral rules.
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
✓
Within the system prompt field of the Messages API.
The system prompt is the designated location for defining the model's persona, tone, and foundational rules. Defining the persona here ensures that the stylistic constraints are treated as a global setting for the entire conversation, which helps Claude maintain the requested voice more effectively than if the instructions were mixed with the user's specific request.
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 a user message at the very end of the prompt sequence.
Why it's wrong here
Placing persona instructions at the end of a user message might help with immediate following, but it is less effective for long-term consistency. The model may focus more on the specific request (the poem's subject) and drift away from the stylistic persona as the conversation continues across multiple turns.
- ✗
As a metadata field within the API request body.
Why it's wrong here
Metadata fields are used for administrative purposes like tracking, tagging, or billing. They are not part of the model's input context and have zero impact on the generated content. Instructions placed in metadata will be completely ignored by the reasoning engine during the response generation process.
- ✓
Within the system prompt field of the Messages API.
Why this is correct
The system prompt is specifically engineered to hold behavioral instructions and persona definitions. It provides a stable framework that guides all subsequent responses. Using this field is the most reliable way to ensure Claude adopts and maintains a specific style throughout the entirety of a multi-turn interaction.
- ✗
Inside a <persona> tag within the first user message.
Why it's wrong here
While XML tags in the user message are helpful for organization, the system prompt is architecturally superior for role-setting. Instructions in the user message are more easily 'diluted' by subsequent user inputs, whereas the system prompt remains a constant influence on the model's behavior regardless of the conversation length.
About these practice questions
This CCDV-F question is part of Courseiva's 257-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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 CCDV-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 CCDV-F exam.