DE Mastery GitHub

Apache Spark · SPK-12

Testing and production Spark

From your world. dbt tests and CI

Practice quiz with instant feedback. For a scored run that counts toward your local progress, use uv run de quiz SPK-12.

1A unit test passes your correct transformation. What else must be true for the test to be trustworthy?
2Which is the recommended way to compare two DataFrames in a PySpark test?
3Which assertions are appropriate in a Spark transformation test? (select all) (select all that apply)
4Why structure a pipeline as pure DataFrame -> DataFrame transforms with a thin main()?
5Which configuration most directly affects both small-file output and shuffle cost?
6On EMR Serverless, what is the right habit for a large one-off benchmark job in a shared account?
7The test of a teammate asserts that the output columns are in the order [id, name, total]. A refactor renames nothing but reorders them to [id, total, name], and the test fails. What is the lesson?