Study guide · Flashcards and memory notes

Spark developer flashcards

42 recall cards for the exam guide published October 8, 2026: architecture, Spark SQL, the DataFrame API, tuning, streaming, Spark Connect, and the Pandas API.

Databricks7 decks · 42 cardsNo sign-up required

How to use these cards: Say the method or the mode out loud before you flip the card, and mark it honestly. Revisit the cards you missed tomorrow rather than rereading them right away. Progress is kept only while this page is open. For the full explanations, see the core notes.

Study mode

Choose a deck, flip each card, and mark what you already know.

All flashcards

Select a question to reveal its answer.

Deck 1 · Architecture

The credential, the driver, and lazy evaluation.

6 cards
1.1What does passing this exam award by itself?

Databricks Certified Associate Developer for Apache Spark. It does not award Data Engineer Associate, Data Engineer Professional, or Machine Learning Associate.

1.2Which guide is the live one, and what does it not publish?

The guide published October 8, 2026. It lists 45 scored questions, up to 10 unscored items, and 90 minutes. The FAQ does not publish a passing score.

Memory note: Spark 3.0 is the retired exam. The live title has no version number.

1.3Which process plans the job?

The driver. Executors run tasks. The cluster manager assigns machines.

1.4How do actions, stages, and tasks relate?

An action triggers execution; jobs split into stages, and each stage runs one task per partition. One action can involve multiple jobs.

1.5What does DataFrame.cache() use by default?

MEMORY_AND_DISK_DESER. RDD.cache() defaults to MEMORY_ONLY.

1.6What does spark.sql.shuffle.partitions = 200 mean?

A shuffle writes 200 partitions. It does not limit how many input partitions are read, and it is not an executor count.

Deck 2 · Spark SQL

Modes, paths, tables, and views.

6 cards
2.1What is the default save mode when the path already exists?

Error. overwrite replaces. append adds. ignore skips the write.

2.2Which writer replaces a path and partitions by country?

mode("overwrite").partitionBy("country"). Either call alone misses one of the requirements.

2.3How do you query Parquet in SQL without a table name?

SELECT * FROM parquet.`/path`. The same pattern works for orc, json, csv, text, and delta.

2.4Where is a normal temp view visible?

In the SparkSession that created it. A global temp view is global_temp.name inside the same application.

2.5What does saveAsTable add that a path write does not?

A catalog table. A path write only creates files.

2.6Which sort stays inside current Spark partitions?

sortWithinPartitions. Writer partitionBy controls directories, not final row order. orderBy requests a global sort.

Deck 3 · DataFrames

Nulls, joins, unions, and UDFs.

6 cards
3.1What does na.drop() remove?

Any row with at least one null. how="all" removes a row only when every column is null.

3.2Does DataFrame.union drop duplicates?

No. It matches UNION ALL. SQL UNION is the distinct form. distinct is a separate call.

3.3What does approx_count_distinct trade?

A small error for less work than an exact distinct. It uses HyperLogLog. It is not more accurate than countDistinct.

3.4Which hint broadcasts a small side?

broadcast(small_df) in the join. Do not broadcast a full fact table.

3.5What does dropDuplicates(["order_id"]) not know?

Which row is latest. Rank by event time when a specific row must win.

3.6When is a state store the right UDF shape?

When the next row depends on earlier rows for that key. Independent checks stay stateless.

Deck 4 · Tuning

Partition counts, skew, and memory.

6 cards
4.1coalesce or repartition to cut files without a full shuffle?

coalesce, and only downward. It does not rebalance a huge partition. repartition does.

4.2What does one very long shuffle task usually mean?

Skew. AQE can split a skewed join. A salt is the manual split.

4.3What can Adaptive Query Execution change at runtime?

Shuffle partition count, skew splits, and a late broadcast choice. It does not rewrite the source files.

4.4collect fills which heap?

The driver. Executor memory does not absorb a collect of the full result.

4.5Where do you open executor logs?

From the stage in the Spark UI. spark-submit --verbose is launch configuration, not those logs.

4.6Why can an accumulator in a transformation over-count?

A task can rerun and add again. Put a business total in an aggregation.

Deck 5 · Streaming

Modes, watermarks, and checkpoints.

6 cards
5.1What does a streaming DataFrame avoid on each trigger?

Rerunning the whole history as a new batch. It updates from new data.

5.2Name the three streaming output modes.

append, complete, and update. overwrite and ignore are file save modes.

5.3What does a checkpoint store?

Offsets and state so a compatible restart can continue. Deleting it starts a new query.

5.4What grows if streaming dropDuplicates has no watermark?

State for every key seen so far. For bounded id-only deduplication, pair an event-time watermark with dropDuplicatesWithinWatermark where supported.

5.5When is exactly-once end to end?

When the source can replay, the checkpoint records progress, and the sink commits once or is idempotent.

5.6What happens to events older than the watermark?

They can be dropped from a closed window. The watermark is event time, not processing time.

Deck 6 · Spark Connect

The remote client and the three deploy modes.

6 cards
6.1What does a Spark Connect client send?

An unresolved plan. The server runs the executors.

6.2Which builder opens Connect?

SparkSession.builder.remote("sc://host:15002"). master("local[*]") is not that API.

6.3Where does local mode run executors?

In the same JVM as the driver. Cluster mode does not force every executor onto one worker.

6.4Where is the driver in client deploy mode?

In the submitting process. That process has to stay up. Cluster mode moves the driver into the cluster.

6.5Is Standard mode a Spark deploy mode?

No. The modes to know are local, client, and cluster.

6.6Does Spark Connect make collect safe?

No. The result still returns to the client.

Deck 7 · Pandas API

Distributed pandas code and pandas UDFs.

6 cards
7.1What is the advantage on a frame that does not fit one machine?

Pandas-like code that stays distributed. to_pandas() of the full frame collects to the driver.

7.2Which import is current?

import pyspark.pandas as ps. Koalas is the older package. import pandas is local.

7.3How do you reach a PySpark function without a collect?

to_spark(). to_pandas() is the collect.

7.4What does a pandas UDF exchange with Python?

Arrow batches. A classic Python UDF moves one row at a time.

7.5Does a grouped pandas UDF skip the shuffle?

No. Each group has to be colocated unless the data is already partitioned by that key.

7.6Is the Pandas API the same feature as a pandas UDF?

No. The API looks like pandas DataFrames. A pandas UDF is a function applied inside a Spark plan.

Continue the Spark study path

The overview, core notes, flashcards, and practice exams are all published.

Spark hub →
Available

Overview

Exam format, the seven section weights, and a lab plan.

Available

Core Notes

Reference notes for plans, writes, joins, and streams.

Available · You are here

Flashcards & Memory Notes

42 recall cards in seven decks, plus memory notes for modes and joins.

Available

Practice Exams

200 original questions across the seven official sections.

Official exam sources

Card facts follow the Databricks exam page and the exam guide published October 8, 2026. Method behavior is in the PySpark DataFrame API. These cards are independent recall prompts, not official exam items.

Professional Data Engineer

A Google Cloud exam that can run Spark on Dataproc. It is not a newer version of this Databricks exam.

AWS Data Engineer

An AWS exam that uses Glue and EMR for Spark jobs. Passing either exam does not award the other.

Fabric Data Engineer

A Microsoft exam that includes Spark notebooks in Fabric. It does not award this Databricks credential.

Azure Data Fundamentals

DP-900 introduces analytical stores, including Azure Databricks. It is not the Spark developer exam.

Apply concepts in the Scenario Workshop →