Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 3 subjective questions Using RDD for Creating Applications in Spark and Graph Analytics

INT315 — Cluster Computing 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Define a Resilient Distributed Dataset (RDD) in Apache Spark. Explain its major features and discuss how these features support distributed data processing.

  2. Question 2 of 20

    Explain the concept of RDD lineage and describe how lineage provides fault tolerance in Spark.

  3. Question 3 of 20

    Describe different ways of creating RDDs in Spark. Provide suitable examples using parallelized collections and external datasets.

  4. Question 4 of 20

    Explain RDD transformations and actions. Distinguish between them with appropriate examples.

  5. Question 5 of 20

    Explain the map, flatMap, and filter RDD functions. Compare their behavior using an example.

  6. Question 6 of 20

    Describe the key pair RDD functions used for aggregation and explain how reduceByKey, groupByKey, and aggregateByKey differ.

  7. Question 7 of 20

    Explain lazy evaluation in Spark. Derive the sequence of execution for an RDD program containing transformations followed by an action.

  8. Question 8 of 20

    Explain narrow and wide dependencies in RDDs. Compare their effects on stages, data movement, and performance.

  9. Question 9 of 20

    Discuss RDD persistence and caching. Explain the available storage levels and the situations in which caching is useful.

  10. Question 10 of 20

    Describe important RDD actions and methods such as collect, count, take, first, reduce, and saveAsTextFile.

  11. Question 11 of 20

    Explain how to invoke and use the Spark shell. Describe the roles of the Spark context, Spark session, and command-line options.

  12. Question 12 of 20

    Define shared variables in Spark. Explain broadcast variables and accumulators, including their uses and limitations.

  13. Question 13 of 20

    Explain the architecture and basic data model of Spark GraphX. Describe vertices, edges, and the property graph.

  14. Question 14 of 20

    Discuss the important features of Spark GraphX and explain how it differs from a general-purpose graph database.

  15. Question 15 of 20

    Explain the GraphX operations mapVertices, mapEdges, and mapTriplets with suitable examples.

  16. Question 16 of 20

    Describe the aggregateMessages operation in GraphX. Explain the role of the message-sending and message-merging functions.

  17. Question 17 of 20

    Explain the Pregel API in GraphX and describe how it can be used to implement an iterative graph algorithm.

  18. Question 18 of 20

    Compare the PageRank and connected components algorithms available in GraphX. Explain their purpose and typical applications.

  19. Question 19 of 20

    Explain feature extraction and feature transformation in Spark. Distinguish between the two concepts and state why they are important in machine learning applications.

  20. Question 20 of 20

    Describe the steps involved in transforming text data into feature vectors using Spark.

That's unit 3

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.