Official Bank 0/180

Databricks Certified Associate Developer for Apache Spark 3.0 (Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0) - Databricks Exam Questions

Last updated on June 20, 2026

97% Exam Compliance
180 Total Questions
1
Question
Which of the following code blocks returns a DataFrame where columns predError and productId are removed from DataFrame transactionsDf?

Sample of DataFrame transactionsDf:

1. +-------------+---------+-----+-------+---------+----+

2. |transactionId|predError|value|storeId|productId|f |

3. +-------------+---------+-----+-------+---------+----+

4. |1 |3 |4 |25 |1 |null|

5. |2 |6 |7 |2 |2 |null|

6. |3 |3 |null |25 |3 |null|

7. +-------------+---------+-----+-------+---------+----+
A. transactionsDf.withColumnRemoved("predError", "productId")
Options
A transactionsDf.drop(["predError", "productId", "associateId"])
B transactionsDf.drop("predError", "productId", "associateId")
C transactionsDf.dropColumns("predError", "productId", "associateId")
D transactionsDf.drop(col("predError", "productId"))
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question
The code block shown below should return a one-column DataFrame where the column storeId is converted to string type. Choose the answer that correctly fills the blanks in the code block to accomplish this. transactionsDf.__1__(__2__.__3__(__4__))
Options
A 1. select
2. col("storeId")
3. as
4. StringType
B 1. select
2. col("storeId")
3. cast
4. StringType()
C 1. select
2. col("storeId")
3. cast
4. StringType
D 1. select
2. storeId
3. cast
4. StringType()
E 1. cast
2. "storeId"
3. as
4. StringType()
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question
Which of the following statements about stages is correct?
Options
A Stages consist of one or more jobs.
B Different stages in a job may be executed in parallel.
C Stages may contain multiple actions, narrow, and wide transformations.
D Stages ephemerally store transactions, before they are committed through actions.
E Tasks in a stage may be executed by multiple machines at the same time.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question
Which of the following statements about Spark's configuration properties is incorrect?
Options
A The maximum number of tasks that an executor can process at the same time is controlled by the spark.executor.cores property.
B The maximum number of tasks that an executor can process at the same time is controlled by the spark.task.cpus property.
C The default value for spark.sql.autoBroadcastJoinThreshold is 10MB.
D The default number of partitions to use when shuffling data for joins or aggregations is 300.
E The default number of partitions returned from certain transformations can be controlled by the spark.default.parallelism property.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question
Which of the following code blocks returns a copy of DataFrame itemsDf where the column supplier has been renamed to manufacturer?
Options
A itemsDf.withColumn(["supplier", "manufacturer"])
B itemsDf.withColumnRenamed("supplier", "manufacturer")
C itemsDf.withColumn("supplier").alias("manufacturer")
D itemsDf.withColumnsRenamed("supplier", "manufacturer")
E itemsDf.withColumnRenamed(col("manufacturer"), col("supplier"))
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.