
DatabricksCertified Associate Developer for Apache Spark
Domain 2Objective 2
Execute SQL Queries Directly on Files, Including ORC Files, JSON Files, CSV Files, Text Files, and Delta Files, and Understand the Different Save Modes for Outputting Data in Spark SQL. ASSOCIATE-DEVELOPER-APACHE-SPARK Practice Questions (Page 2)
Part of the Using Spark SQL 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 2–3 from this objective — we provide 19 practice questions to prepare you well beyond it. (estimate)
19questions here
4free pages
7concepts
20%of the exam
Questions 6–10
- 6
Which statement best describes how Spark SQL can query data stored in files such as Parquet, JSON, or CSV?
Select an answer first - 7
When querying a CSV file directly with Spark SQL, what is the default behavior regarding the header row?
Select an answer first - 8
Which option would you use when querying a CSV file to specify a custom delimiter such as a semicolon?
Select an answer first - 9
A streaming job writes JSON data to /data/events. A separate batch job reads this data and writes aggregated results to /data/aggregates. The batch job runs every hour and should only write if the aggregates file does not already exist. If it exists, the job should skip writing without failing. Which save mode should the batch job use?
Select an answer first - 10
A JSON file at /data/users.json has inconsistent schemas across lines. Some lines have a 'phone' field, others do not. An analyst wants to query the 'phone' field, but the schema inference fails. What is the most effective way to handle this?
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.