Spark Developer Associate cheat sheet

Updated September 20, 2026

Last-minute reference for the Databricks Associate Developer for Apache Spark exam.

Exam facts

Questions45 scored
Duration90 minutes
Fee200 USD
LanguagePython
Passing scoreNot published by Databricks

Section weights

SectionWeight
DataFrame / DataSet API applications30%
Spark architecture and components20%
Using Spark SQL20%
Troubleshooting and tuning10%
Structured Streaming10%
Spark Connect5%
Pandas API on Spark5%

Transformations vs actions

Transformations are lazy — select, filter, withColumn, join. They build the plan. Actions trigger execution — count, collect, show, write.

collect() brings every row to the driver and can exhaust its memory.

Architecture

  • Driver — hosts the SparkSession, plans the job, coordinates tasks
  • Executors — do the work
  • Stage boundary — wherever a shuffle is required
  • Adaptive query execution — fixes bad static estimates at runtime: partition counts, join strategy, skew

Joins

JoinReturns
InnerOnly matching keys
Left outerAll left rows, nulls where unmatched
Left semiLeft rows that have a match, left columns only
Left antiLeft rows with no match
BroadcastSmall side sent to every executor; removes the shuffle

Optimisations that happen for you

  • Predicate pushdown — filters applied at the source
  • Column pruning — only selected columns read from columnar formats
  • Partition pruning — whole partitions skipped by a partition-column filter

Troubleshooting

  • Three tasks dominate a stage → data skew
  • Heavy spill during shuffle → tune shuffle partition count so partitions fit in memory
  • Repeated expensive recomputation across actions → persist or cache
  • Row-at-a-time Python UDF slow → built-in expressions

Streaming

  • Resume without reprocessing → checkpoint location
  • Late events, bounded state → watermark on the event time column

Other

  • Spark Connect — client sends a logical plan over a connection instead of running in the driver process
  • Pandas API on Spark — pandas syntax, distributed execution

Night-before checklist

  • Which operations are actions
  • Where a stage boundary comes from
  • The five join types
  • Check ID and proctoring rules — see exam day

Take the 20-question practice test.