CCAR-F practice › Claude Code Configuration & Workflows · Question 61 of 105
Claude Code Configuration & Workflows · Select TWO
A Claude-written migration script mostly works, but it writes the string "null" when a source column is null and fails on empty strings. You want to fix this and stop edge cases from regressing. Which two approaches are most effective? Select two.
Show answer and explanation
Answer: A and C — Give a specific test case: an input row with a null column and its exact expected output / Write a test suite covering expected behavior and edge cases, then share its failures
A specific test case with example input and expected output tells Claude exactly what correct handling looks like. A test suite covering expected behavior and edge cases, with failures fed back, guides progressive improvement and catches regressions. (B) is too vague to act on. (D) asks the session that wrote the code to confirm its own assumptions.
Keep going
More Claude Code Configuration & Workflows questions
- A developer with no caching experience asks Claude to put a cache in front of a slow…
- Review of a Claude-generated payment module finds three problems: retries re-send…
- Your CI job invokes Claude Code to review pull requests. The job sometimes hangs until…
- Your CI review runs on every push to a pull request. Developers complain that each push…
- In your pipeline, the Claude Code session that implements a fix is then asked to review…