178 interactive practice questions for the Claude Certified Architect - Foundations exam. Click any answer to reveal the correct response and explanation.
Which task is best served by a single LLM call rather than an agent?
The Tool Runner and the Claude Agent SDK are often confused. What distinguishes them?
Which single option supplies _both_ the agent harness and a managed per-session deployment/sandbox?
Per the "should I promote an action to a dedicated tool?" heuristic, which is the strongest reason to build a `send_email` tool instead of routing through bash?
In Managed Agents, where do `model`, `system`, and `tools` belong?
Why is calling `agents.create()` at the top of every request an anti-pattern?
A Managed Agent needs a secret to call a third-party service. What is the first-class mechanism (cloud environments)?
In a session's event drain loop, when should you break?
The SSE event stream drops mid-session. On reconnect, how do you avoid missing events?
To run a Managed Agent on a recurring cron schedule, you use…
📋 Scenario: Customer Support Resolution Agent
Your agentic loop sends a request to Claude and receives a response with stop_reason of 'tool_use'. What is the correct control-flow decision?
📋 Scenario: Customer Support Resolution Agent
You want your agentic loop to terminate reliably. Which is the correct primary termination condition?
📋 Scenario: Customer Support Resolution Agent
Production data shows that in 12% of cases the agent skips get_customer and calls lookup_order using only a stated name, sometimes causing misidentified accounts and incorrect refunds. What most effectively fixes this?
📋 Scenario: Customer Support Resolution Agent
A refund policy states the agent must never issue refunds above $500 without human approval. Which implementation guarantees compliance?
📋 Scenario: Customer Support Resolution Agent
Different MCP tools return timestamps in different formats (Unix epoch, ISO 8601, numeric status codes). You want the agent to reason over normalized data without changing each backend. What is the cleanest approach?
📋 Scenario: Multi-Agent Research System
Reports on 'impact of AI on creative industries' cover only visual arts. The coordinator log shows it decomposed the topic into 'AI in digital art', 'AI in graphic design', and 'AI in photography'. Subagents each executed correctly. Root cause?
📋 Scenario: Multi-Agent Research System
A coordinator needs to spawn subagents via the Task tool. Which statement is correct about subagent context?
📋 Scenario: Multi-Agent Research System
You want subagents to run in parallel to cut latency. How should the coordinator invoke them?
📋 Scenario: Multi-Agent Research System
For a coordinator to be able to spawn subagents, which configuration is required?
📋 Scenario: Multi-Agent Research System
The synthesis agent needs to verify facts mid-task. Currently it returns to the coordinator, which invokes web search, then re-invokes synthesis — adding 40% latency. 85% of verifications are simple fact-checks; 15% need deeper investigation. Best approach?
📋 Scenario: Code Generation with Claude Code
You are restructuring a monolith into microservices — dozens of files, decisions about service boundaries and dependencies. Which decomposition strategy fits best?
📋 Scenario: Customer Support Resolution Agent
A customer message contains three separate concerns (a billing dispute, a return, and an address change). What is the recommended handling pattern?
📋 Scenario: Code Generation with Claude Code
You paused a long investigation session yesterday. Since then, teammates modified two of the files you had analyzed. You resume with --resume. What is the best practice?
📋 Scenario: Code Generation with Claude Code
You want to compare two different refactoring strategies that both start from the same completed codebase analysis. Which mechanism is designed for this?
📋 Scenario: Scenario 1 — Customer Support Resolution Agent
Production data shows that in 12% of cases, your agent skips `get_customer` entirely and calls `lookup_order` using only the customer's stated name, occasionally leading to misidentified accounts and incorrect refunds. What change would most effectively address this reliability issue?
📋 Scenario: Scenario 3 — Multi-Agent Research System
After running on "impact of AI on creative industries," reports cover only visual arts — missing music, writing, and film production. The coordinator decomposed the topic into: "AI in digital art creation," "AI in graphic design," and "AI in photography." What is the most likely root cause?
📋 Scenario: Customer Support Resolution Agent
Your agentic loop calls a tool and the API responds with stop_reason: "end_turn" instead of "tool_use". What should the loop do?
📋 Scenario: Customer Support Resolution Agent
Mid-processing, the agent receives stop_reason: "max_tokens" while a tool_use block is still active (the JSON arguments are incomplete). What is the correct behavior?
📋 Scenario: Multi-Agent Research System
You have 6 independent research topics. Using the Task tool to run parallel subagents reduces total time from 48 minutes to 12 minutes. What architectural property enables this?
📋 Scenario: Code Generation with Claude Code
After generating code in a long session, you want an unbiased review without the generator's reasoning context influencing it. Which approach achieves genuine independence?
📋 Scenario: Multi-Agent Research System
Your 5-stage pipeline runs A→B→(C and D in parallel)→E. Stages C and D can run simultaneously after B completes. Which architecture model best describes this?
📋 Scenario: Developer Productivity with Claude
You want to prevent the agent from executing any destructive bash commands (e.g., rm -rf, DROP TABLE) in the production environment. Where is the most reliable enforcement point?
📋 Scenario: Developer Productivity with Claude
Compliance requires a tamper-evident log of every file write performed by the agent, including what was written, timestamp, and session ID. Which implementation point is correct?
📋 Scenario: Multi-Agent Research System
A research agent has been running for 45 minutes on a large dataset. You specified 'be thorough' but it shows no sign of stopping. What is the core architectural problem?
📋 Scenario: Customer Support Resolution Agent
A customer requests a refund that exceeds the agent's $200 autonomous approval limit. What should the agentic loop do?
📋 Scenario: Developer Productivity with Claude
You want to ensure the agent never deploys to production during off-hours (before 9 AM or after 5 PM UTC). Which implementation is most reliable?
When Claude makes multiple parallel tool calls in one assistant message, how must you return the results?
Which `tool_choice` value forces Claude to use at least one tool but lets it pick which?
The SDK Tool Runner (`client.beta.messages.tool_runner`) automates which of the following?
How should you always read the `input` of a tool_use block produced by current models?
How do you declare the built-in bash tool correctly?
A web search server-side tool encounters an error. How is it surfaced?
What does "programmatic tool calling" (PTC) change about how tool results reach Claude?
For strict tool use guaranteeing exact schema validation, where does `strict: true` go?
Using the MCP connector on the Messages API, which two parameters must be supplied together?
What is the correct mental model of MCP?
A hosted MCP server (e.g. Notion, Linear) typically requires which kind of credential?
📋 Scenario: Customer Support Resolution Agent
The agent frequently calls get_customer when users ask about orders. Both tools have minimal descriptions ('Retrieves customer information' / 'Retrieves order details') and accept similar identifiers. What is the most effective first step?
📋 Scenario: Multi-Agent Research System
You have a generic analyze_document tool being used inconsistently for very different jobs. What is the recommended redesign?
📋 Scenario: Customer Support Resolution Agent
An MCP tool must communicate that a refund was rejected because it violates policy (a permanent business rule). How should the tool respond so the agent behaves correctly?
📋 Scenario: Multi-Agent Research System
Which distinction is most important for an agent to make appropriate recovery decisions from tool errors?
📋 Scenario: Multi-Agent Research System
A synthesis agent that should only combine findings keeps attempting web searches, producing poor results. It currently has access to 18 tools. Best fix?
📋 Scenario: Structured Data Extraction
You want to guarantee the model calls a tool rather than replying with conversational text, but it may choose which extraction tool. Which tool_choice setting?
📋 Scenario: Structured Data Extraction
You must ensure extract_metadata runs before any enrichment tool. How do you force this on the first turn?
📋 Scenario: Developer Productivity with Claude
Your team wants a shared MCP server (with a token) available to everyone on the project, without committing secrets. What is the correct configuration?
📋 Scenario: Developer Productivity with Claude
The agent keeps preferring the built-in Grep tool over a more capable custom MCP search tool. What is the most effective remedy?
📋 Scenario: Developer Productivity with Claude
An agent must find all callers of a function across an unfamiliar codebase. Which built-in tool is the right first choice?
📋 Scenario: Scenario 1 — Customer Support Resolution Agent
Production logs show the agent frequently calls `get_customer` when users ask about orders (e.g., "check my order #12345"), instead of calling `lookup_order`. Both tools have minimal descriptions ("Retrieves customer information" / "Retrieves order details") and accept similar identifier formats. What's the most effective first step?
📋 Scenario: Scenario 3 — Multi-Agent Research System
85% of synthesis verifications are simple fact-checks requiring 2–3 coordinator round trips and adding 40% latency. The other 15% require deep investigation. How do you reduce overhead while maintaining reliability?
📋 Scenario: Multi-Agent Research System
You want to expose a static library of 200 curated research documents that agents can browse and retrieve by topic — without transmitting all documents in every tool call. Which MCP capability fits?
📋 Scenario: Developer Productivity with Claude
You need an MCP server that provides personal access tokens but only for your own developer machine — not shared with the team. Where should you configure it?
📋 Scenario: Customer Support Resolution Agent
A refund tool times out due to a downstream payment gateway being temporarily unavailable. How should the tool's error response be structured to support correct agent recovery?
📋 Scenario: Structured Data Extraction
You have 25 extraction tools (parse_invoice, parse_receipt, parse_contract …). Performance metrics show tool selection accuracy declining. What is the most likely cause and remedy?
📋 Scenario: Multi-Agent Research System
A coordinator calls an MCP search tool that returns zero results for a valid query. How should the tool distinguish this from an error condition?
📋 Scenario: Developer Productivity with Claude
You need to force the agent to call the 'run_linter' tool at the start of every code review session, before any other tools. How do you enforce this for the first turn?
📋 Scenario: Customer Support Resolution Agent
An MCP tool attempts to access a customer record but the agent lacks the required permission scope. How should the tool communicate this so the agent escalates correctly?
📋 Scenario: Structured Data Extraction
Your data extraction agent must only use the specialized extraction tools — never the general-purpose Bash or WebFetch tools available in the environment. How do you enforce this per-agent restriction?
📋 Scenario: Customer Support Resolution Agent
Two tools have very similar descriptions — lookup_customer_by_email and lookup_customer_by_phone. The model almost always picks lookup_customer_by_email even when a phone number is provided. Best fix?
📋 Scenario: Developer Productivity with Claude
An MCP server runs in the user's home directory (~/.claude/) and provides access to the developer's personal GitHub PAT. Which security concern does this placement address?
📋 Scenario: Code Generation with Claude Code
You want a custom /review slash command available to every developer automatically when they clone or pull the repository. Where do you create it?
📋 Scenario: Code Generation with Claude Code
Test files are spread throughout the codebase (e.g., Button.test.tsx beside Button.tsx) and you want identical test conventions applied automatically regardless of location. Most maintainable approach?
📋 Scenario: Code Generation with Claude Code
A new teammate reports that instructions you rely on aren't being applied for them. You had placed them in ~/.claude/CLAUDE.md. Why, and what's the fix?
📋 Scenario: Code Generation with Claude Code
Your root CLAUDE.md has grown huge and unwieldy across many topics. What is a recommended way to keep it modular?
📋 Scenario: Code Generation with Claude Code
You inspect inconsistent behavior across sessions and suspect the wrong memory files are loading. Which command helps you verify what memory is active?
📋 Scenario: Developer Productivity with Claude
You have a codebase-analysis skill that produces very verbose output you don't want polluting the main conversation. Which SKILL.md frontmatter option helps?
📋 Scenario: Developer Productivity with Claude
When should you prefer a Skill over putting guidance in CLAUDE.md?
📋 Scenario: Code Generation with Claude Code
You must restructure a monolith into microservices — dozens of files, multiple valid approaches, architectural decisions. Which mode should you use?
📋 Scenario: Code Generation with Claude Code
Which task is the best fit for direct execution rather than plan mode?
📋 Scenario: Claude Code for Continuous Integration
Your CI job runs `claude \"Analyze this PR for security issues\"` but hangs waiting for interactive input. Correct fix?
📋 Scenario: Claude Code for Continuous Integration
You need machine-parseable findings from CI-invoked Claude Code so a script can post inline PR comments. Which flags help?
📋 Scenario: Claude Code for Continuous Integration
After new commits, you re-run the automated review and it re-posts issues that were already flagged before. How do you avoid duplicate comments?
📋 Scenario: Scenario 2 — Code Generation with Claude Code
You want to create a custom `/review` slash command that runs your team's standard code review checklist. This command should be available to every developer when they clone or pull the repository. Where should you create this command file?
📋 Scenario: Scenario 2 — Code Generation with Claude Code
You've been assigned to restructure the team's monolithic application into microservices. This will involve changes across dozens of files and requires decisions about service boundaries and module dependencies. Which approach should you take?
📋 Scenario: Scenario 2 — Code Generation with Claude Code
Test files are spread throughout the codebase alongside the code they test (e.g., `Button.test.tsx` next to `Button.tsx`). You want all tests to follow the same conventions regardless of location. What's the most maintainable way to ensure Claude automatically applies the correct conventions?
📋 Scenario: Scenario 5 — Claude Code for CI/CD
Your pipeline script runs `claude "Analyze this PR for security issues"` but the job hangs indefinitely — Claude Code is waiting for interactive input. What's the correct fix?
📋 Scenario: Code Generation with Claude Code
You are creating a personal slash command for refactoring that should only be available on your own machine — teammates should not see or use it. Where do you create it?
📋 Scenario: Claude Code for Continuous Integration
Your CI pipeline needs to run Claude Code and output structured JSON that a downstream script will parse to post inline PR comments. Which exact flags do you use?
📋 Scenario: Developer Productivity with Claude
A skill runs database profiling and produces 3,000 lines of query statistics that would flood the main session's context window. Which SKILL.md frontmatter setting isolates this output?
📋 Scenario: Code Generation with Claude Code
You want to enforce specific API naming conventions (e.g., use snake_case for all REST endpoints) only when files in src/api/ are modified, not for other files in the repo. Best mechanism?
📋 Scenario: Claude Code for Continuous Integration
A previous CI review session was interrupted mid-task. You want to resume from the exact point it stopped without re-running completed steps. Which flag enables this?
📋 Scenario: Code Generation with Claude Code
Your team has a sub-team working exclusively on the payments/ directory that wants its own specialized context loaded automatically without affecting other developers. Which mechanism achieves this?
📋 Scenario: Code Generation with Claude Code
You are planning to migrate the team's auth library from v1 to v2, which involves choosing between two different approach patterns and modifying 30+ files. Which mode and sequence is correct?
📋 Scenario: Claude Code for Continuous Integration
Your CI security review runs claude -p "Review PR for vulnerabilities" and produces findings, but subsequent runs on updated code re-report the same already-fixed issues. What should you include to prevent duplicate reports?
📋 Scenario: Developer Productivity with Claude
You have a skill that generates API documentation. It should only be able to use the Read tool — never Write or Bash. How do you enforce this in SKILL.md?
📋 Scenario: Code Generation with Claude Code
The root CLAUDE.md has grown to 4,000 words covering testing, API conventions, security standards, and deployment guidelines. Which refactoring approach is recommended?
Assistant-turn prefills (a final `assistant` message that Claude continues) now return a 400 on the 4.6/4.7/4.8 family and Fable 5. What is the recommended replacement for forcing JSON output?
On Opus 4.6+, a prompt says "CRITICAL: You MUST use this tool." The model over-triggers the tool. What is the recommended fix?
Which structured-outputs constraint is _NOT_ supported by the JSON schema validator?
Structured outputs (`output_config.format`) are incompatible with which feature?
To count tokens for a Claude prompt accurately, you should…
📋 Scenario: Claude Code for Continuous Integration
Your automated code review flags too many false positives on comment accuracy, eroding developer trust. Which prompt change best improves precision?
📋 Scenario: Claude Code for Continuous Integration
One review category (style nits) has a very high false-positive rate and is undermining trust in the accurate categories. Pragmatic short-term action?
📋 Scenario: Structured Data Extraction
Detailed prose instructions still produce inconsistently formatted extraction output. Which technique most reliably improves consistency?
📋 Scenario: Structured Data Extraction
You need guaranteed schema-compliant JSON with zero syntax errors from an extraction task. Best approach?
📋 Scenario: Structured Data Extraction
Even with a strict JSON schema via tool use, you still see line items that don't sum to the stated total. Why?
📋 Scenario: Structured Data Extraction
Source documents sometimes omit a field entirely, and the model fabricates values to fill required fields. How should you design the schema?
📋 Scenario: Structured Data Extraction
For an extensible category field where new, unforeseen categories may appear, what schema pattern is recommended?
📋 Scenario: Structured Data Extraction
A schema-validation step fails on an extraction. When is a retry-with-error-feedback loop likely to succeed versus fail?
📋 Scenario: Structured Data Extraction
You must process 100,000 documents for a weekly audit report with no strict latency requirement, and want to cut cost. Which approach fits?
📋 Scenario: Claude Code for Continuous Integration
A model reviewing the very code it just generated in the same session misses subtle bugs. What most improves detection?
📋 Scenario: Claude Code for Continuous Integration
A 14-file PR review done in one pass gives inconsistent depth and even contradictory findings (flagging a pattern in one file, approving identical code in another). Best restructuring?
📋 Scenario: Scenario 5 — Claude Code for CI/CD
Two workflows: (1) a blocking pre-merge check that must complete before developers can merge; (2) a technical debt report generated overnight. Your manager proposes switching both to the Message Batches API for 50% cost savings. How should you evaluate this?
📋 Scenario: Scenario 5 — Claude Code for CI/CD
A PR modifies 14 files (duplicate of D4-Q11 — official exam sample). Single-pass review produces inconsistent depth, missed bugs, and contradictory feedback (flagging a pattern in one file while approving identical code elsewhere). How should you restructure the review?
📋 Scenario: Structured Data Extraction
You need to extract structured data from 50,000 legal contracts for a compliance audit. The audit is non-blocking and results are needed within 24 hours. Which approach best balances cost and feasibility?
📋 Scenario: Structured Data Extraction
You submitted a batch of 500 extraction requests. Now you need to match each response back to the original document it processed. Which mechanism enables this correlation?
📋 Scenario: Structured Data Extraction
Records from before 1990 often have no 'secondary_contact_phone' field — it didn't exist. Your extraction schema has secondary_contact_phone as required: true, causing fabricated phone numbers. Fix?
📋 Scenario: Claude Code for Continuous Integration
An extraction fails schema validation — a date field has format "June 2, 2024" but the schema expects ISO-8601 "2024-06-02". Should you retry, and if so, how?
📋 Scenario: Structured Data Extraction
Prose instructions for extracting contract 'party types' result in inconsistent output: sometimes 'Buyer', sometimes 'buyer', sometimes 'BUYER', sometimes 'purchasing_party'. Best fix?
📋 Scenario: Claude Code for Continuous Integration
Your CI review prompt says 'flag potential security issues.' It generates too many noisy false positives. Which prompt change most improves precision without missing real issues?
📋 Scenario: Structured Data Extraction
A free-text extraction produces correct data 95% of the time, but 5% has syntax errors (unclosed braces, missing quotes). What is the most reliable way to eliminate the 5%?
📋 Scenario: Structured Data Extraction
You receive valid JSON with correct syntax from tool_use, but a 'total_amount' field is $500 while the sum of line items totals $450. What type of validation is needed and what does tool_use guarantee?
📋 Scenario: Claude Code for Continuous Integration
A code review agent flags a security vulnerability in file A but approves identical code in file B in the same pass. Root cause and remedy?
📋 Scenario: Multi-Agent Research System
You need to categorize research documents into one of 12 known topic areas, but occasionally a document genuinely spans two topics and others don't fit any category. What schema design pattern handles this?
What is the single invariant that governs all prompt caching behavior?
You repeat identical-prefix requests but `cache_read_input_tokens` is always zero. The most likely cause is…
What is the maximum number of `cache_control` breakpoints per request?
Which change does _NOT_ invalidate the tools+system cache tier?
Cache _writes_ cost more than base input. What is the multiplier for the 5-minute TTL?
On Claude Opus 4.8, how do you inject an operator instruction mid-conversation _without_ invalidating the cached prefix?
What is the key difference between compaction and context editing?
When using server-side compaction, what must you append back to `messages` on each turn?
Which context-editing strategy type clears old tool results?
Which mechanism is appropriate when state must persist _across sessions_, not just within one conversation?
📋 Scenario: Customer Support Resolution Agent
In long conversations, progressive summarization is dropping specific numbers (refund amounts, dates, order IDs) into vague phrasing, causing errors. Best mitigation?
📋 Scenario: Multi-Agent Research System
Aggregated inputs are large, and the model reliably uses the beginning and end but omits findings from the middle. What technique addresses this 'lost in the middle' effect?
📋 Scenario: Customer Support Resolution Agent
Each order lookup returns 40+ fields but only about 5 are relevant to returns, and these verbose results accumulate and consume context. Best practice?
📋 Scenario: Customer Support Resolution Agent
The agent achieves only 55% first-contact resolution: it escalates straightforward cases and tries to autonomously handle ones needing policy exceptions. Most effective first fix for escalation calibration?
📋 Scenario: Customer Support Resolution Agent
A customer explicitly and immediately demands to speak to a human, though the issue looks resolvable. Correct behavior?
📋 Scenario: Customer Support Resolution Agent
A lookup returns multiple customer matches for the provided name. What should the agent do?
📋 Scenario: Multi-Agent Research System
A subagent's search times out. Which error-propagation approach best enables the coordinator to recover intelligently?
📋 Scenario: Developer Productivity with Claude
During a long codebase exploration, the model starts giving inconsistent answers and referencing 'typical patterns' instead of the specific classes it found earlier. Best countermeasures?
📋 Scenario: Structured Data Extraction
Your extraction pipeline reports 97% aggregate accuracy, and you're tempted to reduce human review. What is the key risk and mitigation?
📋 Scenario: Multi-Agent Research System
Two credible sources report different statistics for the same metric. How should the synthesis output handle this?
📋 Scenario: Scenario 1 — Customer Support Resolution Agent
Your agent achieves 55% first-contact resolution, well below the 80% target. Logs show it escalates straightforward cases (standard damage replacements with photo evidence) while attempting to autonomously handle complex situations requiring policy exceptions. What's the most effective way to improve escalation calibration?
📋 Scenario: Scenario 3 — Multi-Agent Research System
The web search subagent times out. You need to design how this failure information flows back to the coordinator. Which error propagation approach best enables intelligent recovery?
📋 Scenario: Multi-Agent Research System
A 15-source research synthesis at position 15–35 in a 50-source aggregate is being ignored in the final output. What is the cause and the recommended mitigation?
📋 Scenario: Developer Productivity with Claude
A long codebase exploration session crashes mid-task. On restart, the agent has no memory of which files were already analyzed. What architectural feature prevents this data loss?
📋 Scenario: Customer Support Resolution Agent
An agent processes support tickets from three different product lines. Tickets from Product C are consistently handled incorrectly, but the other two lines are fine. You have 97% overall accuracy. What does this imply about evaluation?
📋 Scenario: Multi-Agent Research System
After 200,000 tokens of research, the model begins citing 'common knowledge' for specific statistics it should be deriving from the collected sources. What context management technique should the coordinator apply?
📋 Scenario: Customer Support Resolution Agent
An order lookup tool returns full order objects with 60+ fields. Only 4 fields (order_id, status, amount, created_at) are ever used by the support agent. The agent's context fills up after 20 minutes due to accumulated tool results. Best fix?
📋 Scenario: Multi-Agent Research System
A research subagent encounters a claim from a source but cannot verify it (the source URL is inaccessible). What is the most accurate way to represent this in the synthesized output?
📋 Scenario: Customer Support Resolution Agent
The agent successfully identified the customer's issue and found a resolution tool, but the resolution tool requires a supervisor token the agent does not have. What is the correct behavior?
📋 Scenario: Multi-Agent Research System
At what point should the research coordinator trigger /compact to avoid context degradation rather than simply running out of tokens?
📋 Scenario: Structured Data Extraction
You add a prompt caching breakpoint at the end of your 10,000-token system prompt that includes a step_id that changes each run. Subsequent requests always show zero cache_read_input_tokens. Why?
📋 Scenario: Customer Support Resolution Agent
A customer provides an order ID that looks valid but the lookup tool returns nothing. What should the agent do next?
Which model string should you use by default when the caller does not name a specific model?
Which is Anthropic's most capable widely released model, intended for the most demanding reasoning and long-horizon agentic work?
What is the context window of Claude Haiku 4.5, and how does it differ from the current Opus/Sonnet/Fable models?
A user wants to look up whether a specific model supports vision or a given effort level _at runtime_. What is the recommended approach?
A request specifies `claude-3-5-sonnet-20241022` and returns a 404. What happened?
Which statement about the Messages API conversation state is correct?
Which message arrangement is _invalid_ and returns a 400?
What is the recommended default `max_tokens` for a _streaming_ request, and why?
A response returns `stop_reason: "pause_turn"` during server-side tool use. How do you continue?
`response.stop_reason` is `"model_context_window_exceeded"`. What does it mean, distinct from `max_tokens`?
Which SDK helper returns the fully-assembled message when you stream but don't need individual events?
On Opus 4.8, what happens if you send `thinking: {type: "enabled", budget_tokens: 8000}`?
On Opus 4.8/4.7, what happens if you omit the `thinking` field entirely?
Where does the `effort` parameter live, and what are its levels on Opus 4.8?
On Opus 4.8/4.7 and Fable 5, what is the default value of `thinking.display`, and what does it mean?
A "task budget" (beta) differs from `max_tokens` in that…
On Fable 5, a safety classifier declines a request. How is this surfaced, and what should your code check first?
Fable 5 code should ship a refusal fallback by default. On the first-party API, what is the preferred mechanism?
Which is a hard requirement when using Fable 5?
The Message Batches API offers what cost reduction, and how do results arrive?
Which HTTP errors do the Anthropic SDKs automatically retry with exponential backoff?
Best practice for catching API errors in the SDK is to…
Which is the most effective lever to reduce cost for a large, repeated, stable context prefix?