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

    Which of the following code blocks concatenates rows of DataFrames transactionsDf and transactionsNewDf, omitting any duplicates?

    A. transactionsDf.concat(transactionsNewDf).unique()
    B. transactionsDf.union(transactionsNewDf).distinct()
    C. spark.union(transactionsDf, transactionsNewDf).distinct()
    D. transactionsDf.join(transactionsNewDf, how="union").distinct()
    E. transactionsDf.union(transactionsNewDf).unique()

  • Question 102:

    The code block shown below should return an exact copy of DataFrame transactionsDf that does not include rows in which values in column storeId have the value 25. Choose the answer that correctly fills the blanks in the code block to accomplish this.

    A. transactionsDf.remove(transactionsDf.storeId==25)
    B. transactionsDf.where(transactionsDf.storeId!=25)
    C. transactionsDf.filter(transactionsDf.storeId==25)
    D. transactionsDf.drop(transactionsDf.storeId==25)
    E. transactionsDf.select(transactionsDf.storeId!=25)

  • Question 103:

    The code block shown below should read all files with the file ending .png in directory path into Spark. Choose the answer that correctly fills the blanks in the code block to accomplish this.

    spark.__1__.__2__(__3__).option(__4__, "*.png").__5__(path)

    A. 1. read() 2. format 3. "binaryFile" 4. "recursiveFileLookup" 5. load
    B. 1. read 2. format 3. "binaryFile" 4. "pathGlobFilter" 5. load
    C. 1. read 2. format 3. binaryFile 4. pathGlobFilter 5. load
    D. 1. open 2. format 3. "image" 4. "fileType" 5. open
    E. 1. open 2. as 3. "binaryFile" 4. "pathGlobFilter" 5. load

  • Question 104:

    Which of the following describes properties of a shuffle?

    A. Operations involving shuffles are never evaluated lazily.
    B. Shuffles involve only single partitions.
    C. Shuffles belong to a class known as "full transformations".
    D. A shuffle is one of many actions in Spark.
    E. In a shuffle, Spark writes data to disk.

  • Question 105:

    Which of the following code blocks can be used to save DataFrame transactionsDf to memory only, recalculating partitions that do not fit in memory when they are needed?

    A. from pyspark import StorageLevel transactionsDf.cache(StorageLevel.MEMORY_ONLY)
    B. transactionsDf.cache()
    C. transactionsDf.storage_level('MEMORY_ONLY')
    D. transactionsDf.persist()
    E. transactionsDf.clear_persist()
    F. from pyspark import StorageLevel transactionsDf.persist(StorageLevel.MEMORY_ONLY)

  • Question 106:

    The code block shown below should write DataFrame transactionsDf as a parquet file to path storeDir, using brotli compression and replacing any previously existing file. Choose the answer that correctly fills the blanks in the code block to accomplish this.

    transactionsDf.__1__.format("parquet").__2__(__3__).option(__4__, "brotli").__5__(storeDir)

    A. 1. save 2. mode 3. "ignore" 4. "compression" 5. path
    B. 1. store 2. with 3. "replacement" 4. "compression" 5. path
    C. 1. write 2. mode 3. "overwrite" 4. "compression" 5. save (Correct)
    D. 1. save 2. mode 3. "replace" 4. "compression" 5. path
    E. 1. write 2. mode 3. "overwrite" 4. compression 5. parquet

  • Question 107:

    Which of the following options describes the responsibility of the executors in Spark?

    A. The executors accept jobs from the driver, analyze those jobs, and return results to the driver.
    B. The executors accept tasks from the driver, execute those tasks, and return results to the cluster manager.
    C. The executors accept tasks from the driver, execute those tasks, and return results to the driver.
    D. The executors accept tasks from the cluster manager, execute those tasks, and return results to the driver.
    E. The executors accept jobs from the driver, plan those jobs, and return results to the cluster manager.

  • Question 108:

    Which of the following statements about the differences between actions and transformations is correct?

    A. Actions are evaluated lazily, while transformations are not evaluated lazily.
    B. Actions generate RDDs, while transformations do not.
    C. Actions do not send results to the driver, while transformations do.
    D. Actions can be queued for delayed execution, while transformations can only be processed immediately.
    E. Actions can trigger Adaptive Query Execution, while transformation cannot.

  • Question 109:

    Which of the following code blocks performs an inner join of DataFrames transactionsDf and itemsDf on columns productId and itemId, respectively, excluding columns value and storeId from DataFrame transactionsDf and column attributes from DataFrame itemsDf?

    A. transactionsDf.drop('value', 'storeId').join(itemsDf.select('attributes'), transactionsDf.productId==itemsDf.itemId)
    B. 1.transactionsDf.createOrReplaceTempView('transactionsDf') 2.itemsDf.createOrReplaceTempView('itemsDf') 3.spark.sql("SELECT -value, -storeId FROM transactionsDf INNER JOIN itemsDf ON productId==itemId").drop("attributes")
    C. transactionsDf.drop("value", "storeId").join(itemsDf.drop("attributes"), "transactionsDf.productId==itemsDf.itemId")
    D. 1.transactionsDf \ 2. .drop(col('value'), col('storeId')) \ 3. .join(itemsDf.drop(col('attributes')), col('productId')==col('itemId'))
    E. 1.transactionsDf.createOrReplaceTempView('transactionsDf') 2.itemsDf.createOrReplaceTempView('itemsDf') 3.statement = """ 4.SELECT * FROM transactionsDf 5.INNER JOIN itemsDf 6.ON transactionsDf.productId==itemsDf.itemId 7.""" 8.spark.sql(statement).drop("value", "storeId", "attributes")

  • Question 110:

    Which of the following code blocks immediately removes the previously cached DataFrame transactionsDf from memory and disk?

    A. array_remove(transactionsDf, "*")
    B. transactionsDf.unpersist()
    C. del transactionsDf
    D. transactionsDf.clearCache()
    E. transactionsDf.persist()

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.