A code change passes unit tests and still violates the product requirement. How would you respond?

Instruction: Describe how you would handle a patch that is technically valid but product-wrong.

Context: Tests how the candidate diagnoses the problem, chooses the safest next step, and reasons through recovery. Describe how you would handle a patch that is technically valid but product-wrong.

Official answer available

Preview the opening of the answer, then unlock the full walkthrough.

I would treat that as a signal that the validation stack is too narrow for the task. Passing unit tests only proves that a subset of expected behavior held under those tests. It does not prove the product requirement was actually satisfied.

I would...

Related Questions