Spark-Scala Quiz Questions and Answers – Part 6


Objective

After learning Apache Spark and Scala try your hands on Spark-Scala Quiz and get to know your learning so far. Below is some multiple choice Questions corresponding to them are the choice of answers. This quiz will help you to revise the concepts of Apache Spark and Scala will build up your confidence in Spark. Hope these questions are helpful for you.

Spark-Scala Quiz Questions and Answers for Spark Interview Preparation

Spark-Scala Quiz Questions and Answers

Q.1 Which of the following is good for low-level transformation and actions?

For detailed description follow: RDD vs DataFrame vs DataSet

Q.2 Which of the following technology is good for Stream technology?

For detailed description follow: Flink – Introduction

Q.3 Deployment modes are supported by Spark for standalone cluster

For detailed description follow: Spark – Cluster Managers

Q.4 FlatMap transforms an RDD of length N into another RDD of length M. Which of the following is true for N and M?

For detailed description follow: Spark – Map vs FlatMap

Q.5 Spark SQL plays a main role in optimization of queries.

For detailed description follow: Spark SQL – Introduction

Q.6 This optimizer is based on functional programming construct in-

For detailed description follow: Spark SQL – Optimization

Q.7 Catalyst Optimizer supports either rule-based or cost-based optimization.

For detailed description follow: Spark SQL – Optimization

Q.8 Which of the following is not true for Catalyst Optimizer?

For detailed description follow: Spark SQL – Optimization

Q.9 Which of the following is true for tree in Catalyst optimizer?

For detailed description follow: Spark SQL – Optimization

Q.10 Which of the following is true for rule in Catalyst optimizer?

For detailed description follow: Spark SQL – Optimization

Q.11 Which of the following is not a Spark SQL query execution phases?

For detailed description follow: Spark SQL – Optimization

Q.12 In Spark SQL optimization which of the following is not present in logical plan?

For detailed description follow: Spark SQL – Optimization

Q.13 In Physical planning phase of Query optimization we can use both Coast-based and Rule-based optimization.

For detailed description follow: Spark SQL – Optimization

Q.14 In Dataframe in Spark Once the domain object is converted into dataframe, the regeneration of domain object is not possible.

For detailed description follow: Spark SQL – DataFrame

Q.15 DataFrame API have provision for compile time type safety.

For detailed description follow: Spark SQL – DataFrame

Q.16 Which of the following make use of encoder for serialization.

For detailed description follow: Spark DataSet Tutorial

Q.17 Which of the following require Garbage collection?

For detailed description follow: Apache Spark RDD

Q.18 Which of the following is slow to perform simple grouping and aggregation operations?

For detailed description follow: Apache Spark RDD

Q.19 Dataset API is not supported by Python. But because of the dynamic nature of Python, many benefits of Dataset API are available.

For detailed description follow: Spark DataSet Tutorial

Q.20 In YARN, both the application master and executors run inside the containers.

For detailed description follow: Hadoop Yarn Tutorial

You can share your queries/suggestions related to this Spark-Scala quiz in the comment box given below.

See Also-

Leave a comment

Your email address will not be published. Required fields are marked *