CCA Prep Studio
—

Domain 4 · 20% of the exam · 6 tasks

Prompt Engineering & Structured Output

Domain 4 (20%) tests prompts that produce dependable output: explicit criteria instead of vague adjectives, a few well-chosen examples, structured output through a tool's JSON schema, validation with retries, the Message Batches API for work that can wait, and review passes that catch what a single pass misses.

Updated 10-20-2026 · Official guide §6, Domain 4

The 6 tasks in Domain 4

Decisions that come up most

  • Replace words like "important" or "significant" with explicit conditions for what to report and what to skip.
  • Use two to four targeted examples, especially for the ambiguous cases, to fix format and judgment.
  • Get structured output by defining a tool whose input schema is the shape you want.
  • Make fields nullable when the information may be missing, so the model reports absence instead of inventing a value.
  • Add an "other" option with a detail field to enums that may not cover every case.
  • On validation failure, retry with the original document and the specific error; stop retrying when the data simply isn't there.
  • Use the Message Batches API for work that can wait up to 24 hours (it costs half as much), never for checks someone is waiting on.
  • Split big reviews into per-file passes plus one pass that looks across files.

Common traps in the answer choices

  • Telling the model to "be more careful" or "only report important issues".
  • Parsing JSON out of free text and patching failures with cleanup code.
  • Required fields that force the model to invent a value.
  • Moving a check that blocks merges onto the batch API to save money.
  • Asking the same session that generated code to review it.

Which exam scenarios lean on this domain?

Structured data extraction, Claude Code in CI.

You get 4 of the 6 scenarios at random, so practice this domain in each of them. All six scenarios.

How to practice

  1. Write a code review prompt with explicit report and skip criteria, and measure false positives before and after.
  2. Build an extraction tool with a JSON schema that has a nullable field and an enum with "other".
  3. Add a validation and retry loop that sends the exact error back with the document.
  4. Submit a small batch, match results by custom_id, and resubmit only the failures.

CCA Prep Studio is an independent study product. It is not made, endorsed or sponsored by Anthropic. Claude is a trademark of Anthropic, PBC, and is used here only to name the exam and the technology it covers. Content is written in our own words and cites the official exam guide; no exam questions are reproduced. © 2026 NovaLinQs AI, LLC.