Spark Training- Post Test

71 Questions | Attempts: 1706
Share

SettingsSettingsSettings
Spark Training- Post Test - Quiz

.


Questions and Answers
  • 1. 
    DataFrame schemas are determined
    • A. 

      Lazily

    • B. 

      Eagerly

  • 2. 
    Which of the following is the entry point of Spark SQL in Spark 2.0?
    • A. 

      SparkContext (sc)

    • B. 

      SparkSession (spark)

    • C. 

      Both a and b

    • D. 

      None of the above

  • 3. 
    Which of the following is not a function of Spark Context ?
    • A. 

      To get the current status of Spark Application

    • B. 

      To set the configuration

    • C. 

      To Access various services

    • D. 

      Entry point to Spark SQL

  • 4. 
    What does the following code print? val lyrics = List("all", "that", "i", "know") println(lyrics.size)
    • A. 

      4

    • B. 

      3

  • 5. 
    Spark is 100x faster than MapReduce due to
    • A. 

      In-memory computing

    • B. 

      Development in Scala

  • 6. 
    Which type of processing Apache Spark can handle
    • A. 

      Batch Processing

    • B. 

      Stream Processing

    • C. 

      Graph Processing

    • D. 

      Interactive Processing

    • E. 

      All of the above

  • 7. 
    Choose correct statement about RDD
    • A. 

      RDD is a database

    • B. 

      RDD is a distributed data structure

    • C. 

      RDD is a programming paradigm

    • D. 

      None

  • 8. 
    Identify Correct Action
    • A. 

      Reduce

    • B. 

      Map

    • C. 

      Filter

    • D. 

      None

  • 9. 
    How do you print schema of a dataframe?
    • A. 

      Df.printSchema()

    • B. 

      Df.show()

    • C. 

      Df.take

    • D. 

      Printschema

  • 10. 
    Which of the following is true about DataFrame?
    • A. 

      DataFrame API have provision for compile time type safety.

    • B. 

      DataFrames provide a more user friendly API than RDDs.

    • C. 

      Both a and b

    • D. 

      None of the above

  • 11. 
    What does the following code print? var number = {val x = 2 * 2; x + 40} println(number)
    • A. 

      Error

    • B. 

      44

    • C. 

      40

  • 12. 
    Data transformations are executed 
    • A. 

      Eagerly

    • B. 

      Lazily

  • 13. 
    How many Spark Context can be active per job?
    • A. 

      More than one

    • B. 

      Only one

    • C. 

      Not specific

    • D. 

      None of the above

  • 14. 
    DataFrames and _____________ are abstractions for representing structured data
    • A. 

      RDD

    • B. 

      Datasets

  • 15. 
    Apache Spark has API's in
    • A. 

      Java

    • B. 

      Scala

    • C. 

      Python

    • D. 

      All of the above

  • 16. 
    Which of the following is not the feature of Spark?
    • A. 

      Supports in-memory computation

    • B. 

      Fault-tolerance

    • C. 

      It is cost efficient

    • D. 

      Compatible with other file storage system

  • 17. 
    Which of the following is true about Scala type inference ?
    • A. 

      The data type of the variable has to be mentioned explicitly

    • B. 

      The type of the variable is determined by looking at its value.

  • 18. 
    What will be the output: val rawData = spark.read.textFile("PATH").rdd val result = rawData.filter...
    • A. 

      Process the data as per the specified logic

    • B. 

      Compilation error

    • C. 

      Won't be executed

    • D. 

      None

  • 19. 
    Datasets are only defined in Scala and ______
    • A. 

      Python

    • B. 

      Java

  • 20. 
    What does the following code print? val simple = Map("r" -> "red", "g" -> "green") println(simple("g"))
    • A. 

      Red

    • B. 

      Green

    • C. 

      Error

  • 21. 
    What does the following code print? val dd: Double = 9.99 dd = 10.01 println(dd)
    • A. 

      10.01

    • B. 

      9.99

    • C. 

      Error

  • 22. 
    What does the following code print? var aa: String = "hello" aa = "pretty" println(aa)
    • A. 

      Hello

    • B. 

      Pretty

    • C. 

      Error

  • 23. 
    Identify correct transformation
    • A. 

      Map

    • B. 

      Filter

    • C. 

      Join

    • D. 

      All of the above

  • 24. 
    Choose correct statement
    • A. 

      All the transformations and actions are lazily evaluated

    • B. 

      Execution starts with the call of Action

    • C. 

      Execution starts with the call of Transformation

  • 25. 
    What does Spark Engine do?
    • A. 

      Scheduling

    • B. 

      Distributing data across cluster

    • C. 

      Monitoring data across cluster

    • D. 

      All of the above

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.