Quiz Space

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

Question 2: A website that started 3 years ago now sees 1 Billion hit…

Question 2

+2 marksOne correct option

A website that started 3 years ago now sees 1 Billion hits every month. The website owner wants to count average hits per customer across all months, where a customer is denoted by the IP address of the device from which the customer is accessing the website. The owner has at his disposal a minimal Hadoop cluster of 2 workers and 1 master each with 1GB of RAM. He would like to run this job every month going forward. Which of the following methods is the most likely to finish every time it is run in the months and years ahead yielding the right result?

  1. A

    Write a MapReduce program where the Map does nothing useful, Combinecomputes the aggregated hits per customer, Shuffle combines data based on IP address across workers, and the Reduce builds a hash table on each machine with hash key = IP address and hash value = running total and sum, with a final Map that emits the avg per customer.

  2. B

    Write a Spark program that forms a Dataframe as grouping by IP address withcount as aggregate, followed by a take into a list in the Spark driver which further computes the average of all the individual counts in the list

  3. C

    Write a Spark program that forms a Dataframe as grouping by IP address withcount as aggregate, followed by another stage that computes the avg on top of the Dataframe of the first stage

  4. D

    Write a MapReduce program where the Map does nothing useful, Combinecomputes the aggregated hits per customer, Shuffle combines data based on IP address across workers, and the Reduce sorts the data on sort key = IP address and then calculates the final avg per customer.

  5. E

    All will finish every time it is run without issues.

Show answer

Correct answer

  • D

    Write a MapReduce program where the Map does nothing useful, Combinecomputes the aggregated hits per customer, Shuffle combines data based on IP address across workers, and the Reduce sorts the data on sort key = IP address and then calculates the final avg per customer.

Question 2 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. Q3An enterprise software designer wants to leverage the best of Google cloud to minimize the number of administrative ove…
  3. Q4Consider an application that can scale from handling 1000 users to handling 100 million users by simply making copies o…
  4. Q5Consider a file “data.bin” which is formatted as follows: every data record has 10 key-value pairs of the format “key,v…
  5. Q6You join the data engineering team at a company that has good big data expertise already. Your first assignment is to c…
  6. Q7What happens when a Spark Structured Streaming pipeline operating with Kafka as source and console output as target is …
  7. Q8A big data streaming application that uses Kafka as source is observed to be really lagging behind currently live data.…
  8. Q9A company with headquarters (HQ) in the Middle East operates on a Sunday-Thursday weekday schedule with Friday \& Satur…
  9. Q10You are appointed as a Data Engineer in a company that has a legacy reporting application written in Java which suffers…
  10. Q11Fielder on the midwicket boundary is wearing a smart watch. Unlike other smart watches, this one is unique in that it h…
  11. Q12Figure question
  12. Q13You are given a Spark Streaming pipeline that invokes a pre-trained DL model for every image it receives as input and p…
  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…