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 1 MCQs Introduction to Spark

INT315 — Cluster Computing 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Limitations of MapReduce in Hadoop Easy

    What is a common limitation of Hadoop MapReduce?

  2. Question 2 of 60 Limitations of MapReduce in Hadoop Easy

    Why can repeated MapReduce jobs be slow?

  3. Question 3 of 60 Limitations of MapReduce in Hadoop Easy

    Which type of workload is difficult for traditional MapReduce?

  4. Question 4 of 60 Comparison of batch vs. real-time analytics Easy

    What does batch analytics do?

  5. Question 5 of 60 Comparison of batch vs. real-time analytics Easy

    What is a key characteristic of real-time analytics?

  6. Question 6 of 60 Comparison of batch vs. real-time analytics Easy

    Which example best represents batch analytics?

  7. Question 7 of 60 Comparison of batch vs. real-time analytics Easy

    Which application commonly requires real-time analytics?

  8. Question 8 of 60 Application of stream processing and in-memory processing Easy

    What is stream processing?

  9. Question 9 of 60 Application of stream processing and in-memory processing Easy

    Which is an example of stream processing?

  10. Question 10 of 60 Application of stream processing and in-memory processing Easy

    What does in-memory processing mean?

  11. Question 11 of 60 Application of stream processing and in-memory processing Easy

    Why can in-memory processing improve performance?

  12. Question 12 of 60 Features and benefits of Spark Easy

    Apache Spark is primarily a platform for what purpose?

  13. Question 13 of 60 Features and benefits of Spark Easy

    Which feature allows Spark to reuse data efficiently?

  14. Question 14 of 60 Features and benefits of Spark Easy

    Which Spark component is used for SQL queries?

  15. Question 15 of 60 Features and benefits of Spark Easy

    Which Spark component supports machine learning tasks?

  16. Question 16 of 60 Installation of Spark as a standalone user Easy

    Which software is generally required before installing Apache Spark?

  17. Question 17 of 60 Installation of Spark as a standalone user Easy

    Which command commonly starts the Spark interactive shell for Scala?

  18. Question 18 of 60 Installation of Spark as a standalone user Easy

    What is the purpose of setting the SPARK_HOME environment variable?

  19. Question 19 of 60 Comparison of Spark vs. Hadoop ecosystem Easy

    Which Hadoop component is commonly used for distributed file storage?

  20. Question 20 of 60 Comparison of Spark vs. Hadoop ecosystem Easy

    Compared with traditional MapReduce, Spark is often faster because it can do what?

  21. Question 21 of 60 Limitations of MapReduce in Hadoop Medium

    A machine learning algorithm repeatedly processes the same dataset for 50 iterations. Why is traditional Hadoop MapReduce likely to perform poorly for this workload?

  22. Question 22 of 60 Limitations of MapReduce in Hadoop Medium

    A data-processing workflow contains ten dependent MapReduce jobs. Which limitation is most likely to increase the total execution time?

  23. Question 23 of 60 Limitations of MapReduce in Hadoop Medium

    Which workload best illustrates a weakness of the MapReduce programming model?

  24. Question 24 of 60 Comparison of batch vs. real-time analytics Medium

    A bank wants to block suspicious card transactions within two seconds of their occurrence. Which processing approach is most appropriate?

  25. Question 25 of 60 Comparison of batch vs. real-time analytics Medium

    A retailer calculates monthly revenue from completed sales records. Which characteristic supports using batch analytics?

  26. Question 26 of 60 Comparison of batch vs. real-time analytics Medium

    Which statement best compares batch and real-time analytics for a temperature-monitoring system?

  27. Question 27 of 60 Application of stream processing and in-memory processing Medium

    An application receives click events continuously and updates a dashboard every five seconds. Which technique is being applied?

  28. Question 28 of 60 Application of stream processing and in-memory processing Medium

    Why can caching a repeatedly used dataset in Spark memory improve an iterative analysis?

  29. Question 29 of 60 Application of stream processing and in-memory processing Medium

    A streaming application must calculate the number of unique users observed during each ten-minute interval. Which concept is most directly required?

  30. Question 30 of 60 Features and benefits of Spark Medium

    Which Spark feature allows the same application to combine SQL queries, machine learning, and streaming operations?

  31. Question 31 of 60 Features and benefits of Spark Medium

    A Spark transformation is defined but no output is requested. Why might no computation occur immediately?

  32. Question 32 of 60 Features and benefits of Spark Medium

    A Spark job fails after a worker loses a partition that was derived from source data. Which feature can help Spark recover the missing partition?

  33. Question 33 of 60 Features and benefits of Spark Medium

    Which situation most strongly favors Spark over a disk-oriented batch engine?

  34. Question 34 of 60 Installation of Spark as a standalone user Medium

    A user wants to run Spark locally without installing Hadoop. Which deployment mode is most appropriate for initial learning and testing?

  35. Question 35 of 60 Installation of Spark as a standalone user Medium

    After installing Spark, a user runs a Spark application and receives an error indicating that Java cannot be found. Which configuration should be checked first?

  36. Question 36 of 60 Installation of Spark as a standalone user Medium

    Which command is commonly used to verify that a local Spark installation can start an interactive Python shell?

  37. Question 37 of 60 Installation of Spark as a standalone user Medium

    A standalone user wants to execute a Python Spark program from a terminal. Which tool is designed for submitting the application?

  38. Question 38 of 60 Comparison of Spark vs. Hadoop ecosystem Medium

    Which comparison between Spark and Hadoop MapReduce is most accurate?

  39. Question 39 of 60 Comparison of Spark vs. Hadoop ecosystem Medium

    A company already uses HDFS for storage but wants faster iterative analytics. Which adoption strategy is reasonable?

  40. Question 40 of 60 Comparison of Spark vs. Hadoop ecosystem Medium

    Which workload is generally a better fit for Spark than traditional Hadoop MapReduce?

  41. Question 41 of 60 Limitations of MapReduce in Hadoop Hard

    A machine-learning algorithm performs 30 iterations over the same training data. Each iteration reads the previous iteration's output and produces a new model. Why is classic Hadoop MapReduce generally slower than Spark for this workload?

  42. Question 42 of 60 Limitations of MapReduce in Hadoop Hard

    A workflow contains filter → map → filter → reduceByKey. In classic MapReduce, implementing each transformation as a separate job produces unnecessary overhead. Which Spark capability most directly reduces this overhead?

  43. Question 43 of 60 Limitations of MapReduce in Hadoop Hard

    A MapReduce application receives continuously arriving events but launches one job every minute. Processing takes 40 seconds and job startup takes 20 seconds. What is the most fundamental obstacle to sub-second result latency?

  44. Question 44 of 60 Comparison of batch vs. real-time analytics Hard

    A fraud system must block suspicious payments within 500 ms, while its detection model is retrained nightly from six months of transaction history. Which architecture best matches these requirements?

  45. Question 45 of 60 Comparison of batch vs. real-time analytics Hard

    Events may arrive up to 10 minutes late. A dashboard computes five-minute event-time windows and must eventually include late events without retaining state forever. Which design is most appropriate?

  46. Question 46 of 60 Comparison of batch vs. real-time analytics Hard

    A stream receives events at an average rate of 50,000 records/s. A micro-batch interval is 2 seconds, but each micro-batch requires 3 seconds to complete under sustained load. What is the most likely long-term behavior?

  47. Question 47 of 60 Application of stream processing and in-memory processing Hard

    A stateful streaming job counts purchases per customer. After a failure, some input records may be replayed. Which combination provides the strongest basis for exactly-once observable results?

  48. Question 48 of 60 Application of stream processing and in-memory processing Hard

    Which workload is most likely to gain the greatest benefit from explicitly caching a Spark dataset?

  49. Question 49 of 60 Application of stream processing and in-memory processing Hard

    An RDD is reused by several actions, but it is larger than aggregate executor memory. Which persistence strategy best avoids recomputation while tolerating memory pressure?

  50. Question 50 of 60 Features and benefits of Spark Hard

    A Spark program defines several transformations on a dataset, but no cluster work begins until count() is called. Which Spark design principle explains this behavior?

  51. Question 51 of 60 Features and benefits of Spark Hard

    An executor loses three cached partitions of an RDD, but the source data remains available. Under normal conditions, how does Spark recover those partitions?

  52. Question 52 of 60 Features and benefits of Spark Hard

    Which transformation most directly introduces a wide dependency and therefore normally creates a shuffle boundary between Spark stages?

  53. Question 53 of 60 Features and benefits of Spark Hard

    A Spark job joins a 5 TB fact table with a 20 MB dimension table. Both are initially partitioned incompatibly. Which optimization most directly avoids shuffling the fact table?

  54. Question 54 of 60 Installation of Spark as a standalone user Hard

    Spark is unpacked in /opt/spark, but running spark-shell from another directory returns command not found. Java is already installed. Which configuration most directly fixes the issue for the current user?

  55. Question 55 of 60 Installation of Spark as a standalone user Hard

    A user runs spark-submit --master local[*] app.py on a machine that is also configured as a Spark standalone worker. Where will the application's tasks execute?

  56. Question 56 of 60 Installation of Spark as a standalone user Hard

    A standalone Spark master is reachable at spark://master.example:7077. A submission using --master local[8] never appears in the master's web interface. What change is required?

  57. Question 57 of 60 Installation of Spark as a standalone user Hard

    In Spark standalone mode, an application is submitted with deploy mode client. The user's terminal process is then terminated unexpectedly. Which outcome is most likely?

  58. Question 58 of 60 Comparison of Spark vs. Hadoop ecosystem Hard

    Which statement most accurately describes the relationship between Apache Spark and the Hadoop ecosystem?

  59. Question 59 of 60 Comparison of Spark vs. Hadoop ecosystem Hard

    An organization stores data in HDFS and manages resources with YARN. It wants to migrate computation from MapReduce to Spark while retaining storage and resource management. Which change is sufficient in principle?

  60. Question 60 of 60 Comparison of Spark vs. Hadoop ecosystem Hard

    A 100 TB archival transformation runs once per month, performs one sequential pass, and has no interactive or iterative reuse. Which conclusion about choosing Spark over MapReduce is most defensible?

That's unit 1

Answer a few questions and your score shows up here.