Databricks Data Engineer Associate · Section 3 · 22% of the exam
Combine DataFrames with operations such as Inner join, left join, broadcast join, multiple keys, cross join, union, and union all.
One of the objectives of the Databricks Certified Data Engineer Associate exam, in the section “Data Transformation and Modeling”. Here is what it covers, the points to remember and a question to try.
What it covers
Joins combine DataFrames side by side by matching keys, and set operations stack them vertically. This lesson covers every join type and the rows it returns, multi-key and NULL-safe conditions, ambiguous columns, broadcast and cross joins, and the union family, including the trap between DataFrame union and SQL UNION.
Points to remember
join(other, on, how):onas a name or list keeps one key column; an expression keeps both and can causeAMBIGUOUS_REFERENCE.- Duplicate keys multiply rows; semi and anti joins return only left columns and never duplicate a left row.
left_semi= left rows with a match (likeEXISTS);left_anti= left rows without a match (likeNOT EXISTS).- Multi-key expressions use
&with each comparison in parentheses; Pythonandraises an error. - NULL keys never match with
=; useeqNullSafeor<=>.
In the course
The lesson Joins & Set Operations teaches this objective (about 45 minutes), and 9 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Implement data cleaning by reading bronze tables with PySpark/SQL, cleaning nulls, standardizing data types, and writing to new silver tables.
- Manipulate columns, rows, and table structures by adding, dropping, splitting, renaming column names, applying filters, and exploding arrays.
- Perform data deduplication operations and aggregate operations on DataFrames, such as count, approximate count distinct, and mean, summary.
- Understand the basic tuning parameters (spark.sql.shuffle.partitions, spark.default.parallelism, spark.executor/driver.memory, spark.sql.autoBroadcastJoinThreshold) and re-measure the performance.
- Understand the difference between, and how to build, Gold layer objects such as materialized views, views, streaming tables, and tables for BI and analytics teams in Unity Catalog.
- Apply data quality checks and validation rules to ensure reliable Silver and Gold datasets.