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

    Which of the following describes Spark's Adaptive Query Execution?

    A. Adaptive Query Execution features include dynamically coalescing shuffle partitions, dynamically injecting scan filters, and dynamically optimizing skew joins.
    B. Adaptive Query Execution is enabled in Spark by default.
    C. Adaptive Query Execution reoptimizes queries at execution points.
    D. Adaptive Query Execution features are dynamically switching join strategies and dynamically optimizing skew joins.
    E. Adaptive Query Execution applies to all kinds of queries.

  • Question 12:

    Which of the following code blocks writes DataFrame itemsDf to disk at storage location filePath, making sure to substitute any existing data at that location?

    A. itemsDf.write.mode("overwrite").parquet(filePath)
    B. itemsDf.write.option("parquet").mode("overwrite").path(filePath)
    C. itemsDf.write(filePath, mode="overwrite")
    D. itemsDf.write.mode("overwrite").path(filePath)
    E. itemsDf.write().parquet(filePath, mode="overwrite")

  • Question 13:

    Which of the following statements about Spark's configuration properties is incorrect?

    A. The maximum number of tasks that an executor can process at the same time is controlled by the spark.task.cpus property.
    B. The maximum number of tasks that an executor can process at the same time is controlled by the spark.executor.cores property.
    C. The default value for spark.sql.autoBroadcastJoinThreshold is 10MB.
    D. The default number of partitions to use when shuffling data for joins or aggregations is 300.
    E. The default number of partitions returned from certain transformations can be controlled by the spark.default.parallelism property.

  • Question 14:

    Which of the following code blocks returns a DataFrame that has all columns of DataFrame transactionsDf and an additional column predErrorSquared which is the squared value of column predError in DataFrame transactionsDf?

    A. transactionsDf.withColumn("predError", pow(col("predErrorSquared"), 2))
    B. transactionsDf.withColumnRenamed("predErrorSquared", pow(predError, 2))
    C. transactionsDf.withColumn("predErrorSquared", pow(col("predError"), lit(2)))
    D. transactionsDf.withColumn("predErrorSquared", pow(predError, lit(2)))
    E. transactionsDf.withColumn("predErrorSquared", "predError"**2)

  • Question 15:

    Which of the following describes a way for resizing a DataFrame from 16 to 8 partitions in the most efficient way?

    A. Use operation DataFrame.repartition(8) to shuffle the DataFrame and reduce the number of partitions.
    B. Use operation DataFrame.coalesce(8) to fully shuffle the DataFrame and reduce the number of partitions.
    C. Use a narrow transformation to reduce the number of partitions.
    D. Use a wide transformation to reduce the number of partitions.
    E. Use operation DataFrame.coalesce(0.5) to halve the number of partitions in the DataFrame.

  • Question 16:

    Which of the following code blocks returns DataFrame transactionsDf sorted in descending order by column predError, showing missing values last?

    A. transactionsDf.sort(asc_nulls_last("predError"))
    B. transactionsDf.orderBy("predError").desc_nulls_last()
    C. transactionsDf.sort("predError", ascending=False)
    D. transactionsDf.desc_nulls_last("predError")
    E. transactionsDf.orderBy("predError").asc_nulls_last()

  • Question 17:

    Which of the following code blocks reads the parquet file stored at filePath into DataFrame itemsDf, using a valid schema for the sample of itemsDf shown below?

    Sample of 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. 1.itemsDfSchema = StructType([ 2. StructField("itemId", IntegerType()), 3. StructField("attributes", StringType()), 4. StructField("supplier", StringType())]) 5. 6.itemsDf = spark.read.schema(itemsDfSchema).parquet(filePath)
    B. 1.itemsDfSchema = StructType([ 2. StructField("itemId", IntegerType), 3. StructField("attributes", ArrayType(StringType)), 4. StructField("supplier", StringType)]) 5. 6.itemsDf = spark.read.schema(itemsDfSchema).parquet(filePath)
    C. 1.itemsDf = spark.read.schema('itemId integer, attributes , supplier string').parquet(filePath)
    D. 1.itemsDfSchema = StructType([ 2. StructField("itemId", IntegerType()), 3. StructField("attributes", ArrayType(StringType())), 4. StructField("supplier", StringType())]) 5. 6.itemsDf = spark.read.schema(itemsDfSchema).parquet(filePath)
    E. 1.itemsDfSchema = StructType([ 2. StructField("itemId", IntegerType()), 3. StructField("attributes", ArrayType([StringType()])), 4. StructField("supplier", StringType())]) 5. 6.itemsDf = spark.read(schema=itemsDfSchema).parquet(filePath)

  • Question 18:

    The code block displayed below contains an error. The code block should save DataFrame transactionsDf at path path as a parquet file, appending to any existing parquet file. Find the error.

    Code block:

    A. transactionsDf.format("parquet").option("mode", "append").save(path)
    B. The code block is missing a reference to the DataFrameWriter.
    C. save() is evaluated lazily and needs to be followed by an action.
    D. The mode option should be omitted so that the command uses the default mode.
    E. The code block is missing a bucketBy command that takes care of partitions.
    F. Given that the DataFrame should be saved as parquet file, path is being passed to the wrong method.

  • Question 19:

    The code block shown below should return a copy of DataFrame transactionsDf with an added column cos. This column should have the values in column value converted to degrees and having the cosine of those converted values taken,

    rounded to two decimals. Choose the answer that correctly fills the blanks in the code block to accomplish this.

    Code block:

    transactionsDf.__1__(__2__, round(__3__(__4__(__5__)),2))

    A. 1. withColumn 2. col("cos") 3. cos 4. degrees 5. transactionsDf.value
    B. 1. withColumnRenamed 2. "cos" 3. cos 4. degrees 5. "transactionsDf.value"
    C. 1. withColumn 2. "cos" 3. cos 4. degrees 5. transactionsDf.value
    D. 1. withColumn 2. col("cos") 3. cos 4. degrees 5. col("value")
    E. 1. withColumn 2. "cos" 3. degrees 4. cos 5. col("value")

  • Question 20:

    Which of the following code blocks uses a schema fileSchema to read a parquet file at location filePath into a DataFrame?

    A. spark.read.schema(fileSchema).format("parquet").load(filePath)
    B. spark.read.schema("fileSchema").format("parquet").load(filePath)
    C. spark.read().schema(fileSchema).parquet(filePath)
    D. spark.read().schema(fileSchema).format(parquet).load(filePath)
    E. spark.read.schema(fileSchema).open(filePath)

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.