Quiz Space

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

Question 13: You are given a Spark Streaming pipeline that invokes a …

Question 13

+2 marksOne correct option

You are given a Spark Streaming pipeline that invokes a pre-trained DL model for every image it receives as input and produces the classification result in quick time. The model with the best recall rate from the PyTorch library runs in under 3 seconds on an average, when executing on a GPU-powered Spark cluster. Your management has now instructed you to reduce the cost of AI projects significantly, and has given guidance that latency of execution is not a concern since the consumer for the model output is batch oriented, and also that they would be ok with a lesser recall rate provided the drop isn’t significant. What is the best option to explore first to meet the expectations?

  1. A

    Build a custom model that compresses the highest recall rate model justenough to be able to execute within a single Spark worker and thus reduce cost of the cluster.

  2. B

    Use a different DL model from PyTorch that has better efficiency at lesserrecall levels so that the cluster size can be minimized.

  3. C

    Remove complexity associated with Spark Streaming, remove GPUs to savesignificant costs, and convert the model execution pipeline into a single threaded Python application using traditional ML running on a CPU-only machine.

  4. D

    Change Spark machine to use CPUs and train a fresh pipeline to achieveobjectives.

Show answer

Correct answer

  • C

    Remove complexity associated with Spark Streaming, remove GPUs to savesignificant costs, and convert the model execution pipeline into a single threaded Python application using traditional ML running on a CPU-only machine.

Question 13 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. Q14Consider a Structured Streaming application running on Google Dataproc firing up every 10 seconds, consuming any number…
  14. Q15Let us say we are using structured streaming for continuously reading data from Kafka and storing the results back into…
  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…