# Databricks Apache Spark Developer (DASD) practice exams

> Databricks Apache Spark Developer practice exams: 215 questions in 5 timed tests, every answer explained.

Page: https://devopscodelab.com/exams/databricks-apache-spark-developer/

215 questions in 5 timed practice tests. Each test has about 45 questions and a 90-minute limit. The pass mark is 70%. Results are split across the 7 exam domains.

## Exam at a glance

| Setting | Value |
| --- | --- |
| Practice tests | 5 |
| Questions in total | 215 |
| Questions per test | About 45 |
| Time limit per test | 90 minutes |
| Pass mark | 70% |
| Question types | Single answer and multiple answer (21 multiple-answer questions) |
| Level | Associate |
| Category | Data & Analytics |

These are the settings of our practice tests. Check the official Databricks exam page for the current format before you book.

## Domains and weights

| Domain | Weight | Questions in our bank |
| --- | --- | --- |
| Apache Spark Architecture and Components | 20% | 43 |
| Using Spark SQL | 20% | 43 |
| Developing Apache Spark DataFrame/Dataset API Applications | 30% | 64 |
| Troubleshooting and Tuning Apache Spark DataFrame API Applications | 10% | 22 |
| Structured Streaming | 10% | 22 |
| Using Spark Connect to Deploy Applications | 5% | 10 |
| Using Pandas API on Apache Spark | 5% | 11 |

## Price and access

- DASD practice exams: $12.99 for 12 months of access.
- Free mini exam: 15 questions with explanations (free account): https://devopscodelab.com/app/exams/databricks-apache-spark-developer/mini/
- All-Access subscription includes every exam: https://devopscodelab.com/pricing/
- 10 free questions with answers: https://devopscodelab.com/exams/databricks-apache-spark-developer/free-practice-questions/

## Sample questions

### Question 1 of 3

In a Spark cluster, what is an executor?

- A. A physical machine in the cluster that the cluster manager reserves for a single Spark job
- B. A thread inside the driver that converts each stage into bytecode before it is shipped
- C. A daemon shared by all applications on a node that keeps shuffle files after jobs finish
- D. A per-application JVM process on a worker node that runs tasks and caches data

**Answer:** D

**Explanation:** Executors are processes launched for a specific application on worker nodes; they run tasks in their cores (slots) and hold cached data and shuffle output. Code generation happens in the driver's planning phase, not in a dedicated executor thread. A shared node daemon that serves shuffle files is the external shuffle service, not an executor, and a worker node can host executors of several applications, so an executor is not a reserved machine.

### Question 2 of 3

Which statement correctly describes lazy evaluation in Apache Spark?

- A. Lazy evaluation only applies to RDDs, because DataFrame transformations are executed eagerly by the Catalyst optimizer
- B. Spark delays reading the source files until the first transformation, then materializes each intermediate DataFrame
- C. Actions are queued and executed in the background, while transformations run immediately to validate the data
- D. Transformations only build up a logical plan; nothing executes until an action such as count() or write is called

**Answer:** D

**Explanation:** Transformations such as select, filter and join return a new DataFrame describing the computation; Spark executes the plan only when an action requests a result. Actions run synchronously and trigger execution rather than being queued. Spark does not materialize intermediate DataFrames after each transformation, and DataFrames are lazy too, which is exactly what allows Catalyst to optimize the whole plan before running it.

### Question 3 of 3

A developer needs a persistent table where data is hashed into 16 buckets by user_id and sorted within each bucket by event_ts, to speed up later joins on user_id. Which code is valid?

- A. df.write.bucketBy(16, "user_id").sortBy("event_ts").saveAsTable("events_b")
- B. df.write.bucketBy(16, "user_id").sortBy("event_ts").parquet("/data/events_b")
- C. df.write.bucketBy("user_id", 16).orderBy("event_ts").saveAsTable("events_b")
- D. df.write.sortBy("event_ts").partitionBy("user_id").saveAsTable("events_b")

**Answer:** A

**Explanation:** Bucketing requires the number of buckets first, then the columns, and it only works with saveAsTable because bucket metadata is stored in the metastore; sortBy is valid only together with bucketBy. Writing bucketed output with parquet(path) raises an error. sortBy without bucketBy is not allowed, and partitioning by a high-cardinality user_id would create far too many directories. The writer has no orderBy method and the arguments of bucketBy are reversed.


## Study plans

### Two weeks

1. Day 1: take practice test 1 in exam mode to get a baseline.
2. Days 2 to 5: domain mode on Developing Apache Spark DataFrame/Dataset API Applications and Apache Spark Architecture and Components, the two most heavily weighted domains.
3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

### Four weeks

1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

## Questions about the DASD practice exams

**Are these real DASD exam questions?**

No. We write every question ourselves and map it to the published DASD exam objectives. We do not use leaked or recalled questions.

**Do the time limit and pass mark match the official exam?**

They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.

**Can I try it before I pay?**

Yes. The free mini exam has 15 questions with full explanations and needs no account.

**How long do I keep access?**

A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.

**What happens after I finish a test?**

You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026.

DevOpsCode Lab is not affiliated with Databricks. DASD and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
