
DatabricksCertified Associate Developer for Apache Spark
Domain 1Objective 6
Describe the Execution Patterns of the Apache Spark™ Engine, Including Actions, Transformations, and Lazy Evaluation. ASSOCIATE-DEVELOPER-APACHE-SPARK Practice Questions (Page 3)
Part of the Apache Spark Architecture and Components domain, which accounts for 20% of the ASSOCIATE-DEVELOPER-APACHE-SPARK exam. Databricks does not publish an official question count, but from its 90-minute exam (~35–60 total, ~7–12 in this domain), expect 1–2 from this objective — we provide 19 practice questions to prepare you well beyond it. (estimate)
19questions here
4free pages
5concepts
20%of the exam
Questions 11–15
- 11
A data engineer writes the following code in a notebook: ```python df = spark.read.parquet("data") df_filtered = df.filter(df["age"] > 21) df_mapped = df_filtered.withColumn("age_group", df_filtered["age"] / 10) ``` The engineer then runs `df_mapped.show(5)`. How many Spark jobs will be triggered by this code?
Select an answer first - 12
A Spark application reads a large fact table and a small dimension table, performs a join, then applies a filter, and finally aggregates. The engineer notices that the filter is applied after the join, causing the join to process more data than necessary. They want to optimize the query. Which of the following is the most effective way to leverage Spark's optimization capabilities?
Select an answer first - 13
A data engineer writes the following code: ```python df = spark.read.csv("data.csv") df_filtered = df.filter(df["age"] > 18) df_mapped = df_filtered.withColumn("adult", df_filtered["age"] >= 18) ``` The engineer then calls `df_mapped.count()`. Which of the following operations are actions?
Select an answer first - 14
In Spark, how does the Directed Acyclic Graph (DAG) relate to the execution of transformations?
Select an answer first - 15
What is the primary benefit of lazy evaluation in Apache Spark?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Databricks. “ASSOCIATE-DEVELOPER-APACHE-SPARK” is a trademark of its owner, used for identification only.