Courseiva
Context and Reliability →mediumMultiple Select

CCAR-F Context and Reliability Practice Question

An architect is defining a 'System Prompt' for a legal analysis tool. Which TWO practices are considered best for ensuring the model maintains a reliable persona and adheres to safety constraints throughout a long conversation?

⚠ Common exam trap

Test-takers often rely on vague conversational instructions instead of structured XML delimiters within the system prompt to maintain strict persona adherence.

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

✓

Using XML tags like <persona> and <constraints> within the system prompt

The system prompt is the most powerful way to define Claude's behavior. By clearly stating the persona and using XML tags within the system prompt to separate different types of instructions (like tone vs. constraints), architects can create a more stable and reliable foundation for the model's performance over long sessions.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    Using XML tags like <persona> and <constraints> within the system prompt

    Why this is correct

    Structured system prompts are easier for Claude to follow consistently. Using XML tags to categorize different behavioral instructions ensures that the model can distinguish between its identity, its legal knowledge base, and the specific rules it must follow, such as 'never provide specific legal advice' to a user.

  • ✗

    Repeating the system prompt in every user message for emphasis

    Why it's wrong here

    Repeating the entire system prompt in every message is inefficient and consumes unnecessary tokens. Claude is designed to maintain the instructions from the system prompt field across the entire conversation, so redundancy within user messages is usually unnecessary and can occasionally confuse the model's sense of the current task.

  • ✓

    Defining a clear persona and setting the tone early in the prompt

    Why this is correct

    Establishing a persona (e.g., 'You are a senior legal researcher') provides a helpful frame of reference for the model. This context guides the model's internal weights toward more professional and accurate language patterns, which improves the overall reliability and quality of the generated legal summaries or analysis.

  • ✗

    Restricting the system prompt to under 50 tokens for better focus

    Why it's wrong here

    While brevity is often good, a system prompt that is too short may fail to provide enough context for complex tasks. Claude can handle very long system prompts, and providing detailed, specific instructions is generally more effective for ensuring reliability than arbitrarily limiting the length of the foundational instructions.

  • ✗

    Using the system prompt to provide the user's specific query

    Why it's wrong here

    The system prompt should contain static instructions and persona information, while the user query should reside in the messages array. Mixing these roles can lead to reliability issues, as the model may struggle to distinguish between its long-term behavioral rules and the immediate, one-time request from the user.

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 →

How Courseiva writes practice questions · Editorial policy

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.