Domain 2 · 20% of the exam
Applications and Integration
Using the Messages API correctly (message structure, tool use, streaming, vision, thinking, caching, structured output, stop reasons, realtime or batch); deciding what crosses the application boundary; configuring a Claude system across environments and CI; and fixing integrations that mishandle streams, error classes or the Files API.
- 2.1Messages API MechanicsWrite correct Messages API requests and handle responses: system prompt and alternating turns, content blocks for images and documents, tool use and tool results, the streaming event sequence, thinking budgets, cache breakpoints, structured output and every stop reason, and choose realtime or batch for each workload.
- 2.2The Application BoundaryDesign what crosses between your application and the model. Each surface (claude.ai, the API, Claude Code) frames Claude differently, so supply your own instructions; send only the data the task needs; keep sessions and history in your application, per user; validate what comes back before it reaches clients; and keep keys and confidential logic on the server.
- 2.3Configuration Across Environments and CIWork out the effective configuration of a Claude system from its artifacts (CLAUDE.md levels, settings.json precedence, pinned model IDs, versioned prompts, plugin dependencies, CI jobs) and predict how a change in one file affects development, staging, CI and production.
- 2.4Resilient Integrations: Errors, Streams and FilesRead failing integration code and its errors, then fix the defect in line with the API's documented semantics. Classify errors before retrying, honor retry-after with jittered backoff, keep one retry layer, handle streams to message_stop including mid-stream errors, and ingest files in supported formats from the right workspace.