Quiz Space

Introduction to Big Data · End Term · 13 Apr 2025 · January 2025 term · Set 1-2

Question 15: Let us say we are using structured streaming for continu…

Question 15

+2 marksOne correct option

Let us say we are using structured streaming for continuously reading data from Kafka and storing the results back into a Kafka topic using window function aggregates. Due to various reasons, the job did not run for 1 month. Now, we need to again continue the runs without compromising on the correctness of the results. What can you do that will take the least effort?

  1. A

    Code up a new batch processing job and process the 1 month of missed dataas a standalone job. Then, reactivate the structured streaming job once the latest date is caught up.

  2. B

    Code up a new batch processing job and process the 1 month of missed dataas a standalone job. Then, reactivate the structured streaming job once the latest date is caught up. But copy the code over from the current structured streaming job where the read and writecommands will remain the same, but the remaining code will need to be modified, as operations on streaming dataframes are not supported on static dataframes.

  3. C

    Launch the structured streaming job using starting offset as that lastsuccessfully processed before the job went on hiatus, and launch in a streaming mode with a very high time frequency of repetition. This simulates a batch execution of the same logic so as to catch up for 1 month of data processing. Once done, relaunch the structured streaming using the earlier-used configuration parameters.

  4. D

    Code up a new batch processing job and process the 1 month of missed dataas a standalone job. Then, reactivate the structured streaming job once the latest date is caught up. But copy the code over from the current structured streaming job where the read and write commands need to be modified to specify that it’s a batch operation. Further, the specific logic of window functions will also need to be modified since there are no time windows anymore in batch processing.

  5. E

    Code up a new batch processing job and process the 1 month of missed dataas a standalone job. Then, reactivate the structured streaming job once the latest date is caught up. But copy the code over from the current structured streaming job where only the read and write commands need to be modified to specify that it's a batch operation.

Show answer

Correct answer

  • C

    Launch the structured streaming job using starting offset as that lastsuccessfully processed before the job went on hiatus, and launch in a streaming mode with a very high time frequency of repetition. This simulates a batch execution of the same logic so as to catch up for 1 month of data processing. Once done, relaunch the structured streaming using the earlier-used configuration parameters.

Question 15 of 20 in the IIT Madras BS Introduction to Big Data (Intro to Big Data) End Term paper sat on 13 Apr 2025, in the January 2025 term (IIT M IMPROVEMENT FN EXAM QIM2 13 Apr). It carries 2 marks.

This question was also asked in

More questions from this paper

  1. Q1Which of the following is a false characterization of "hot potato” principle?
  2. Q2A website that started 3 years ago now sees 1 Billion hits every month. The website owner wants to count average hits p…
  3. Q3An enterprise software designer wants to leverage the best of Google cloud to minimize the number of administrative ove…
  4. Q4Consider an application that can scale from handling 1000 users to handling 100 million users by simply making copies o…
  5. Q5Consider a file “data.bin” which is formatted as follows: every data record has 10 key-value pairs of the format “key,v…
  6. Q6You join the data engineering team at a company that has good big data expertise already. Your first assignment is to c…
  7. Q7What happens when a Spark Structured Streaming pipeline operating with Kafka as source and console output as target is …
  8. Q8A big data streaming application that uses Kafka as source is observed to be really lagging behind currently live data.…
  9. Q9A company with headquarters (HQ) in the Middle East operates on a Sunday-Thursday weekday schedule with Friday \& Satur…
  10. Q10You are appointed as a Data Engineer in a company that has a legacy reporting application written in Java which suffers…
  11. Q11Fielder on the midwicket boundary is wearing a smart watch. Unlike other smart watches, this one is unique in that it h…
  12. Q12Figure question
  13. Q13You are given a Spark Streaming pipeline that invokes a pre-trained DL model for every image it receives as input and p…
  14. Q14Consider a Structured Streaming application running on Google Dataproc firing up every 10 seconds, consuming any number…
  15. Q16Which one of these is not an implementation of the divide-and-conquer data processing paradigm?
  16. Q17What option(s) best describe the differences between MapReduce and Spark?
  17. Q18You are provided with a Spark program that picks out a list of suspicious transactions. Its logic is based on both the …
  18. Q19Figure question
  19. Q20In a manufacturing facility, the supervisor is interested in improving efficiency of the assembly line using sensor dat…