CCAR-F Prompt Engineering and Structured Output Practice Question
Exhibit
{
"role": "user",
"content": "Summarize the following document: [DOC_CONTENT]"
}Refer to the exhibit. The developer wants to ensure the summary is concise and follows a specific structure. What is the most effective way to improve this prompt?
⚠ Common exam trap
Candidates often suggest modifying the user message directly to include more instructions, failing to realize that system prompts are the architectural standard for defining task constraints and style.
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
✓
Use a system prompt to define the task, format, and style constraints.
Providing a system prompt to establish the 'Persona' and 'Task Constraint' is superior to relying on the user message. By separating instructions from content, you provide a stable context for the model. This is standard architectural practice for Anthropic models, ensuring that the model maintains its directive despite varying document lengths, thus improving the consistency and quality of the generated summarization output over time.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Include the instructions directly inside the user content field.
Why it's wrong here
Mixing instructions and data in the user message makes it difficult to maintain prompt versioning. It also increases the risk of the model prioritizing data over instructions. A structured system prompt allows for clearer separation of intent and content, enhancing the overall predictability of the model output.
- ✓
Use a system prompt to define the task, format, and style constraints.
Why this is correct
The system prompt is the appropriate location for defining formatting and behavioral constraints. By placing instructions here, the model treats them as immutable directives. This separation ensures the model consistently adheres to the desired structure and tone, regardless of the variations found in the document content provided.
- ✗
Increase the temperature setting to 1.0 to ensure more creative summaries.
Why it's wrong here
Higher temperature increases randomness and decreases reproducibility. For summarization tasks, high temperature often results in hallucinations or loss of factual accuracy. Architects should generally keep temperature low for tasks requiring structural compliance and factual adherence to the provided source material to ensure consistent results.
- ✗
Repeat the instruction three times within the user content to enforce it.
Why it's wrong here
Repeating instructions is an inefficient and ineffective way to influence model behavior. It consumes unnecessary tokens and can lead to repetitive, redundant output. Clear, concise, and structured instructions in the system role are much more effective than redundancy, which rarely produces the desired structural compliance.
About these practice questions
This CCAR-F question is part of Courseiva's 271-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 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.