Skip to content
Claude Certified Architect – Professional (CCAR-P) Exam Prep

Lesson 4 of 31 · 7 min

x
4/31

End-to-End Architecture Design (Input to Feedback Loop)

Video lesson: CCAR-P 04/31: End-to-End Architecture Design

Reference architecture (design guidance; components are verified Claude capabilities)

1Input -> Intake & validation -> Context assembly -> Orchestration -> Tools / integrations2                                                         |                 |3                              Model + prompt  <----------+-----------------+4                                      |5                       Output validation -> Guardrails / human review -> Delivery6                                      |7                       Logging & telemetry -> Evaluation -> Feedback -> Change
LayerResponsibilitiesClaude features (verified)
Intake and validationAuthenticate, size-limit, screen for abuse, normaliseHaiku-class screening with structured output (see D5.2); token counting API
Context assemblyRetrieve, rank, trim; assemble system, tools, documentsSearch-result blocks and citations; memory tool; compaction and context editing; prompt caching
OrchestrationWorkflow or agent; subagents; retries; budgetsAgent SDK loop, subagents, hooks, maxTurns, maxBudgetUsd
Model and promptPick tier and effort; versioned promptModel lineup and effort levels (D2.5)
Tools and integrationsBusiness systems, search, code executionTool use, strict tool use, MCP, tool search
Output handlingSchema, business-rule validation, citationsStructured outputs; validation and retry (CCAR-F 4.4)
Safety and oversightGuardrails, approvals, auditHooks (PreToolUse deny/ask/defer), permissions, sandboxing
ObservabilityTraces, metrics, cost, qualityOpenTelemetry export, usage fields (D3.4)
Evaluation and feedbackRegression suite, drift checks, user feedbackHeld-out evals, LLM-based grading (D4.1)

The feedback loop is part of the design

Log every request with the model, prompt version, tool calls, stop reason, token usage and outcome. Turn failures and user corrections into new evaluation cases. Re-run the suite on every prompt, tool or model change. Without this, quality decays silently (D6.5).

Cross-cutting decisions

  • Sync vs async: user waiting = real-time API with streaming; backlog work = Batches at 50% (verified, up to 24 hours).
  • Cost levers: prompt caching first (Anthropic measured it as usually the largest lever), then effort, tier, trimming.
  • Failure behaviour: what the user sees when a tool, model or validator fails (5.3 error propagation).
  • Security boundary: keep credentials outside the agent's environment; least privilege (D3.2).

Exam traps

  • Designing only the happy path, with no failure, escalation or rollback.
  • No telemetry or evaluation loop, so nothing improves.
  • One model for every step regardless of difficulty.
  • Putting secrets in the prompt or the agent's reach.
  • Using real-time calls for bulk back-fills.

References

  1. Building effective agents — checked Oct 16, 2026
  2. Agent SDK overview — checked Oct 16, 2026
  3. Observability with OpenTelemetry (Agent SDK) — checked Oct 16, 2026
  4. Prompt caching — checked Oct 16, 2026
  5. Batch processing — checked Oct 16, 2026
  6. Structured outputs — checked Oct 16, 2026
  7. Define success criteria and build evaluations — checked Oct 16, 2026

Check your understanding

  • Name the components that turn production failures into improvements.Show answer

    Answer

    Logging and telemetry, evaluation cases built from failures, regression runs on every change.
  • Where do credentials belong relative to the agent?Show answer

    Answer

    Outside its security boundary, injected by a proxy.
  • Bulk re-classification overnight: sync or batch?Show answer

    Answer

    Batch (cheaper, asynchronous).
Previous

Progress is saved in this browser.

Next Lesson