Pre-Winter Sale Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

You are setting up a Claude application that will run a mix of multi-turn conversations and one-off requests. You want to use caching techniques to reduce token costs where they apply. A teammate suggests caching the model's output as well, so the application does not have to make duplicate Claude calls when similar queries arrive.

You would apply prompt caching to...

A.

Nothing, because prompt caching does not affect cost in any application that mixes multi-turn conversations and one-off requests in a single deployment.

B.

The model's output, treating the response from each request as cacheable content the application can return on similar future queries.

C.

Only the user's input portion of each request because user input is the part of the prompt that varies the most across the application's normal operation.

D.

The static portions of prompts that are repeated across requests, such as system prompts, instructions, or shared context.

A teammate has asked you to explain when a Skill would be the right choice over an MCP server. The teammate is unsure how the two differ in practice when both can be reused across teams.

How would you explain the distinction?

A.

A Skill and an MCP server are equivalent extension mechanisms that the team can use interchangeably for any reusable capability that needs to be accessible across teams.

B.

A Skill is the older mechanism and an MCP server is the newer one, so the team should prefer an MCP server for any reusable capability that the team builds going forward.

C.

A Skill is preferable for cross-team reuse because it loads more efficiently than an MCP server during normal operation in the team's typical multi-team workloads.

D.

A Skill bundles prompts, scripts, and data into a package the model loads as a unit while an MCP server exposes resources, tools, and prompts through a standard client interface.

Your Claude agent’s hooks are currently triggered for every action, which slows down the agent significantly even when actions pose no risk. The team wants to scope hooks more carefully.

How would you scope the hooks?

A.

Scope hooks to only the high-risk actions, such as destructive operations or sensitive data access, and remove hooks from low-risk actions to balance safety with performance.

B.

Disable all hooks while the team re-scopes them, treating the period of no hook enforcement as a temporary state during the re-scoping work.

C.

Disable the agent during peak hours so the hook overhead does not slow the application down during the busiest periods of the day across the application's operation.

D.

Replace hooks with system prompt instructions on the grounds that prompt instructions can produce the same enforcement effect that hooks produce on the agent's actions.

A new Claude model release includes performance improvements for several reasoning tasks but has changed the format of its responses to system prompts that use multi-section instructions. Your application uses multi-section system prompts heavily. Initial evaluation on the application's actual workload shows the new model performs 8 percent better on reasoning tasks but produces malformed output on roughly 3 percent of requests because of the format change. The team is debating whether to upgrade.

How would you decide?

A.

Upgrade immediately, because the 8 percent reasoning improvement outweighs the 3 percent malformed output rate across the application's typical request distribution.

B.

Adapt the application's system prompt to the new model's format expectations and re-evaluate, then upgrade only if the adapted prompt eliminates the malformed output while preserving the reasoning improvements.

C.

Upgrade and add a downstream validation step that catches the 3 percent malformed output before it reaches users, treating the validation step as the team's mitigation for the format change.

D.

Stay on the previous model permanently to avoid the malformed output rate and any future format changes that subsequent model releases might introduce in the application.

Your Claude application uses tool calling to fetch patient data and generate summary reports. The flow occasionally fails because the model returns a tool_use block that references arguments not present in the schema, and your application code does not handle this case gracefully.

How would you address this?

A.

Validate the tool_use block's arguments against the tool schema before dispatching the tool and handle invalid arguments as a recognized error path.

B.

Log invalid tool_use blocks when they occur and allow the tool dispatch to proceed, relying on the tool's own error handling to surface failures back to the application.

C.

Retry the same request repeatedly until the model returns a valid tool_use block that matches the schema as expected.

D.

Stop using tool calling entirely and replace tools with prompted text generation that asks the model to describe what it would do.

Your Claude application is hitting context window limits when processing long customer service transcripts. A junior developer suggests increasing the temperature parameter to fix the issue.

How would you respond?

A.

Explain that temperature controls sampling randomness and is unrelated to context capacity, then address the context issue through summarization or chunking.

B.

Adjust the temperature parameter together with the max_tokens parameter, treating the combined adjustment as the team’s mechanism for managing context window pressure during long-transcript processing.

C.

Remove the system prompt entirely to make room for longer transcripts in each request, freeing up context window space the system prompt would otherwise consume.

D.

Increase the temperature parameter as the junior developer suggested and observe whether the context window issue resolves over the next several runs of the application in production.

You are establishing the guardrail strategy for a Claude application. The team wants to ensure guardrail failure does not expose the application to unsafe behavior.

The guardrail strategy would...

A.

Layer multiple guardrails so a single guardrail failure does not expose the application to unsafe behavior.

B.

Apply guardrails at the application output level only and route flagged responses to a human reviewer before they are delivered to the user.

C.

Implement a single comprehensive system prompt guardrail and validate its coverage against the application's full range of expected inputs.

D.

Apply guardrails at the model level only and rely on the model's built-in safety behaviors to handle any cases the guardrail does not explicitly cover.

You are writing a system prompt for a Claude application that needs to produce output in a specific JSON shape. The downstream system will reject any output that does not match the schema.

Your prompt would need to...

A.

Instruct Claude to use whichever output format it considers most appropriate for each request the application handles.

B.

Instruct Claude to return JSON sometimes and free text other times so the application's output captures both formats.

C.

Omit any reference to the format and rely on a post-processing step in the application to reshape Claude's output.

D.

Include explicit constraints describing the required JSON schema and an instruction to produce only output matching that schema.

You are implementing a custom tool for your Claude agent. The tool needs to interact with an external pricing service that returns product data.

Which of the following best practices would you apply as you develop this tool?

A.

Omit the tool description and let the model infer when to use the tool based on the tool's name and the rest of the prompt context.

B.

Define the tool with a loose schema and let the model interpret the inputs flexibly on each call the agent makes.

C.

Implement the tool with no error handling and let the agent loop catch failures whenever the pricing service returns an error during operation.

D.

Define the tool with a clear schema, write a precise description for when to call it, and handle pricing service errors explicitly.

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?

A.

Apply tool output pruning to remove tool outputs that are no longer needed by later steps in the workflow.

B.

Apply prompt caching to the accumulated tool outputs so the application does not re-pay for the older content on each subsequent step.

C.

Switch to a smaller Claude model that processes context more efficiently and treat any quality loss as a tradeoff for the cost reduction.

D.

Keep every tool output in the context indefinitely so the agent has the full record of every step it has executed during the workflow.