Data Ingestion and Transformation
A transformation change passes syntax checks but incorrectly converts null amounts to zero. Which practice would BEST detect this defect before deployment?
Show the answer
Correct answerB. Add unit tests with null inputs and explicit expected outputs.
AWhy not this: Production logging aids diagnosis after deployment rather than automatically preventing this defect.
BWhy this is right: Tests that assert expected null behavior expose the incorrect conversion before deployment.
CWhy not this: A semantic defect can produce incorrect data without causing the job to fail.
DWhy not this: Release tags identify versions but do not validate transformation behavior.
Unit tests verify transformation behavior against expected results, including null-handling edge cases. Syntax checks cannot establish semantic correctness, and production failure alarms may miss a job that succeeds while producing incorrect values.