Free Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Mock Exam – Practice Online Confidently

Increase your chances of passing the Databricks Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 exam questions on your first try. Practice with our free online Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 exam mock test designed to help you prepare effectively and confidently.

Exam Code: Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0
Exam Questions: 420
Databricks Certified Associate Developer for Apache Spark 3.0
Updated: 24 Nov, 2026
Question 1

Which of the following code blocks returns a DataFrame with an added column to DataFrame transactionsDf that shows the unix epoch timestamps in column transactionDate as strings in the format

month/day/year in column transactionDateFormatted?
Excerpt of DataFrame transactionsDf:

Options :
Answer: D

Question 2

Which of the following 3 DataFrame operations are classified as a wide transformation ? Choose 3 answers: 

Options :
Answer: A,C,D

Question 3

Given an instance of SparkSession named spark, and the following DataFrame named df:
1. val simpleData = Seq(
2. ("James","Sales","NY",90000,34,10000),
3. ("Michael","Sales","NY",86000,56,20000),
4. ("Robert","Sales","CA",81000,30,23000),
5. ("Maria","Finance","CA",90000,24,23000),
6. ("Raman","Finance","CA",99000,40,24000),
7. ("Scott","Finance","NY",83000,36,19000),
8. ("Jen","Finance","NY",79000,53,15000),
9. ("Jeff","Marketing","CA",80000,25,18000),
10. ("Kumar","Marketing","NY",91000,50,21000)
11. )
val df = spark.createDataFrame(simpleData).toDf("employee_name","department","state","salary","age","bonus")
Choose the right code block which will produce the following result:
1. +----------+-----------+
2. |department|sum(salary)
3.
4. +----------+-----------+
5. Sales |257000
6. Finance |351000
7. Marketing |171000
8.
9. +----------+-----------+

Options :
Answer: A

Question 4

Which of the following code blocks reduces a DataFrame from 12 to 6 partitions and performs a full shuffle? 

Options :
Answer: A

Question 5

The code block shown below should return a DataFrame with two columns, itemId and col. In this DataFrame,

for each element in column attributes of DataFrame itemDf there should be a separate
row in which the column itemId contains the associated itemId from DataFrame itemsDf. The new DataFrame
should only contain rows for rows in DataFrame itemsDf in which the column attributes
contains the element cozy.
A sample of DataFrame itemsDf is below.
Code block:
itemsDf.__1__(__2__).__3__(__4__, __5__(__6__))

Options :
Answer: A

Viewing Page : 1 - 42
Practicing : 1 - 5 of 420 Questions

© Copyrights FreeMockExams 2026. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (FreeMockExams). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreeMockExams.