Question 260
A transformation joins customers with events but a duplicate join key silently multiplies results; CI validates only that the result is nonempty. Which change should the data engineer make?
Explanation
Correct Answer
Nonempty output does not prove joins preserve intended one-to-many relationships.
Incorrect Answers
Add an integration test for the composed transformation and compare representative expected aggregates: valid individual components do not guarantee the composed pipeline preserves business invariants.
Use controlled local or test-catalog fixtures for unit tests and reserve integration tests for explicitly managed external systems: use controlled local or test-catalog fixtures for unit tests and reserve integration tests for explicitly managed external systems: test isolation separates code behavior from infrastructure availability.
Use schema and DataFrame equality assertions that validate names, types, and expected records: row counts cannot detect a changed field contract or incorrect values.






Certified Data Engineer Professional Practice Tests