28 questions0s
See the answer and explanation right after each question
1
Your service reads the result with
response.content[0].text. After switching to claude-opus-5-5, many responses print undefined (or throw when reading the property) even though stop_reason is end_turn. What is the most likely cause?2
Old code forces JSON by sending a final message
{"role": "assistant", "content": "{"}. After switching to Opus 5.5, the request returns 400. What is the correct fix?3
A support agent must always look up orders with the
get_order_status tool when a customer asks about an order. The model is Sonnet 5.5. What is the most appropriate configuration?4
In one turn, the model returns 3
tool_use blocks. The second tool throws an exception. What is the correct way to send the results?5
You enable prompt caching for a 15K-token system prompt, but
cache_read_input_tokens is always 0 across hundreds of consecutive requests a few seconds apart. The system prompt starts with Current time: ${new Date().toISOString()}. What is the problem?6
A chatbot uses Opus 5.5 and already caches its system prompt. Cost analysis: output accounts for 60% of the total. Among the options below, which lever should you try first because it affects quality the least?
7
A nightly summarization job hits 429. The response has no
retry-after header and error.details.error_code is enforced_spend_limit_reached. What is the correct handling?8
A colleague sets
new Anthropic({ timeout: 60 }) in TypeScript intending a 60-second timeout. What happens?9
You need to estimate the cost of a feature that processes long Vietnamese text. What is the most reliable way to count tokens?
10
The product needs to extract name, email and phone number from a contact form into JSON. A PM proposes "building an agent to handle it flexibly". What is the best response?
11
Which statement about Tool Runner and the Agent SDK is correct?
12
You write an agent with the Agent SDK to list unused dependencies, and it must be read-only. What is the safest configuration?
13
An agent calls
search_orders 15 times in a row with the same input. The tool output is Error every time. Which change best fixes the root cause?14
The
refund_order(order_id, amount) tool is given to a support agent. Which measure is most important to block wrongful refunds caused by prompt injection?15
After editing a classification prompt, you try 3 tickets and find it "better". A colleague asks for evidence. What is the right approach?
16
You use an LLM-as-judge to grade customer support answers. What makes the judge most reliable?
17
An agent running in production fails on a case a customer complained about. What should be the first step?
18
During a session, Claude Code accidentally reads a file containing your GitHub personal access token. What is the first thing to do?
19
Your agent reads public GitHub issues, is allowed to run Bash and create public PRs, and runs on a machine with a personal token. Which assessment is correct?
20
The
acme-shop chatbot has a get_order(order_id) tool. Which design reliably prevents customers from viewing other people's orders?21
A developer wants to add
allow: ["Bash(curl *)"] to the team's shared settings "so Claude can fetch docs conveniently". What is the best feedback?22
Claude suggests installing
left-pad-utils-ts, a package you have never heard of, created 3 days ago, with a postinstall script. What is the right action?23
The team wants to forbid every member from using
bypassPermissions in Claude Code. Where should this be configured?24
You are reviewing a PR written by Claude for an order cancellation endpoint. The code takes
userId from req.body.userId, while the other routes in src/routes take it from req.session.userId. What is the correct assessment?25
Leadership wants to measure how effectively the team uses Claude. Which set of metrics is most reasonable?
26
You need to fix a bug spanning 3 modules in an unfamiliar repo, with an unknown cause. What is the most sensible order of work with Claude Code?
27
You add an AI review step to CI for PRs from external contributors. Which configuration is safest?
28
A rule must be followed absolutely: "never modify files in
prisma/migrations/". What is the correct way to enforce it in Claude Code?