
DatabricksCertified Associate Developer for Apache Spark
User-Defined Functions and Stateful Operations ASSOCIATE-DEVELOPER-APACHE-SPARK Practice Questions (Page 3)
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 11–15
- 11
A Spark job uses a Python UDF to convert a string column to a timestamp. The UDF is called on a column that contains many distinct string values. The job is slow. Which optimization is most effective?
Select an answer first - 12
A team is building a streaming application that must track user sessions. For each user, they need to output a session summary when the session ends (after 30 minutes of inactivity). They also need to output intermediate updates for active sessions. Which API should they use?
Select an answer first - 13
A streaming application uses mapGroupsWithState and needs to recover from a failure. The team is considering using the RocksDB state store provider. What is a key benefit of this choice?
Select an answer first - 14
A streaming application uses flatMapGroupsWithState to generate output rows. The team wants to ensure that the state is checkpointed for fault tolerance. What is required?
Select an answer first - 15
What happens when a state timeout is triggered in a stateful streaming operation?
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.