
DatabricksCertified Associate Developer for Apache Spark
User-Defined Functions and Stateful Operations ASSOCIATE-DEVELOPER-APACHE-SPARK Practice Questions (Page 2)
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 6–10
- 6
Why do UDFs typically have worse performance than built-in Spark functions?
Select an answer first - 7
A streaming application uses flatMapGroupsWithState with event-time timeouts. The team notices that timeouts are not firing as expected. What is a likely cause?
Select an answer first - 8
A streaming application uses mapGroupsWithState to track user session durations. The state is keyed by user ID. The team notices that the state grows unboundedly because sessions never end. What should they configure to limit state growth?
Select an answer first - 9
A streaming application uses flatMapGroupsWithState to emit alerts when a threshold is crossed. The team wants to ensure that alerts are not emitted repeatedly for the same condition. What should they do?
Select an answer first - 10
A Spark job uses a UDF to parse a JSON string column. The UDF is slow. The team suspects the UDF is the bottleneck. Which action is most likely to improve performance?
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.