Free Databricks Certified Associate Developer for Apache Spark 3.0 Exam Braindumps
Certified Associate Developer for Apache Spark Questions 66–70 (page: 15)

Updated On: 9-Feb-2026

Which of the following statements about DAGs is correct?

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

Answer(s): E

Explanation:

DAG stands for "Directing Acyclic Graph". No, DAG stands for "Directed Acyclic Graph".
Spark strategically hides DAGs from developers, since the high degree of automation in Spark means that developers never need to consider DAG layouts.
No, quite the opposite. You can access DAGs through the Spark UI and they can be of great help when optimizing queries manually.
In contrast to transformations, DAGs are never lazily executed.
DAGs represent the execution plan in Spark and as such are lazily executed when the driver requests the data processed in the DAG.



Which of the following DataFrame methods is classified as a transformation?

  1. DataFrame.count()
  2. DataFrame.show()
  3. DataFrame.select()
  4. DataFrame.foreach()
  5. DataFrame.first()

Answer(s): C

Explanation:

DataFrame.select()
Correct, DataFrame.select() is a transformation. When the command is executed, it is evaluated lazily and returns an RDD when it is triggered by an action.
DataFrame.foreach()
Incorrect, DataFrame.foreach() is not a transformation, but an action. The intention of foreach() is to apply code to each element of a DataFrame to update accumulator variables or write the elements to external storage. The process does not return an RDD - it is an action! DataFrame.first()
Wrong. As an action, DataFrame.first() executed immediately and returns the first row of a DataFrame.
DataFrame.count()
Incorrect. DataFrame.count() is an action and returns the number of rows in a DataFrame. DataFrame.show()
No, DataFrame.show() is an action and displays the DataFrame upon execution of the command.



Which of the following statements about lazy evaluation is incorrect?

  1. Predicate pushdown is a feature resulting from lazy evaluation.
  2. Execution is triggered by transformations.
  3. Spark will fail a job only during execution, but not during definition.
  4. Accumulators do not change the lazy evaluation model of Spark.
  5. Lineages allow Spark to coalesce transformations into stages

Answer(s): B

Explanation:

Execution is triggered by transformations.
Correct. Execution is triggered by actions only, not by transformations. Lineages allow Spark to coalesce transformations into stages.
Incorrect. In Spark, lineage means a recording of transformations. This lineage enables lazy evaluation in Spark.
Predicate pushdown is a feature resulting from lazy evaluation.
Wrong. Predicate pushdown means that, for example, Spark will execute filters as early in the process as possible so that it deals with the least possible amount of data in subsequent transformations, resulting in a performance improvements. Accumulators do not change the lazy evaluation model of Spark.
Incorrect. In Spark, accumulators are only updated when the query that refers to the is actually executed. In other words, they are not updated if the query is not (yet) executed due to lazy evaluation.
Spark will fail a job only during execution, but not during definition.
Wrong. During definition, due to lazy evaluation, the job is not executed and thus certain errors, for example reading from a non-existing file, cannot be caught. To be caught, the job needs to be executed, for example through an action.



Which of the following describes how Spark achieves fault tolerance?

  1. Spark helps fast recovery of data in case of a worker fault by providing the MEMORY_AND_DISK storage level option.
  2. If an executor on a worker node fails while calculating an RDD, that RDD can be recomputed by another executor using the lineage.
  3. Spark builds a fault-tolerant layer on top of the legacy RDD data system, which by itself is not fault tolerant.
  4. Due to the mutability of DataFrames after transformations, Spark reproduces them using observed lineage in case of worker node failure.
  5. Spark is only fault-tolerant if this feature is specifically enabled via the spark.fault_recovery.enabled property.

Answer(s): B

Explanation:

Due to the mutability of DataFrames after transformations, Spark reproduces them using observed lineage in case of worker node failure.
Wrong – Between transformations, DataFrames are immutable. Given that Spark also records the lineage, Spark can reproduce any DataFrame in case of failure. These two aspects are the key to understanding fault tolerance in Spark.
Spark builds a fault-tolerant layer on top of the legacy RDD data system, which by itself is not fault tolerant.
Wrong. RDD stands for Resilient Distributed Dataset and it is at the core of Spark and not a "legacy system". It is fault-tolerant by design.
Spark helps fast recovery of data in case of a worker fault by providing the MEMORY_AND_DISK storage level option.
This is not true. For supporting recovery in case of worker failures, Spark provides "_2", "_3", and so on, storage level options, for example MEMORY_AND_DISK_2. These storage levels are specifically designed to keep duplicates of the data on multiple nodes. This saves time in case of a worker fault, since a copy of the data can be used immediately, vs. having to recompute it first.
Spark is only fault-tolerant if this feature is specifically enabled via the spark.fault_recovery.enabled property.
No, Spark is fault-tolerant by design.



Which is the highest level in Spark's execution hierarchy?

  1. Task
  2. Executor
  3. Slot
  4. Job
  5. Stage

Answer(s): D



Viewing page 15 of 37
Viewing questions 71 - 75 out of 342 questions


Post your Comments and Discuss Databricks Databricks Certified Associate Developer for Apache Spark 3.0 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!