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 31:

    Which of the following is not a feature of Adaptive Query Execution?

    A. Replace a sort merge join with a broadcast join, where appropriate.
    B. Coalesce partitions to accelerate data processing.
    C. Split skewed partitions into smaller partitions to avoid differences in partition processing time.
    D. Reroute a query in case of an executor failure.
    E. Collect runtime statistics during query execution.

  • Question 32:

    The code block displayed below contains an error. The code block should read the csv file located at path data/transactions.csv into DataFrame transactionsDf, using the first row as column header

    and casting the columns in the most appropriate type. Find the error.

    First 3 rows of transactions.csv:

    1.transactionId;storeId;productId;name

    2.1;23;12;green grass

    3.2;35;31;yellow sun

    4.3;23;12;green grass

    Code block:

    transactionsDf = spark.read.load("data/transactions.csv", sep=";", format="csv", header=True)

    A. The DataFrameReader is not accessed correctly.
    B. The transaction is evaluated lazily, so no file will be read.
    C. Spark is unable to understand the file type.
    D. The code block is unable to capture all columns.
    E. The resulting DataFrame will not have the appropriate schema.

  • Question 33:

    Which of the following code blocks efficiently converts DataFrame transactionsDf from 12 into 24 partitions?

    A. transactionsDf.repartition(24, boost=True)
    B. transactionsDf.repartition()
    C. transactionsDf.repartition("itemId", 24)
    D. transactionsDf.coalesce(24)
    E. transactionsDf.repartition(24)

  • Question 34:

    Which of the following code blocks returns approximately 1000 rows, some of them potentially being duplicates, from the 2000-row DataFrame transactionsDf that only has unique rows?

    A. transactionsDf.sample(True, 0.5)
    B. transactionsDf.take(1000).distinct()
    C. transactionsDf.sample(False, 0.5)
    D. transactionsDf.take(1000)
    E. transactionsDf.sample(True, 0.5, force=True)

  • Question 35:

    Which of the following is a problem with using accumulators?

    A. Only unnamed accumulators can be inspected in the Spark UI.
    B. Only numeric values can be used in accumulators.
    C. Accumulator values can only be read by the driver, but not by executors.
    D. Accumulators do not obey lazy evaluation.
    E. Accumulators are difficult to use for debugging because they will only be updated once, independent if a task has to be re-run due to hardware failure.

  • Question 36:

    The code block displayed below contains an error. The code block should count the number of rows that have a predError of either 3 or 6. Find the error.

    Code block:

    transactionsDf.filter(col('predError').in([3, 6])).count()

    A. The number of rows cannot be determined with the count() operator.
    B. Instead of filter, the select method should be used.
    C. The method used on column predError is incorrect.
    D. Instead of a list, the values need to be passed as single arguments to the in operator.
    E. Numbers 3 and 6 need to be passed as string variables.

  • Question 37:

    The code block displayed below contains an error. The code block below is intended to add a column itemNameElements to DataFrame itemsDf that includes an array of all words in column itemName. Find the error.

    Sample of DataFrame itemsDf:

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

    2.|itemId|itemName |supplier |

    3.+------+----------------------------------+-------------------+ 4.|1 |Thick Coat for Walking in the Snow|Sports Company Inc.|

    5.|2 |Elegant Outdoors Summer Dress |YetiX |

    6.|3 |Outdoors Backpack |Sports Company Inc.|

    7.+------+----------------------------------+-------------------+

    Code block:

    itemsDf.withColumnRenamed("itemNameElements", split("itemName"))

    A. All column names need to be wrapped in the col() operator.
    B. Operator withColumnRenamed needs to be replaced with operator withColumn and a second argument "," needs to be passed to the split method.
    C. Operator withColumnRenamed needs to be replaced with operator withColumn and the split method needs to be replaced by the splitString method.
    D. Operator withColumnRenamed needs to be replaced with operator withColumn and a second argument " " needs to be passed to the split method. E. The expressions "itemNameElements" and split("itemName") need to be swapped.

  • Question 38:

    Which of the following code blocks returns a single-row DataFrame that only has a column corr which shows the Pearson correlation coefficient between columns predError and value in DataFrame transactionsDf?

    A. transactionsDf.select(corr(["predError", "value"]).alias("corr")).first()
    B. transactionsDf.select(corr(col("predError"), col("value")).alias("corr")).first()
    C. transactionsDf.select(corr(predError, value).alias("corr"))
    D. transactionsDf.select(corr(col("predError"), col("value")).alias("corr"))
    E. transactionsDf.select(corr("predError", "value"))

  • Question 39:

    Which of the following code blocks returns all unique values of column storeId in DataFrame transactionsDf?

    A. transactionsDf["storeId"].distinct()
    B. transactionsDf.select("storeId").distinct()
    C. transactionsDf.filter("storeId").distinct()
    D. transactionsDf.select(col("storeId").distinct())
    E. transactionsDf.distinct("storeId")

  • Question 40:

    The code block displayed below contains an error. The code block should trigger Spark to cache DataFrame transactionsDf in executor memory where available, writing to disk where insufficient

    executor memory is available, in a fault-tolerant way. Find the error.

    Code block:

    transactionsDf.persist(StorageLevel.MEMORY_AND_DISK)

    A. Caching is not supported in Spark, data are always recomputed.
    B. Data caching capabilities can be accessed through the spark object, but not through the DataFrame API.
    C. The storage level is inappropriate for fault-tolerant storage.
    D. The code block uses the wrong operator for caching.
    E. The DataFrameWriter needs to be invoked.

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.