28 questions0s
See the answer and explanation right after each question
1
You ask Claude via the API: "How does the
calcTax function in my project handle negative numbers?" without attaching any file. Claude answers in detail and with confidence, but wrongly. What is the most plausible root cause?2
An order-summary feature calls
claude-opus-5-5. A colleague wants to add temperature: 0 to make the output more stable. What is the most appropriate response?3
The team wants to load the whole 600K-token repo into every request because "a 1M context window can easily handle it". Which argument is not a legitimate reason to push back?
4
Claude suggests running
npm install fastify-session-guard-pro to handle sessions. You have never heard of this package. What is the right action?5
Every month you need to classify 2 million customer support tickets into 6 groups, with low latency and low cost. An eval on 300 sample tickets shows every model reaches the required accuracy. What is the most reasonable choice?
6
A subagent that only finds files by name in the repo is running on Opus 5.5 and spending a lot of thinking tokens. Among the options below, what is the first cost-optimization step to try?
7
A developer pastes 1,500 lines of code into claude.ai and asks why
checkout.spec.ts fails after upgrading Prisma. The answer is vague and guesses in several directions. What is the best advice?8
Which prompt best demonstrates the verification component?
9
You ask Claude to write tests for
parsePrice(). All generated tests pass, but later QA finds that parsePrice("1,5 triệu") returns a wrong value. Which constraint in the prompt is most likely to have prevented this?10
You want Claude to classify error logs. The logs come from a system and may contain user-entered strings. What is the best way to put the logs into the prompt?
11
A prompt says: "ABSOLUTELY NEVER EVER use console.log!!! EXTREMELY IMPORTANT!!!" What is the problem, and what is a better way to write it?
12
The team wants to be sure Claude Code never reads
.env and secrets/ in any session. Which approach is the most reliable?13
User settings have
allow: ["Bash(npm publish)"]. Project settings have deny: ["Bash(npm publish *)"]. Claude wants to run npm publish --tag beta. What happens?14
For convenience the team commits
allow: ["Bash(git *)"] to .claude/settings.json. What is the main risk?15
You are working on a long task, the context is nearly full, and you still need to keep track of the schema decisions. Which command fits best?
16
At the start of the session you told Claude "do not modify src/generated". After an auto-compact, Claude modifies files in it. What is the best way to prevent this next time?
17
Claude runs a Node script that bulk-edits 30 files, and the result is wrong. You use
/rewind to restore the code. What is likely to happen?18
You clone an open-source repo. The repo has
.claude/settings.json with allow: ["Bash(*)"]. You run interactive claude in that directory for the first time. What happens to this allow rule?19
You tell Claude "remember that this project always uses pnpm". The next week, a colleague clones the repo onto their machine and Claude still uses npm. Which explanation is correct?
20
You hand "add a reward points system" to Claude in
acceptEdits with no other steps. The result is a 1,200-line diff touching 23 files, with wrong assumptions about how points are calculated. Which workflow change fixes the root cause?21
In TDD with Claude, after the tests are written and fail for the right reason, what should the next step be before letting Claude implement?
22
You need to answer "where is
applyCoupon called and what is affected if its signature changes", and the repo is very large. You want to keep the main session's context for the implementation afterwards. What is the best approach?23
You open two terminals, both running
claude in the same repo directory: one session works on the shopping cart feature, the other fixes a shipping fee bug. Session A's tests start failing in confusing ways. What is the most appropriate solution?24
Requirement: "Every file Claude edits must be run through Prettier right afterwards, no exceptions." Which mechanism fits best?
25
A
PreToolUse hook checks the path and wants to block Claude from editing pnpm-lock.yaml, while also telling Claude the reason so it changes course. What should the script do?26
The team has a 6-step release workflow; everyone writes their own prompt, so the results are inconsistent. The workflow has side effects (creating a tag, editing CHANGELOG). What is the right way to standardize it?
27
You add
claude -p to CI to review diffs of community PRs. Which configuration is the safest and most reproducible?28
You enable Claude Code GitHub Actions for a public repo, in
@claude response mode. Which setting should be avoided?