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. Requirement: unauthorized records must never appear in search responses. A patch returns all records in JSON and hides private rows with client-side CSS. Unit tests assert those rows are not visible. What acceptance check fails, and where belongs the fix?

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.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

I'd compare the delivered behavior with an explicit acceptance example. Suppose the requirement is to hide private records from search, but unit tests only check a display filter...

Your preparation path

Work through these questions in order. Read the answer aloud, then explain it in your own words.

Related Questions