CCA-F › Domain 4

Domain 4 — Prompt Engineering & Structured Outputs

20% of the exam · get reliable, well-shaped outputs from Claude · 40 deep-dive subtopics

Exam traps and practice for this domain

On the exam every option in this domain is a sensible practice; these traps decide most questions. Each trap page has a simulator and exam-style practice.

Practice: 54 plain-style questions on D4, each with “Explain simply” and “Think it through”. New here? Start here.

🗺️ Extraction mind maps: structured output on one printable page ›
Which scenarios ask about it, then six maps: JSON that always parses, schemas that don't invent, retries, consistency, batch, human review.

This is the curriculum hub for Domain 4. Each subtopic below is a self-contained, architect-level page: concept → diagram → real prompt/code → trade-offs → exam traps → practice questions. Every technique and parameter is verified against the official Anthropic prompt-engineering docs and the Messages API. Work top-to-bottom, or jump to any cluster.

🧪 Take the Domain 4 Mock Exam Bank ›
Exam-level, scenario-based questions per cluster + a full mock — instant scoring & explanations.

Cluster 1 · Foundations & Being Clear

Cluster 2 · Roles & System Prompts

Cluster 3 · Examples (Multishot)

Cluster 4 · Structure with XML Tags

Cluster 5 · Chain of Thought & Extended Thinking

Cluster 6 · Prefill & Output Control

Cluster 7 · Structured Outputs & JSON

Cluster 8 · Reliability, Hallucination & Iteration

Ready to test yourself? Head to the Domain 4 Mock Exam Bank.