CCAR-F Context and Reliability Practice Question
Why are XML tags specifically recommended for structuring prompts in Claude, as opposed to other formats like JSON or simple bullet points, when managing large context?
⚠ Common exam trap
Candidates frequently assume that JSON is the superior format because it is standard for APIs, ignoring that Claude’s specific training on XML makes it more robust for parsing complex, nested content.
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
✓
Claude was specifically trained to recognize XML as structural delimiters.
Claude was specifically trained on a large amount of data containing XML-style tags, making it highly proficient at recognizing them as structural markers. While Claude can understand JSON, XML is more robust for wrapping large, multi-line blocks of text without needing to worry about escaping characters, which improves the reliability of the prompt's structure.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Claude was specifically trained to recognize XML as structural delimiters.
Why this is correct
Anthropic's training process emphasizes the use of XML tags to help the model identify different parts of a prompt, such as instructions, examples, and context. This specific training makes XML more 'legible' to the model's attention mechanism, leading to better adherence to the intended structure in complex prompts.
- ✗
XML tags use fewer tokens than JSON or Markdown syntax.
Why it's wrong here
XML tags actually often use more tokens than JSON or Markdown because they require both opening and closing tags (e.g., <context></context>). The recommendation for XML is based on performance and reliability in instruction following, not on token efficiency or cost-saving measures, which are negligible at this scale.
- ✗
JSON is not supported by the Claude 3.5 Sonnet context window.
Why it's wrong here
Claude is fully capable of understanding and generating JSON. However, using JSON within a prompt to structure large blocks of natural language text can be brittle because nested quotes or special characters can break the JSON structure, whereas XML is much more forgiving and reliable for wrapping long-form text.
- ✗
XML tags automatically encrypt the data sent to the API.
Why it's wrong here
XML tags are a plain-text formatting convention and have no relationship to data encryption or security protocols. They are used purely for structural organization within the prompt to help the model understand the relationship between different segments of the input data provided by the user.
About these practice questions
Courseiva writes every CCAR-F question from scratch — 271 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.