
DatabricksCertified Associate Developer for Apache Spark
User-Defined Functions and Stateful Operations ASSOCIATE-DEVELOPER-APACHE-SPARK Practice Questions (Page 4)
Part of the Developing Apache Spark™ DataFrame/DataSet API Applications domain, which accounts for 30% of the ASSOCIATE-DEVELOPER-APACHE-SPARK exam. Databricks does not publish an official question count, but from its 90-minute exam (~35–60 total, ~11–18 in this domain), expect 2–4 from this objective — we provide 26 practice questions to prepare you well beyond it. (estimate)
Questions 16–20
- 16
What is the key difference between mapGroupsWithState and flatMapGroupsWithState?
Select an answer first - 17
A data engineer needs to apply a custom function to a DataFrame column that returns a struct with two fields. They plan to use a UDF. What is the correct way to define the return type?
Select an answer first - 18
A streaming job uses flatMapGroupsWithState to aggregate events per key. The requirement is to emit an output row for a key only when no new events arrive for that key for 10 minutes. What is the correct approach?
Select an answer first - 19
What is the role of the StateStore in Spark Structured Streaming?
Select an answer first - 20
What is the correct way to invoke a UDF on a DataFrame column in Spark?
Select an answer first
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.