The team is debating whether to build a new capability as a custom tool or to use an existing built-in tool that nearly covers the use case but lacks one specific feature.
How would you decide?
The supplied Claude Certified Developer Foundations material identifies A as the best answer. The decision should begin with the actual capability gap rather than a predetermined preference for built-in or custom tooling. If the existing capability can satisfy the requirement with a small supported extension or composition, using it avoids unnecessary implementation and maintenance. If the missing capability is fundamental, a custom tool becomes justified.
Anthropic's tool architecture explicitly supports both categories. Claude provides Anthropic-managed or predefined tools while also allowing developers to define custom tools for operations specific to their application. With a custom client tool, the application defines the contract and executes the operation before returning its result to Claude.
A is more complete than C because it evaluates both sides of the boundary: whether the existing mechanism can realistically meet the missing requirement and, if not, whether custom implementation is warranted. B prioritizes precedent over current requirements. D only determines whether the unmodified built-in tool is sufficient and does not address what to do when it is almost---but not entirely---sufficient.
Relevant Claude Developer topics: built-in tools, custom tools, capability-gap analysis, tool contracts, maintenance cost, extensibility, and agent construction decisions.
===============
Your Claude application has multi-step workflows where each step's output is needed only briefly before the agent moves on. The cumulative tool output is filling the context window with content that is no longer relevant.
How would you handle the accumulating tool output?
Option A applies the correct context-engineering strategy: remove stale tool results once they no longer contribute useful information to subsequent reasoning. Agentic workflows frequently accumulate search results, file contents, API responses, and intermediate artifacts. Keeping all of them indefinitely consumes the finite context window, raises token cost, and can reduce model focus by introducing low-value information.
Anthropic specifically documents tool result clearing for this situation. Context Editing can remove older tool results when the conversation grows, while preserving recent interactions and optionally retaining tools whose results must remain available. Anthropic describes old tool outputs such as retrieved files or search results as candidates for clearing after Claude has processed them.
Prompt caching in B solves a different problem: it can lower cost and latency for repeated static prompt prefixes, but cached tokens still constitute context and therefore do not eliminate context-window pressure. C changes model capability without solving the architectural cause. D maximizes context pollution.
The correct architecture is therefore to preserve high-signal state while pruning ephemeral intermediate outputs. This aligns with Claude Developer coverage of context engineering, long-running agents, context-window management, tool-result clearing, and efficient agent state management. Anthropic's broader context-engineering guidance likewise emphasizes curating the smallest high-signal context necessary for successful inference.
===============
You are choosing between using STDIO-based communication and HTTP-based communication for an MCP server. The server will be invoked by a Claude Code session running locally.
Which communication pattern would you use?
Option D is directly supported by both the supplied examination material and Claude Code's MCP documentation. The examination source selects STDIO for this local-process scenario.
Claude Code's official MCP guidance distinguishes remote HTTP servers from local STDIO servers. Anthropic states that STDIO servers run as local processes and communicate through standard input and standard output. They are particularly suitable for local tools requiring direct machine access or for custom scripts. Claude Code can launch the process itself and communicate with it without creating, exposing, securing, or maintaining a network listener.
HTTP is appropriate when the MCP server exists as a separately reachable network service, especially for cloud-hosted or shared services. That requirement is absent here: the server is being invoked locally from a Claude Code session.
A creates duplicate transport infrastructure without a stated availability requirement. B incorrectly assumes one transport is universally superior regardless of deployment topology. C describes HTTP polling rather than the normal MCP transport relationship and introduces unnecessary request overhead.
Therefore, local execution strongly favors STDIO; remote/shared deployment generally favors HTTP.
Relevant Claude Developer topics: MCP architecture, STDIO transport, HTTP transport, Claude Code integrations, local process communication, and deployment topology.
===============
Your team is preparing a new Claude application for production, and the product team has asked for a cost projection. The team needs to estimate the cost based on expected request volume, average input length, and average output length. How would you build the projection?
Option B is correct because Claude API cost is fundamentally driven by usage volume multiplied by the token economics of the selected model and features. A credible projection must therefore estimate requests, average input tokens per request, average output tokens per request, applicable input/output prices, and expected prompt-cache behavior. Anthropic's pricing documentation treats input, output, cache writes, and cache reads as distinct billable categories, with cache hits priced below standard input processing.
A practical forecast can be modeled as: request volume expected per-request input cost plus request volume expected per-request output cost, adjusted for cache-write/read rates and any other applicable pricing modifiers. The model should also include ranges for variance rather than only one point estimate, because token lengths and cache-hit rates will fluctuate in production.
Option A assumes a historical application has the same token profile and pricing, which may be false. Option C omits output tokens even though output pricing can be a material share of cost. Option D postpones the very token estimates the product team needs before launch.
Therefore, B is the complete projection method. Relevant Study Guide topics: token accounting, model pricing, prompt caching, cost forecasting, workload sizing, and production economics.
===============
You are designing a multi-step Claude workflow where some steps must reason without seeing the full prior conversation history. The team wants to keep specific context isolated to specific steps.
The context engineering technique you would use is...
Option C is the correct application of context isolation. A specialized step should receive the minimum relevant information required for its own task rather than inheriting an ever-growing global transcript. This improves signal-to-noise ratio, limits accidental cross-task influence, controls token usage, and makes individual components easier to evaluate.
Anthropic's context-engineering guidance explicitly identifies multi-agent architectures as a technique for long-horizon work. Specialized subagents can operate with their own context windows and return condensed results to an orchestrating agent rather than exposing every agent to every intermediate detail. This architecture protects each reasoning process from irrelevant history while allowing the overall system to preserve necessary state.
Options A and D represent the opposite approach: indiscriminately loading the full prior history. Larger context is not automatically better; Anthropic warns that excessive context can introduce context pollution and degrade retrieval or attention to important information. B also fails because a single global prompt does not isolate state or tailor the information available to each processing stage.
Therefore, C best implements scoped reasoning boundaries. Relevant Claude Developer topics are multi-agent architecture, subagents, context isolation, context engineering, orchestration, and long-running workflow design.
===============
Elena Sanchez
16 days agoDiego Greco
22 days agoRachel Allen
2 months ago