Question 900
A team must ship data transformations with regression tests in CI. A production deployment uses Exercise a negative fixture against the strict expectation to address: A quality expectation should stop malformed data from being published. Which signal should QA check?
Explanation
Correct Answer
The team used Exercise a negative fixture against the strict expectation to fulfill “A quality expectation should stop malformed data from being published.” Observing The test update fails and no invalid silver records are published confirms the intended effect in the resulting workload.
Incorrect Answers
This signal belongs to the adjacent case “A new bundle deployment should not reach production unless tests and validation pass,” whose remedy is Make bundle deployment depend on automated test and bundle-validation stages. The observed result for the present requirement is The test update fails and no invalid silver records are published.
A bad code change causes the fixture comparison to fail pertains to a different control (Write an `assertDataFrameEqual` unit test with expected output) and a different need (A pure PySpark transformation must be validated on fixed input fixtures). It cannot establish that Exercise a negative fixture against the strict expectation met the stated goal.
That observation is a valid indicator for “An output schema must preserve expected column types despite source changes” when using Use `assertSchemaEqual` in CI against an explicit expected schema. The scenario instead tests “A quality expectation should stop malformed data from being published”; the relevant result is The test update fails and no invalid silver records are published.