
DatabricksCertified Associate Developer for Apache Spark
Domain 2Objective 4
Register DataFrames as Temporary Views in Spark SQL, Allowing Them to Be Queried with SQL Syntax. ASSOCIATE-DEVELOPER-APACHE-SPARK Practice Questions (Page 1)
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 12 practice questions to prepare you well beyond it. (estimate)
12questions here
3free pages
5concepts
20%of the exam
Questions 1–5
- 1
Which statement correctly describes the purpose of the `createOrReplaceTempView` method in Spark?
Select an answer first - 2
Which method is used to register a DataFrame as a global temporary view?
Select an answer first - 3
A data engineer has a temporary view `orders` with columns `order_id`, `customer_id`, `order_date`, and `amount`. They need to find the top 3 customers by total order amount. They run the following SQL: ```sql SELECT customer_id, SUM(amount) AS total FROM orders GROUP BY customer_id ORDER BY total DESC LIMIT 3 ``` What is the result?
Select an answer first - 4
A team runs a multi-notebook job in Databricks. Notebook A creates a global temporary view `shared_metrics`. Notebook B, running in a different Spark session, needs to query this view. Which SQL statement should Notebook B use?
Select an answer first - 5
A data engineer registers a temporary view named `customer_vw` in a Spark session. What happens to this view when the Spark session ends?
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.