Apache Spark Multiple Choice Questions – Check Your Spark Knowledge
Don't become Obsolete & get a Pink Slip
Follow DataFlair on Google News & Stay ahead of the game
Spark Multiple Choice Questions
This Apache Spark Quiz is designed to test your Spark knowledge. It contains frequently asked Spark multiple choice questions along with the detailed explanation of their answers. These Spark quiz questions cover all the basic components of the Spark ecosystem. Hope this objective type questions on Spark will help you to Spark interview preparation.
Q.1 The primary Machine Learning API for Spark is now the _____ based API
Correct!
Wrong!
Q.2 Which of the following is a module for Structured data processing?
Correct!
Wrong!
Q.3 SparkSQL translates commands into codes. These codes are processed by
Correct!
Wrong!
Q.4 Spark SQL plays the main role in the optimization of queries.
Correct!
Wrong!
Q.5 This optimizer is based on functional programming construct in
Correct!
Wrong!
Q.6 Catalyst Optimizer supports either rule-based or cost-based optimization.
Correct!
Wrong!
Q.7 Which of the following is not true for Catalyst Optimizer?
Correct!
Wrong!
Q.8 Which of the following is true for the tree in Catalyst optimizer?
Correct!
Wrong!
Q.9 Which of the following is true for the rule in Catalyst optimizer?
Correct!
Wrong!
Q.10 Which of the following is not a Spark SQL query execution phases?
Correct!
Wrong!
Q.11 In Spark SQL optimization which of the following is not present in the logical plan -
Correct!
Wrong!
Q.12 In the analysis phase which is the correct order of execution after forming unresolved logical plan
a. Search relation BY NAME FROM CATALOG.
b. Determine which attributes match to the same value to give them unique ID.
c. Map the name attribute
d. Propagate and push type through expressions
Correct!
Wrong!
Q.13 In the Physical planning phase of Query optimization we can use both Coast-based and Rule-based optimization.
Correct!
Wrong!
Q.14 DataFrame in Apache Spark prevails over RDD and does not contain any feature of RDD.
Correct!
Wrong!
Q.15 Which of the following are the common feature of RDD and DataFrame?
Correct!
Wrong!
Q.16 Which of the following is not true for DataFrame?
Correct!
Wrong!
Q.17 In Dataframe in Spark Once the domain object is converted into a data frame, the regeneration of domain object is not possible.
Correct!
Wrong!
Q.18 DataFrame API has provision for compile-time type safety.
Correct!
Wrong!
Q.19 We can create DataFrame using:
Correct!
Wrong!
Q.20 Which of the following is the fundamental data structure of Spark
Correct!
Wrong!
Are you preparing for Spark developer job??? Refer these top 50+ Apache Spark Interview Questions and Answers for the best Spark interview preparation.
Quiz 20, the fundamental data structure of Spark should be RDD instead of DataFrame
Nice catch Julia, thanks for the suggestion. We have made the necessary changes.
Keep Learning Keep Visiting DataFlair