CertSafari
    Anthropic Claude Certified Architect – Professional (CCAR-P)· Lessons

    Domain 6 · Lesson 34/38

    Architecture documentation for Claude solutions

    Document architectures and provide implementation guidance

    14 min read
    2.8% of exam
    11 sources
    Published 19 Oct 2026
    Docs as of 14 Oct 2026

    What you will be able to do

    • List the components, data flows, models, tools and boundaries an architecture description must pin down
    • Recommend where an agent runs (Agent SDK in your own process or Managed Agents) and how its tools connect
    • Record why each architectural layer exists so later teams neither strip it out nor duplicate it
    • Name the configuration, error-handling and deployment changes that turn a prototype into a service

    Key concept

    Architecture description — The document that tells engineers what the major pieces of a Claude solution are, how they communicate, which model and tools each piece uses, and where the boundaries sit. It also records why each piece exists, so engineers can build and run the system without reverse-engineering a prototype.

    1.What an architecture description must pin down

    An architecture description exists to answer the questions an engineer has before writing any code. Which components are there? How does a request travel between them? Which model handles each call? Which tools can that model use? Where are the boundaries between what runs in your process and what runs somewhere else? A diagram that shows boxes but leaves out the model per call, or the tool list per component, sends engineers back to the prototype to work it out for themselves.

    A customer support agent shows why each of these needs its own entry. As the bot grows, one design sends every query to an intent classifier first. The classifier routes the query to a specialised conversation, and each conversation has its own tools and system prompt. That one sentence holds a component (the classifier), a data flow (query to classifier to conversation), a model call per step, and a tool set per conversation. An engineer needs every one of them written down.

    The five things to pin down, using the support agent as the example
    ElementWhat the document statesSupport-agent example
    ComponentsEach service and what it ownsIntent classifier, specialized conversations, API wrapper, web interface
    Data flowsHow a request moves end to endCustomer query → classifier → specialized conversation → streamed reply over Server-Sent Events
    ModelsWhich call goes to Claude, and how many calls a request makesThe classifier adds an additional call to Claude before the conversation starts
    ToolsWhich tools each component may callEach specialized conversation has its own set of tools and system prompts
    BoundariesWhat the team operates versus what an external API providesThe HTTP service the team runs versus the Claude API it calls

    Checkpoint 1 of 8· Match them up

    An architecture description for the support agent with an intent classifier must cover five elements. Match each element to what the document records for this system.

    Tap a term, then the definition that fits it.

    Sources12

    2.Where the agent loop runs

    For an agent, the most important boundary is the process the agent loop runs in. The Claude Agent SDK and Managed Agents use the same concepts (agents, tools, sessions) but run them in different places. The SDK runs in a process you operate. Managed Agents runs in Anthropic's infrastructure. The document has to name one, because the choice decides who holds the filesystem, who executes the tools, and what the service exchanges over the network.

    Take a platform team that needs an agent to run entirely on its own servers, work on git checkouts there, and call in-process functions as tools. That team should embed the Agent SDK as a library in its service. Functions decorated with @tool are dispatched by the SDK automatically, and built-in tools act on the local filesystem, so nothing about the team's requirements leaves its process. Managed Agents fails the first requirement, because Anthropic hosts the sandbox: custom tools become agent.custom_tool_use events that the client answers. A hand-written tool loop on top of the Messages API would work, but it rebuilds dispatch the SDK already does.

    Agent SDK compared with Managed Agents, as an architecture document would record them
    ConcernAgent SDKManaged Agents
    Where it runsA process you operateAnthropic's infrastructure
    Agent configurationClaudeAgentOptions(...) constructed per runclient.beta.agents.create(...) once, persisted and versioned server-side
    Custom toolsFunctions defined with @tool, dispatched automatically by the SDKDeclared on the Agent; your client handles agent.custom_tool_use events
    Built-in toolsRun in your process against your filesystemRun in the sandbox Anthropic operates

    Checkpoint 2 of 8· Exam question

    A platform team is documenting the architecture for a new production agent that must run entirely on their own infrastructure, operate directly on files and git repositories checked out on their servers, and call custom in-process functions as tools. Which implementation approach should the architecture document recommend?

    Sources3

    3.Documenting how tools connect

    Implementation guidance also has to say how each external system reaches the agent. In Claude Code the usual answer is an MCP server, and the guidance should give the exact command that registers it. MCP servers are what let Claude Code act on issue trackers, monitoring tools and databases. The broader question of which integration mechanism to pick is covered in connection protocols. This page is about writing the chosen one down so engineers can reproduce it.

    Write down the transport, because it decides who runs the server. A hosted server is a URL, added with --transport http. A local server is a program the agent launches on its own machine. It needs no transport flag, because local servers use stdio by default. So an existing open-source Confluence or Jira connector that the agent should start itself gets documented as a stdio MCP server. Re-implementing its API calls as custom tools inside the agent just throws that connector away.

    Registering a local stdio MCP server: everything after -- is the command Claude Code runs to start itbash
    claude mcp add playwright -- npx -y @playwright/mcp@latest

    Also state the scope you chose. local keeps the server to one person on one project, user gives it to one person across all projects, and project writes it to .mcp.json in the repository root so everyone who clones the repo gets the same server. Guidance meant for a whole team usually needs the project scope.

    Checkpoint 3 of 8· Check yourself

    A team's Claude Code agent needs to work with their Jira issue tracker, and an open-source Jira connector already exists. What should the implementation guidance tell engineers to do?

    Checkpoint 4 of 8· Exam question

    An implementation guide must describe how to let Claude Code browse a company's Confluence and Jira instances using an existing open-source connector, launched locally by the agent process rather than hosted as a network service. Which pattern should the guide document?

    Sources45

    4.Recording the model choice

    Each model call in the architecture should name its model and the reason for it, because the reason is what later lets someone check whether the choice still holds. Model trade-offs teaches how to make the choice. The document records the result. Take a high-volume ticket-triage classifier with a tight latency and cost budget that still needs real reasoning. The recommendation is Claude Haiku 4.5, which Anthropic launched as ideal for real-time, high-volume, cost-sensitive work that needs strong reasoning. Haiku is the lowest-cost and fastest model class. Opus is the class for reasoning-intensive enterprise tasks, which is more than per-ticket classification needs.

    Checkpoint 5 of 8· Check yourself

    Every customer query now goes through the intent classifier before it reaches a specialized conversation. The team wants this extra step to add as little latency and cost as possible, but the classifier still needs real reasoning. What should the architecture document record for the classifier's model call?

    Checkpoint 6 of 8· Exam question

    A support-tooling architect is writing implementation guidance for a high-volume ticket triage service that classifies incoming tickets, needs strong reasoning, and must stay within a tight latency and cost budget. Which model recommendation should the guidance document?

    Sources67

    5.Recording why each layer exists

    Every layer should go into the document with its reason and the cheaper options that were tried first. Without that record, the next team sees an intent classifier, a prompt chain and a set of tools, and can't tell which parts carry weight. They might remove the classifier as an apparent waste of a call and break routing for varied tasks. Or they might add a second router because they never knew the first one existed.

    The support-agent design shows what a good entry looks like. Before adding layers, the recommended order is to get the most out of the prompt first, then try more tools or prompt chains, and only then add a classifier. The classifier earns its place when the bot handles very varied tasks. It costs an extra call to Claude, which can add latency. Each of those facts belongs in the record.

    Checkpoint 7 of 8· Put it in order

    Your design record must show that cheaper options were tried before the support bot got a new layer. Put the options in the order the guidance recommends trying them.

    1. 1.Add more tools to the prompt, which can include prompt chains
    2. 2.Add a separate intent classifier that routes each query to specialized conversations with their own tools and system prompts
    3. 3.Get the most out of the existing prompt through prompt engineering

    Sources1

    6.From prototype to deployable service

    A prototype shows that the idea works. A service is something other engineers can deploy, configure and keep running. The support-agent example starts life as Python functions in Streamlit, and a real-time chatbot needs an API service instead. The guidance has to cover three changes: how the code is served, how it is configured, and how it handles failure.

    For serving, wrap the core function in an HTTP service such as Flask or FastAPI. Stream responses with Server-Sent Events, cache responses to avoid unnecessary API calls, and keep conversation context when a user leaves and comes back. For configuration, list every setup step a fresh checkout needs. An instruction like copying .env.example to .env, without which tests and the dev server fail, is exactly what a new engineer can't guess. Network routing is configuration too. HTTPS_PROXY sends traffic through a corporate proxy, and the ANTHROPIC_BASE_URL family points at an LLM gateway for central usage tracking, rate limits or budgets.

    Error handling is where prototypes cut the most corners. Every response from the Messages API reports why generation stopped in its stop_reason field, and a tool loop reads it: end_turn means the model finished normally. refusal is a different value, and a service must branch on it rather than assume every response is usable. It must also tell configuration errors apart from passing failures. On Claude Haiku 4.5, setting both temperature and top_p returns a 400 error, and retrying that request will never fix it. Deployment guidance closes with the rule to test in a development environment before production.

    Checkpoint 8 of 8· Check yourself

    The support-agent service is ready to go to production. Finance wants Claude usage tracked across all teams, with custom rate limits and budgets enforced in one place. Which setting should the deployment guidance tell engineers to configure?

    Sources189310

    Sources

    (11)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “route customer queries through the classifier and then to specialized conversations (with their own set of tools and system prompts)”
      ↩︎ What an architecture description must pin down
      “Before you add further layers to your architecture, consider the following less exhaustive options”
      ↩︎ Recording why each layer exists
      “Note, this method requires an additional call to Claude that can increase latency.”
      ↩︎ Recording why each layer exists
      “deploying Claude for real-time support chatbot requires an API service”
      ↩︎ From prototype to deployable service
      “Note, this method requires an additional call to Claude that can increase latency.”
      ↩︎ Checkpoint
      “Before you add further layers to your architecture, consider the following less exhaustive options:”
      ↩︎ Checkpoint
    2. 2.
      “Architecture in three sentences — what the major pieces are and how they communicate.”
      ↩︎ What an architecture description must pin down
      “Architecture in three sentences — what the major pieces are and how they communicate.”
      ↩︎ Key concept
    3. 3.
      “the SDK runs in a process you operate, while Managed Agents runs in Anthropic's infrastructure”
      ↩︎ Where the agent loop runs
      “Functions defined with @tool, dispatched automatically by the SDK”
      ↩︎ Where the agent loop runs
      “Execution moves from inline handling to responding to agent.custom_tool_use events.”
      ↩︎ Where the agent loop runs
      “if response.stop_reason == "end_turn":”
      ↩︎ From prototype to deployable service
      “the SDK runs in a process you operate, while Managed Agents runs in Anthropic's infrastructure”
      ↩︎ Exam trap 1
      “Built-in tools run in your process against your filesystem”
      ↩︎ Prediction
    4. 4.
      “There’s no --transport flag, because local servers use the default stdio transport.”
      ↩︎ Documenting how tools connect
      “Add a local server: run a program on your machine instead of connecting to a URL.”
      ↩︎ Documenting how tools connect
      “.mcp.json in your project root | Everyone who clones the project”
      ↩︎ Documenting how tools connect
    5. 5.
      “Implement features from issue trackers”
      ↩︎ Documenting how tools connect
    6. 6.
      “Ideal for real-time applications, high-volume processing, and cost-sensitive deployments requiring strong reasoning.”
      ↩︎ Recording the model choice
      “allowing you to control token usage by trading off between response thoroughness and efficiency”
      ↩︎ Recording the model choice
      “allowing you to control token usage by trading off between response thoroughness and efficiency”
      ↩︎ Exam trap 2
    7. 7.
      “Haiku is our lowest cost and fastest model class.”
      ↩︎ Recording the model choice
      “Opus is our powerful model class for reasoning-intensive enterprise tasks.”
      ↩︎ Recording the model choice
    8. 8.
      “Copy `.env.example` to `.env` before running anything. Tests and the dev server fail without it.”
      ↩︎ From prototype to deployable service
    9. 9.
      “Use this if you need centralized usage tracking across teams, custom rate limiting or budgets, or centralized authentication management.”
      ↩︎ From prototype to deployable service
    10. 10.
      “Update your application to handle refusal stop reasons.”
      ↩︎ From prototype to deployable service
      “Setting both returns a 400 error on Claude Haiku 4.5.”
      ↩︎ From prototype to deployable service
      “Test in development environment before production deployment”
      ↩︎ From prototype to deployable service

    Also cited

    Continue to part 2 of 2

    CLAUDE.md as implementation guidance

    Spotted a mistake, or was something unclear? Tell us.