Certified Associate Developer for Apache Spark Practice Test
Certified Associate Developer for Apache Spark Practice Test practice questions, page 2 of 14, with answer review and explanations.
Question 6
Which of the following operations is most likely to result in a shuffle?
- DataFrame.join()
- DataFrame.filter()
- DataFrame.union()
- DataFrame.where()
- DataFrame.drop()
Question 7
The default value of spark.sql.shuffle.partitions is 200. Which of the following describes what that means?
- By default, all DataFrames in Spark will be spit to perfectly fill the memory of 200 executors.
- By default, new DataFrames created by Spark will be split to perfectly fill the memory of 200 executors.
- By default, Spark will only read the first 200 partitions of DataFrames to improve speed.
- By default, all DataFrames in Spark, including existing DataFrames, will be split into 200 unique segments for parallelization.
- By default, DataFrames will be split into 200 unique partitions when data is being shuffled.
Question 8
Which of the following is the most complete description of lazy evaluation?
- None of these options describe lazy evaluation
- A process is lazily evaluated if its execution does not start until it is put into action by some type of trigger
- A process is lazily evaluated if its execution does not start until it is forced to display a result to the user
- A process is lazily evaluated if its execution does not start until it reaches a specified date and time
- A process is lazily evaluated if its execution does not start until it is finished compiling
Question 9
Which of the following DataFrame operations is classified as an action?
- DataFrame.drop()
- DataFrame.coalesce()
- DataFrame.take()
- DataFrame.join()
- DataFrame.filter()
Question 10
Which of the following DataFrame operations is classified as a wide transformation?
- DataFrame.filter()
- DataFrame.join()
- DataFrame.select()
- DataFrame.drop()
- DataFrame.union()