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

    Which of the following code blocks reads all CSV files in directory filePath into a single DataFrame, with column names defined in the CSV file headers?

    Content of directory filePath:

    1._SUCCESS

    2._committed_2754546451699747124

    3._started_2754546451699747124

    4.part-00000-tid-2754546451699747124-10eb85bf-8d91-4dd0-b60b-2f3c02eeecaa-298-1- c000.csv.gz

    5.part-00001-tid-2754546451699747124-10eb85bf-8d91-4dd0-b60b-2f3c02eeecaa-299-1- c000.csv.gz

    6.part-00002-tid-2754546451699747124-10eb85bf-8d91-4dd0-b60b-2f3c02eeecaa-300-1- c000.csv.gz

    7.part-00003-tid-2754546451699747124-10eb85bf-8d91-4dd0-b60b-2f3c02eeecaa-301-1- c000.csv.gz

    spark.option("header",True).csv(filePath)

    A. spark.read.format("csv").option("header",True).option("compression","zip").load(filePath)
    B. spark.read().option("header",True).load(filePath)
    C. spark.read.format("csv").option("header",True).load(filePath)
    D. spark.read.load(filePath)

  • Question 172:

    Which of the following code blocks reads JSON file imports.json into a DataFrame?

    A. spark.read().mode("json").path("/FileStore/imports.json")
    B. spark.read.format("json").path("/FileStore/imports.json")
    C. spark.read("json", "/FileStore/imports.json")
    D. spark.read.json("/FileStore/imports.json")
    E. spark.read().json("/FileStore/imports.json")

  • Question 173:

    The code block displayed below contains an error. The code block should return the average of rows in column value grouped by unique storeId. Find the error.

    Code block:

    transactionsDf.agg("storeId").avg("value")

    A. Instead of avg("value"), avg(col("value")) should be used.
    B. The avg("value") should be specified as a second argument to agg() instead of being appended to it.
    C. All column names should be wrapped in col() operators.
    D. agg should be replaced by groupBy.
    E. "storeId" and "value" should be swapped.

  • Question 174:

    The code block shown below should show information about the data type that column storeId of DataFrame transactionsDf contains. Choose the answer that correctly fills the blanks in the code block to accomplish this.

    Code block: transactionsDf.__1__(__2__).__3__

    A. 1. select 2. "storeId" 3. print_schema()
    B. 1. limit 2. 1 3. columns
    C. 1. select 2. "storeId" 3. printSchema()
    D. 1. limit 2. "storeId" 3. printSchema()
    E. 1. select 2. storeId 3. dtypes

  • Question 175:

    Which of the following statements about DAGs is correct?

    A. DAGs help direct how Spark executors process tasks, but are a limitation to the proper execution of a query when an executor fails.
    B. DAG stands for "Directing Acyclic Graph".
    C. Spark strategically hides DAGs from developers, since the high degree of automation in Spark means that developers never need to consider DAG layouts.
    D. In contrast to transformations, DAGs are never lazily executed.
    E. DAGs can be decomposed into tasks that are executed in parallel.

  • Question 176:

    Which of the following statements about executors is correct, assuming that one can consider each of the JVMs working as executors as a pool of task execution slots?

    A. Slot is another name for executor.
    B. There must be less executors than tasks.
    C. An executor runs on a single core.
    D. There must be more slots than tasks.
    E. Tasks run in parallel via slots.

  • Question 177:

    Which of the following code blocks displays various aggregated statistics of all columns in DataFrame transactionsDf, including the standard deviation and minimum of values in each column?

    A. transactionsDf.summary()
    B. transactionsDf.agg("count", "mean", "stddev", "25%", "50%", "75%", "min")
    C. transactionsDf.summary("count", "mean", "stddev", "25%", "50%", "75%", "max").show()
    D. transactionsDf.agg("count", "mean", "stddev", "25%", "50%", "75%", "min").show()
    E. transactionsDf.summary().show()

  • Question 178:

    The code block displayed below contains an error. The code block should return a DataFrame where all entries in column supplier contain the letter combination et in this order. Find the error.

    Code block:

    itemsDf.filter(Column('supplier').isin('et'))

    A. The Column operator should be replaced by the col operator and instead of isin, contains should be used.
    B. The expression inside the filter parenthesis is malformed and should be replaced by isin('et', 'supplier').
    C. Instead of isin, it should be checked whether column supplier contains the letters et, so isin should be replaced with contains. In addition, the column should be accessed using col['supplier'].
    D. The expression only returns a single column and filter should be replaced by select.

  • Question 179:

    Which of the following describes slots?

    A. Slots are dynamically created and destroyed in accordance with an executor's workload.
    B. To optimize I/O performance, Spark stores data on disk in multiple slots.
    C. A Java Virtual Machine (JVM) working as an executor can be considered as a pool of slots for task execution.
    D. A slot is always limited to a single core. Slots are the communication interface for executors and are used for receiving commands and sending results to the driver.

  • Question 180:

    Which of the following statements about lazy evaluation is incorrect?

    A. Predicate pushdown is a feature resulting from lazy evaluation.
    B. Execution is triggered by transformations.
    C. Spark will fail a job only during execution, but not during definition.
    D. Accumulators do not change the lazy evaluation model of Spark.
    E. Lineages allow Spark to coalesce transformations into stages

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.