
DatabricksCertified Associate Developer for Apache Spark
User-Defined Functions and Stateful Operations ASSOCIATE-DEVELOPER-APACHE-SPARK Practice Questions (Page 1)
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 1–5
- 1
A team is optimizing a Spark job that uses a Python UDF to transform a large DataFrame. The UDF is called on a column with high cardinality. Which change is most likely to improve performance?
Select an answer first - 2
A streaming application uses flatMapGroupsWithState with event-time timeouts. The team wants to ensure that timeouts fire even if the input stream has gaps. What is necessary?
Select an answer first - 3
A streaming application using mapGroupsWithState needs to recover state after a driver failure. What is the role of the StateStore in this scenario?
Select an answer first - 4
When writing a UDF in Spark, how should null values be handled?
Select an answer first - 5
How do you configure a timeout for state in mapGroupsWithState?
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.