Back to Blog

I'm Now a Claude Certified Architect (CCA-F): How I Design Reliable AI Agents

I passed Anthropic's Claude Certified Architect exam (CCA-F) with 837 (720 to pass). How I prepared in four weeks, and four agent architectures end to end: a support agent with refund authority, document extraction at scale, multi-agent research, and Claude Code for an engineering team.

AIClaudeAI ArchitectureAgentic EngineeringCertification

On October 17, I passed Anthropic’s proctored exam and became a Claude Certified Architect (CCA-F), with a score of 837 (720 to pass).

The certificate matters to me less as a badge than as a checkpoint. I’ve been building AI into how data engineering gets done, and I wanted to know whether what I’d learned by doing would hold up against how Anthropic thinks about architecting systems on Claude. It did, with a few sharp lessons along the way.

The exam covers five areas:

  • Agentic architecture and orchestration
  • Tool design and MCP integration
  • Claude Code configuration and workflows
  • Prompt engineering and structured output
  • Context management and reliability

Where I’m coming from

I’m a senior data engineer at MercadoLibre, where I built a 12-domain data platform from scratch on GCP and BigQuery. That platform is wired to Claude Code over MCP. Custom skills read job definitions, analyze dependency graphs, validate against our architecture standards, diagnose failed runs, and generate source-to-target documentation. Several agents run in parallel across maintenance, new development, support and refactors, and the standards and gates they work against are version-controlled and reviewed like code.

Two numbers from that work:

  • Pipeline delivery went from ~96 hours to ~36 hours per source onboarded, a roughly 60% reduction with no added headcount.
  • Agents generating documentation took poorly documented assets from 82% to 16%.

I wrote about how that came together in Using Claude to Scale Data Engineering. The certification was about the layer underneath: the architecture decisions that make agent systems reliable, not just fast.


How I prepared: four weeks

Weeks 1–3: Anthropic’s courses, then build it myself. I went through Anthropic’s courses first. Then I made a rule: no pattern counts until I’ve written my own version, run it against the real API and read the trace. Every exercise got its own folder with a plan, a main.py and a log of every SDK message the run produced. I used Haiku to keep the bill small, which turned out to be a feature: a smaller model breaks earlier, so the patterns that hold up under pressure stand out.

Week 4: mock tests built by Claude, and a feedback loop. I had Claude generate mock exams, then give me personalized feedback on every miss, and I spent the rest of the week reviewing my weakest areas. Using Claude to prepare for a Claude exam is a small example of the thing the exam is about: a loop where structured feedback on failures drives the next iteration.


Four architectures, end to end

Principles are easy to agree with. What matters is how they hold up inside a real system, so here are four systems the market is building right now, each with the architecture I’d ship. Two are blueprints. Two are anchored in work I’ve actually done, and I say which is which.

Where I quote numbers, they come from my own lab runs: small experiments on Haiku, not benchmarks, but the direction of each was clear.

1. A customer-support agent with refund authority

Blueprint. The most common agent in production today, and the one where a wrong action costs real money.

The problem. The agent has to resolve tickets on its own (look up orders, issue refunds, update addresses) without ever breaking policy: no refund above the cap, no account change before identity is verified, and a human whenever the customer asks for one.

flowchart TD
  C[Customer] --> A[Support agent]
  A --> T1[lookup_customer]
  A --> T2[lookup_order]
  A --> T3[issue_refund]
  A --> T4[escalate_to_human]
  T3 -.-> H{{PreToolUse hook<br/>identity verified?<br/>amount under cap?}}
  H -->|deny + reason| A
  T4 --> P[Handoff package<br/>customer · order · findings<br/>actions tried · reason]
  P --> Q[Human queue]
  A --> G{Session guard}
  G -->|resolved| E1[Close ticket]
  G -->|anything else| T4

Design decisions.

  • Policy lives in a hook, not the prompt. The refund cap and identity check are enforced by a PreToolUse hook that denies the call and returns a reason the model can act on. In my lab, with the rules held only by the backend, an ungated agent broke a rule in 4 of 9 adversarial runs. With the hook, 0 of 9. When the rules were also in the prompt, the model obeyed in all 36 trials, even under a competing “avoid escalating” instruction. Prompts usually work. “Usually” is not a refund policy.
  • An explicit request for a human is honored immediately. The agent doesn’t try one more fix first.
  • Every session ends in one of two states: resolved, or escalated. A guard at the orchestration layer catches every other exit (max turns, a tool failure, an unexpected stop_reason) and turns it into an escalation.
  • The handoff is a structured package, not a transcript. The human gets the customer, the order, what was found, what was tried, and why it’s escalating, so they don’t start from zero.
  • Tool descriptions disambiguate. lookup_customer and lookup_order say exactly which input each takes and when to use which. Most “wrong tool” bugs are description bugs.

Failure modes handled. A transient API error is retried with backoff inside the tool and, if it persists, returned as a typed error with retryable: false and a suggested next step. It is never faked as an empty result, which the model would read as “no such order”.

What I’d measure. Autonomous resolution rate, escalation rate by reason, and policy violations: zero by construction, verified from the hook’s audit log.

2. Document extraction at scale

Anchored in my own work. I built MediVault, a prototype for a doctor I advise informally, to help his patients receive and understand their lab results. Medical exam PDFs go in; a structured health record comes out. It’s built on Google Document AI and Gemini, but the architecture is model-agnostic, and it’s the same shape as invoice, contract or claims extraction.

The problem. Documents arrive in dozens of layouts. Fields are missing, ambiguous or contradictory. A wrong value is worse than an empty one.

flowchart TD
  U[PDF upload] --> X[Extract<br/>tool use + JSON schema<br/>forced tool call]
  X --> V[Validate<br/>schema · totals · duplicates]
  V --> R{Field confidence}
  R -->|high| S[(Structured record)]
  R -->|low or conflicting| HR[Human review queue]
  HR --> S
  HR -.-> F[Error log with metadata]
  F -.-> X
  B[Backlog of documents] --> BA[Batch processing<br/>half the cost · within 24h]
  BA --> V

Design decisions.

  • The schema is the contract. Extraction goes through tool use with a JSON schema, and the tool call is forced (tool_choice), so the output is always parseable. A schema guarantees shape, not truth, which is why validation follows.
  • The schema can say “I don’t know”. Optional and nullable fields, and enums with an other value plus a detail field, so the model represents missing or odd data instead of inventing a plausible value.
  • Keep conflicts, don’t resolve them silently. If a document’s stated total doesn’t match the sum of its lines, store both and flag the conflict. Never rewrite the source data.
  • Review is routed by confidence, not random sampling. Low-confidence or conflicting fields go to a human. In MediVault, results below a confidence threshold are flagged for review, with a three-tier validation fallback before that.
  • Pick the API mode by latency. A user waiting on an upload gets the synchronous API. An overnight backlog goes through the Batch API at half the cost, as long as the deadline leaves room for a processing window of up to 24 hours.
  • Errors feed the next iteration. Every correction is logged with metadata (document type, field, error kind), and recurring patterns become new few-shot examples of the layouts that fail.

What it handled. MediVault normalizes deeply nested output into 24 clinical categories with deduplication and per-user isolation. I validated it on 176 results across 85 test types from four real lab PDFs.

What I’d measure. Field-level accuracy against a labeled set, review rate per document type, and how fast the review rate falls as examples are added.

3. Multi-agent research and analysis

Blueprint. Competitive analysis, due diligence, incident investigation: any task too wide for one context window.

The problem. One agent reading everything runs out of context and gets shallow. Several agents reading in parallel duplicate each other and produce findings nobody can verify.

flowchart TD
  Q[Research question] --> CO[Coordinator]
  CO -->|scope A| S1[Subagent]
  CO -->|scope B| S2[Subagent]
  CO -->|scope C| S3[Subagent]
  S1 --> RF[record_finding<br/>graded in code]
  S2 --> RF
  S3 --> RF
  RF -->|grade + what's missing| S1
  RF --> SY[Synthesis]
  SY --> GAP{Gaps left?}
  GAP -->|yes: refine only the gaps| CO
  GAP -->|diminishing returns| OUT[Report with cited evidence]

Design decisions.

  • Non-overlapping scopes first. The coordinator partitions the question before anyone reads anything, then refines only the gaps.
  • Parallel means one response with several delegations. The model has to emit the subagent calls together. In my runs, parallel took 18–40 seconds against 67–94 sequential. Merging the reports cost another 13–20 seconds, so the synthesis step belongs in the latency budget.
  • Each subagent gets exactly what it needs. It sees only the prompt it’s handed: no shared history. So the handoff carries the scope, the findings so far, and the boundaries. Isolation isn’t automatic either. Unless you lock it down, a subagent inherits whatever tools and servers are configured around it.
  • Findings are records, graded in code. Each one has a category, severity, claim, evidence and recommendation, and the tool checks them: evidence quoted word for word from the source, valid categories, no near-duplicates, enough coverage. It sends back exactly what’s missing. In my lab, the graded version produced a complete set in 3 of 3 trials, against 1 of 3 prompt-only. The model never invented quotes. When it got evidence wrong, it stitched real fragments together, which is exactly what a verbatim check catches.
  • Stop on diminishing returns. A round cap is only a backstop.

What I’d measure. Coverage against the planned scopes, the share of findings that pass the grader on the first try, and cost and latency per report.

4. Claude Code for an engineering team

Anchored in my own work. This is the closest to what I run every day: a data platform wired to Claude Code over MCP, with custom skills that validate jobs against our standards, diagnose failed runs and generate documentation, and several agents working in parallel. The result was the ~60% faster delivery and the 82% → 16% documentation fix above. Below is how I’d set the same thing up for any engineering team.

The problem. One engineer’s good setup doesn’t scale. A team needs shared conventions, rules that hold no matter who’s prompting, and personal freedom where it doesn’t matter.

flowchart TD
  subgraph Repo[Shared, in the repo]
    CM[CLAUDE.md<br/>conventions + @imports]
    RU[Path-scoped rules<br/>by glob]
    SK[Skills<br/>repeatable workflows]
    HK[Hooks<br/>PreToolUse gates<br/>PostToolUse lint + tests]
    PM[Settings permissions<br/>deny the dangerous]
    MCP[Project .mcp.json<br/>shared servers · env-var auth]
  end
  subgraph User[Personal]
    UM[User-level MCP servers<br/>and experiments]
  end
  Repo --> CC[Claude Code session]
  User --> CC
  CC --> CI[CI run<br/>claude -p · JSON output]

Design decisions.

  • Match each instruction to the mechanism that fits it. Conventions and context go in CLAUDE.md, split with @ imports as it grows. Guidance that only applies to some paths goes in rules scoped by glob. Multi-step workflows become Skills. Anything that must hold goes in hooks or permissions, because those run whether or not the model remembers.
  • Gate before, check after. A PreToolUse hook blocks what must never happen. A PostToolUse hook runs the formatter, linter and tests after every edit, independent of instruction-following. It’s the same idea as the validation gate on my platform that blocks non-compliant jobs before production.
  • Scope MCP servers deliberately. Team tooling goes in the project’s .mcp.json, with credentials expanded from environment variables so no secret lands in git. Personal and experimental servers stay at user level.
  • Make CI runs machine-readable. In a pipeline, Claude Code runs non-interactively with -p and JSON output, and it picks up the same project CLAUDE.md the team uses.
  • Reach for the built-in lever first. My practice-test misses had one pattern: I kept choosing the heavier answer (an extra model call, an extra file, a linter) when the platform already had a lever for the job, like a forced tool call, a schema on the tool or the project’s CLAUDE.md. The instinct to build something is strong. The architect’s move is often to use what’s already there.

What I’d measure. Lead time per change, the share of changes that pass the gates on the first attempt, and how often the same review comment repeats. A repeat means the rule belongs in a hook or a rule file.


What the score report confirmed

The report breaks the result down by objective. I scored 100% on the objectives these four architectures depend on most:

  • Orchestration safeguards and human escalation
  • Structured handoffs between agents and to human operators
  • Dynamic task decomposition
  • PreToolUse and PostToolUse hooks for business rules and code quality
  • Structured output with tool use, JSON schemas and tool_choice
  • Extraction schemas that represent missing data instead of fabricating it
  • Tool descriptions and structured MCP error handling
  • Choosing between CLAUDE.md, rules, Skills, hooks and settings permissions

Where I’m sharpening: session resumption and context management across long codebase explorations. Both were on my practice-test miss list too, and both are now on my build list.


The common thread

Across all four, the same checklist:

  1. Define the end states first. Resolved, escalated, or failed with a reason.
  2. Put must-hold rules in code. Hooks and permissions enforce; prompts and CLAUDE.md guide.
  3. Make output structured by contract, with room to say “unknown”.
  4. Design the handoffs. Every agent gets exactly the context it needs.
  5. Treat errors as data. Typed, with a recoverability flag, never faked as success.
  6. Grade in code, review by confidence.

The next piece I want to put into production is evaluation: a harness that scores prompts and agent runs systematically, so improvements are measured rather than felt.

Next: I’m preparing for the CCA-P, Anthropic’s professional-level architect exam.


If you’re building agent systems and want to compare notes on architecture, I’d like to hear from you. You can reach me through the contact form.