CCAR-F practice › Claude Code Configuration & Workflows · Question 57 of 105
Claude Code Configuration & Workflows
A production error's stack trace points to a missing null check on line 88 of invoice_formatter.py. The fix is a single condition in one function, and the expected behavior is clear. How should you approach this in Claude Code?
Show answer and explanation
Answer: B — Use direct execution to add the check, then run the formatter's tests
Direct execution fits simple, well-scoped changes such as a single-file fix with a clear stack trace. There is one obvious approach and nothing to explore, so planning adds overhead without reducing risk. (A), (C), and (D) apply investigation and design steps meant for architectural or multi-file work.
Keep going
More Claude Code Configuration & Workflows questions
- During a multi-phase task (find every use of a deprecated config flag, design a…
- You used plan mode to investigate migrating from one ORM to another across 48 files. The…
- You asked Claude to convert legacy log lines into structured JSON events. Your prose…
- A Claude-written migration script mostly works, but it writes the string "null" when a…
- A developer with no caching experience asks Claude to put a cache in front of a slow…