Quiz Space

Introduction to Big Data · End Term · 22 Dec 2024 · September 2024 term · Set QDB4

Question 10: Consider a Structured Streaming application running on G…

Question 10

+2 marksOne correct option

Consider a Structured Streaming application running on Google Dataproc firing up every 10 seconds, consuming any number of records from Kafka available since last read, and emitting some computed answers to another Kafka topic. Consider also that apart from the functional logic, the same application is also emitting into a file the start time and end time of every batch invocation for audit purposes.
Assume there is a failure in one of the Dataproc machines that results in a failure of a specific run. For the external world (i.e. anybody consuming the outputs of this application), will they see the effect of the failure at all, or will it be as though there was no failure? Select the ones from the list below that answer this question.

  1. A

    Yes, the failure is visible. The only visible effect for the external world would be in the form of a slowdown in runtime for completion of that batch as Structured Streaming retries the batch that failed thus taking twice as much time as normal.

  2. B

    Yes, the failure is visible because the side effect of emitting timestamps in a batch will be visible as 2 consecutive Start timestamps without any end timestamp as Structured Streaming retries the failed batch.

  3. C

    No, no failure is visible since Structured Streaming uses transactions and idempotence to achieve exactly-once processing.

  4. D

    No, no failure is visible since Structured Streaming can process the same data in a retry resulting in the same outputs again.

Show answer

Correct answer

  • B

    Yes, the failure is visible because the side effect of emitting timestamps in a batch will be visible as 2 consecutive Start timestamps without any end timestamp as Structured Streaming retries the failed batch.

Question 10 of 21 in the IIT Madras BS Introduction to Big Data (Intro to Big Data) End Term paper sat on 22 Dec 2024, in the September 2024 term (IIT M DEGREE AN EXAM QDB4 22 Dec 2024). It carries 2 marks.

More questions from this paper

  1. Q1What happens when a Spark Structured Streaming pipeline operating with Kafka as the source is subject to a machine fail…
  2. Q2A company with headquarters (HQ) in the Middle East operates on a Sunday-Thursday weekday schedule with Friday \& Satur…
  3. Q3In the class, we saw the UDF for mobilenet_v2. Specifically, the predict() function contained the below lines of code
  4. Q4Dhoni is on the crease with a bat in hand that has sensors embedded throughout. The sensors talk to the spider cam ever…
  5. Q5In the class, we saw the UDF for mobilenet_v2. By definition, UDFs are scalar. In Spark, there is another class of user…
  6. Q6You are appointed as a Data Engineer in a company that has a legacy reporting application written in Java which suffers…
  7. Q7You are given a Spark Streaming pipeline that invokes a pre-trained DL model for every image it receives as input and p…
  8. Q8Which of the following code snippets will give a runtime error? (Note: df is a spark dataframe. It has a column called …
  9. Q9Since it is the onset of summer, there is a surge in railway ticket bookings. The business head at IRCTC is interested …
  10. Q11Consider a Kafka system that has two brokers with the exact same specifications. Let’s consider a topic A with a single…
  11. Q12Let us say we are using structured streaming for continuously reading data from Kafka and storing the results back into…
  12. Q13Kubernetes is an open-source system for automating deployment, scaling and management of containerized applications. Go…
  13. Q14A big data streaming application that reads from using Kafka as source is observed to be really slow. The Kafka cluster…
  14. Q15You are given the task of improving the performance of a Spark SQL program. You suspect that the culprit is the main tr…
  15. Q16What differentiates “streaming processing” from “batch processing” in the context of big data?
  16. Q17What are the core components for a Big Data Streaming application?
  17. Q18Which of the following statements are true?
  18. Q19Observe the below image and select the options that are true.
  19. Q20A Spark Streaming application is configured to execute once per minute. However, each run takes 10+ minutes consistentl…
  20. Q21You are given a Spark program that runs on a Google Dataproc cluster on a daily schedule from 1AM-12PM to produce as ou…