Quiz Space

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

Question 18: You are provided with a Spark program that picks out a l…

Question 18

+4 marksOne or more correct options

You are provided with a Spark program that picks out a list of suspicious transactions. Its logic is based on both the financial value of the transaction and the geographic location of the transaction. If the financial value is higher than a threshold and the geographic location is from a set of suspected locations (provided as a 1MB file), then the program deems the transaction as suspicious. The version of the Spark program given to you is written in such a way that it pulls all the transactions from the Workers to the Driver and then applies the logic. The fraud control team that runs this program is having to constantly bother you with new threshold values since they are not able to change the Spark code themselves due to lack of technical knowledge. Which 2 changes from the list below will get you the most benefit in performance while also meeting the needs of your stakeholders?

Select all that apply.

  1. A

    Use broadcast variables for the 1MB file

  2. B

    Hardcode threshold value as a filter condition in the Driver program so thatthe stakeholders can directly edit the Driver program without having to understand Spark

  3. C

    Reorder operations on the Driver such that geographic location is checkedfirst before filtering high value transactions

  4. D

    Hardcode threshold value as a filter condition in the Workers itself

  5. E

    Accept the threshold value as a parameter and filter using the threshold in theWorkers itself.

Show answer

Correct answers

  • A

    Use broadcast variables for the 1MB file

  • E

    Accept the threshold value as a parameter and filter using the threshold in theWorkers itself.

Question 18 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 4 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. Q15Let us say we are using structured streaming for continuously reading data from Kafka and storing the results back into…
  16. Q16Which one of these is not an implementation of the divide-and-conquer data processing paradigm?
  17. Q17What option(s) best describe the differences between MapReduce and Spark?
  18. Q19Figure question
  19. Q20In a manufacturing facility, the supervisor is interested in improving efficiency of the assembly line using sensor dat…