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

    Which of the following statements about garbage collection in Spark is incorrect?

    A. Garbage collection information can be accessed in the Spark UI's stage detail view.
    B. Optimizing garbage collection performance in Spark may limit caching ability.
    C. Manually persisting RDDs in Spark prevents them from being garbage collected.
    D. In Spark, using the G1 garbage collector is an alternative to using the default Parallel garbage collector.
    E. Serialized caching is a strategy to increase the performance of garbage collection.

  • Question 72:

    Which of the following code blocks creates a new DataFrame with 3 columns, productId, highest, and lowest, that shows the biggest and smallest values of column value per value in column

    productId 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.| 4| null| null| 3| 2|null|

    8.| 5| null| null| null| 2|null|

    9.| 6| 3| 2| 25| 2|null|

    10.+-------------+---------+-----+-------+---------+----+

    A. transactionsDf.max('value').min('value')
    B. transactionsDf.agg(max('value').alias('highest'), min('value').alias('lowest'))
    C. transactionsDf.groupby(col(productId)).agg(max(col(value)).alias("highest"), min(col(value)).alias("lowest"))
    D. transactionsDf.groupby('productId').agg(max('value').alias('highest'), min('value').alias('lowest'))
    E. transactionsDf.groupby("productId").agg({"highest": max("value"), "lowest": min("value")})

  • Question 73:

    Which of the following is the deepest level in Spark's execution hierarchy?

    A. Job
    B. Task
    C. Executor
    D. Slot
    E. Stage

  • Question 74:

    The code block shown below should return a DataFrame with columns transactionsId, predError, value, and f from DataFrame transactionsDf. Choose the answer that correctly fills the blanks in the code block to accomplish this. transactionsDf.__1__(__2__)

    A. 1. filter 2. "transactionId", "predError", "value", "f"
    B. 1. select 2. "transactionId, predError, value, f"
    C. 1. select 2. ["transactionId", "predError", "value", "f"]
    D. 1. where 2. col("transactionId"), col("predError"), col("value"), col("f") E. 1. select 2. col(["transactionId", "predError", "value", "f"])

  • Question 75:

    Which of the following statements about storage levels is incorrect?

    A. The cache operator on DataFrames is evaluated like a transformation.
    B. In client mode, DataFrames cached with the MEMORY_ONLY_2 level will not be stored in the edge node's memory.
    C. Caching can be undone using the DataFrame.unpersist() operator.
    D. MEMORY_AND_DISK replicates cached DataFrames both on memory and disk.
    E. DISK_ONLY will not use the worker node's memory.

  • Question 76:

    The code block displayed below contains an error. The code block should use Python method find_most_freq_letter to find the letter present most in column itemName of DataFrame itemsDf and return it in a new column most_frequent_letter. Find the error.

    Code block:

    1.

    find_most_freq_letter_udf = udf(find_most_freq_letter)

    2.

    itemsDf.withColumn("most_frequent_letter", find_most_freq_letter("itemName"))

    A. Spark is not using the UDF method correctly.
    B. The UDF method is not registered correctly, since the return type is missing.
    C. The "itemName" expression should be wrapped in col().
    D. UDFs do not exist in PySpark.
    E. Spark is not adding a column.

  • Question 77:

    Which of the following code blocks returns a single-column DataFrame showing the number of words in column supplier of DataFrame itemsDf?

    Sample of DataFrame itemsDf:

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

    2.|itemId|attributes |supplier |

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

    4.|1 |[blue, winter, cozy] |Sports Company Inc.|

    5.|2 |[red, summer, fresh, cooling]|YetiX |

    6.|3 |[green, summer, travel] |Sports Company Inc.| 7.+------+-----------------------------+-------------------+

    A. itemsDf.split("supplier", " ").count()
    B. itemsDf.split("supplier", " ").size()
    C. itemsDf.select(word_count("supplier"))
    D. spark.select(size(split(col(supplier), " ")))
    E. itemsDf.select(size(split("supplier", " ")))

  • Question 78:

    Which of the following code blocks returns only rows from DataFrame transactionsDf in which values in column productId are unique?

    A. transactionsDf.distinct("productId")
    B. transactionsDf.dropDuplicates(subset=["productId"])
    C. transactionsDf.drop_duplicates(subset="productId")
    D. transactionsDf.unique("productId")
    E. transactionsDf.dropDuplicates(subset="productId")

  • Question 79:

    Which of the following describes a narrow transformation?

    A. narrow transformation is an operation in which data is exchanged across partitions.
    B. A narrow transformation is a process in which data from multiple RDDs is used.
    C. A narrow transformation is a process in which 32-bit float variables are cast to smaller float variables, like 16-bit or 8-bit float variables.
    D. A narrow transformation is an operation in which data is exchanged across the cluster.
    E. A narrow transformation is an operation in which no data is exchanged across the cluster.

  • Question 80:

    The code block shown below should return a new 2-column DataFrame that shows one attribute from column attributes per row next to the associated itemName, for all suppliers in column supplier whose name includes Sports. Choose the answer that correctly fills the blanks in the code block to accomplish this.

    Sample of DataFrame itemsDf:

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

    2.|itemId|itemName |attributes |supplier |

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

    4.|1 |Thick Coat for Walking in the Snow|[blue, winter, cozy] |Sports Company Inc.| 5.|2 |Elegant Outdoors Summer Dress |[red, summer, fresh, cooling]|YetiX |

    6.|3 |Outdoors Backpack |[green, summer, travel] |Sports Company Inc.|

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

    Code block:

    itemsDf.__1__(__2__).select(__3__, __4__)

    A. 1. filter 2. col("supplier").isin("Sports") 3. "itemName" 4. explode(col("attributes"))
    B. 1. where 2. col("supplier").contains("Sports") 3. "itemName" 4. "attributes"
    C. 1. where 2. col(supplier).contains("Sports") 3. explode(attributes) 4. itemName
    D. 1. where 2. "Sports".isin(col("Supplier")) 3. "itemName" 4. array_explode("attributes")
    E. 1. filter 2. col("supplier").contains("Sports") 3. "itemName" 4. explode("attributes")

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.