Question 1
How does a broadcast join work?
Correct answer
The small table goes to every executor, so the large side is not shuffled
Explanation
Broadcast hash joins avoid shuffling the large side, which is efficient when one side is small.
Databricks · SPARK-DEV-ASSOC
Practice for the Associate Developer for Apache Spark Databricks certification exam. Review available chapters with published question counts.
200 questions across 7 chapters with published questions.
Start free practiceHow does a broadcast join work?
The small table goes to every executor, so the large side is not shuffled
Broadcast hash joins avoid shuffling the large side, which is efficient when one side is small.
Which component of a Spark application converts user code into a DAG of stages and schedules tasks on executors?
The driver
The driver runs the application's main program, creates the SparkSession, builds the logical and physical plans, and schedules tasks on executors. The cluster manager only allocates resources.
In Spark's execution hierarchy, what triggers the creation of a new job?
An action, such as count() or write()
Each action triggers one or more jobs. Jobs are split into stages at shuffle boundaries, and stages into tasks, one per partition.
Which statement about Spark's fault tolerance for DataFrames is correct?
Lost partitions are recomputed from lineage
Spark tracks lineage and recomputes lost partitions; failed tasks are retried.
Which statement about the following code is correct? df.filter(col('amount') > 100).select('id').filter(col('amount') < 500)
It fails: amount is gone after select('id')
After select('id'), the DataFrame only has the id column, so referencing amount raises an AnalysisException.