Skip to main content

Anti-patterns guide

The CCA exam is specifically designed so that wrong answers look reasonable. Every distractor represents a real mistake that engineers make when they understand the concepts partially but haven't internalized the production trade-offs.

Knowing these 7 patterns is worth 10–15 points on the real exam.

Study these before taking any practice questions

These anti-patterns appear in every domain. Once you recognize the pattern in a question, the correct answer becomes obvious — the wrong answers are deliberately constructed around these exact mistakes.

Why it's wrong

Few-shot examples are demonstrations — they influence Claude's behavior probabilistically, not deterministically. Showing Claude examples of "always call verify_identity before process_payment" reduces but cannot eliminate ordering violations. For financial or compliance workflows, "most of the time" is not acceptable.

✓ The correct approach

Use programmatic prerequisites: hooks that block downstream tool calls until required upstream tools have completed. The gate fires deterministically every time — not based on what Claude has "seen" in examples.

💡 Exam tip

If the exam asks about enforcing ORDERING or SEQUENCING of tool calls for compliance, the answer is never few-shot examples — it is always programmatic hooks or prerequisite gates.


The meta-pattern

All 7 anti-patterns share a common failure mode: substituting probabilistic mechanisms for deterministic ones.

TaskProbabilistic (wrong)Deterministic (correct)
Enforce tool orderingFew-shot examplesProgrammatic prerequisite hooks
Escalation routingSelf-reported confidenceRule-based triggers
Schema compliancePrompt instructionsstrict: true + JSON schema
Loop terminationText content parsingstop_reason check
Error recoveryRetry everythingisRetryable flag

When the exam asks "how do you ensure X always happens," the answer is always the deterministic mechanism — never the probabilistic one.