DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Exam Details

  • Exam Code
    :DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK
  • Exam Name
    :Databricks Certified Associate Developer for Apache Spark 3.0
  • Certification
    :Databricks Certifications
  • Vendor
    :Databricks
  • Total Questions
    :180 Q&As
  • Last Updated
    :Jul 12, 2026

Databricks DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Online Questions & Answers

  • Question 131:

    Which of the following code blocks stores DataFrame itemsDf in executor memory and, if insufficient memory is available, serializes it and saves it to disk?

    A. itemsDf.persist(StorageLevel.MEMORY_ONLY)
    B. itemsDf.cache(StorageLevel.MEMORY_AND_DISK)
    C. itemsDf.store()
    D. itemsDf.cache()
    E. itemsDf.write.option('destination', 'memory').save()

  • Question 132:

    Which of the following describes the conversion of a computational query into an execution plan in Spark?

    A. Spark uses the catalog to resolve the optimized logical plan.
    B. The catalog assigns specific resources to the optimized memory plan.
    C. The executed physical plan depends on a cost optimization from a previous stage.
    D. Depending on whether DataFrame API or SQL API are used, the physical plan may differ.
    E. The catalog assigns specific resources to the physical plan.

  • Question 133:

    Which of the following code blocks returns a copy of DataFrame transactionsDf that only includes columns transactionId, storeId, productId and f?

    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.drop(col("value"), col("predError"))
    B. transactionsDf.drop("predError", "value")
    C. transactionsDf.drop(value, predError)
    D. transactionsDf.drop(["predError", "value"])
    E. transactionsDf.drop([col("predError"), col("value")])

  • Question 134:

    Which of the following describes Spark's way of managing memory?

    A. Spark uses a subset of the reserved system memory.
    B. Storage memory is used for caching partitions derived from DataFrames.
    C. As a general rule for garbage collection, Spark performs better on many small objects than few big objects.
    D. Disabling serialization potentially greatly reduces the memory footprint of a Spark application.
    E. Spark's memory usage can be divided into three categories: Execution, transaction, and storage.

  • Question 135:

    Which of the following code blocks saves DataFrame transactionsDf in location /FileStore/transactions.csv as a CSV file and throws an error if a file already exists in the location?

    A. transactionsDf.write.save("/FileStore/transactions.csv")
    B. transactionsDf.write.format("csv").mode("error").path("/FileStore/transactions.csv")
    C. transactionsDf.write.format("csv").mode("ignore").path("/FileStore/transactions.csv")
    D. transactionsDf.write("csv").mode("error").save("/FileStore/transactions.csv")
    E. transactionsDf.write.format("csv").mode("error").save("/FileStore/transactions.csv")

  • Question 136:

    Which of the following describes characteristics of the Spark UI?

    A. Via the Spark UI, workloads can be manually distributed across executors.
    B. Via the Spark UI, stage execution speed can be modified.
    C. The Scheduler tab shows how jobs that are run in parallel by multiple users are distributed across the cluster.
    D. There is a place in the Spark UI that shows the property spark.executor.memory.
    E. Some of the tabs in the Spark UI are named Jobs, Stages, Storage, DAGs, Executors, and SQL.

  • Question 137:

    In which order should the code blocks shown below be run in order to assign articlesDf a DataFrame that lists all items in column attributes ordered by the number of times these items occur, from most to least often? Sample of DataFrame articlesDf:

    1.

    articlesDf = articlesDf.groupby("col")

    2.

    articlesDf = articlesDf.select(explode(col("attributes")))

    3.

    articlesDf = articlesDf.orderBy("count").select("col")

    4.

    articlesDf = articlesDf.sort("count",ascending=False).select("col")

    5.

    articlesDf = articlesDf.groupby("col").count()

    A. 4, 5
    B. 2, 5, 3
    C. 5, 2
    D. 2, 3, 4
    E. 2, 5, 4

  • Question 138:

    Which of the following code blocks produces the following output, given DataFrame transactionsDf?

    Output:

    1.root

    2.

    |-- transactionId: integer (nullable = true)

    3.

    |-- predError: integer (nullable = true)

    4.

    |-- value: integer (nullable = true)

    5.

    |-- storeId: integer (nullable = true)

    6.

    |-- productId: integer (nullable = true)

    7.

    |-- f: integer (nullable = true)

    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.schema.print()
    B. transactionsDf.rdd.printSchema()
    C. transactionsDf.rdd.formatSchema()
    D. transactionsDf.printSchema()
    E. print(transactionsDf.schema)

  • Question 139:

    Which of the following code blocks creates a new one-column, two-row DataFrame dfDates with column date of type timestamp?

    A. 1.dfDates = spark.createDataFrame(["23/01/2022 11:28:12","24/01/2022 10:58:34"], ["date"]) 2.dfDates = dfDates.withColumn("date", to_timestamp("dd/MM/yyyy HH:mm:ss", "date"))
    B. 1.dfDates = spark.createDataFrame([("23/01/2022 11:28:12",),("24/01/2022 10:58:34",)], ["date"]) 2.dfDates = dfDates.withColumnRenamed("date", to_timestamp("date", "yyyy-MM-ddHH:mm:ss"))
    C. 1.dfDates = spark.createDataFrame([("23/01/2022 11:28:12",),("24/01/2022 10:58:34",)], ["date"]) 2.dfDates = dfDates.withColumn("date", to_timestamp("date", "dd/MM/yyyy HH:mm:ss"))
    D. 1.dfDates = spark.createDataFrame(["23/01/2022 11:28:12","24/01/2022 10:58:34"], ["date"]) 2.dfDates = dfDates.withColumnRenamed("date", to_datetime("date", "yyyy-MM-ddHH:mm:ss"))
    E. 1.dfDates = spark.createDataFrame([("23/01/2022 11:28:12",),("24/01/2022 10:58:34",)], ["date"])

  • Question 140:

    Which of the following describes a difference between Spark's cluster and client execution modes?

    A. In cluster mode, the cluster manager resides on a worker node, while it resides on an edge node in client mode.
    B. In cluster mode, executor processes run on worker nodes, while they run on gateway nodes in client mode.
    C. In cluster mode, the driver resides on a worker node, while it resides on an edge node in client mode.
    D. In cluster mode, a gateway machine hosts the driver, while it is co-located with the executor in client mode.
    E. In cluster mode, the Spark driver is not co-located with the cluster manager, while it is co-located in client mode.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Databricks exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK exam preparations and Databricks certification application, do not hesitate to visit our Vcedump.com to find your solutions here.