Quiz Space

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

Question 10: You are appointed as a Data Engineer in a company that h…

Question 10

+2 marksOne correct option

You are appointed as a Data Engineer in a company that has a legacy reporting application written in Java which suffers from performance problems. The reporting application plots dashboards with daily refresh of key business indicators to help management take the best decisions. The application reads data directly from the source database of MongoDB, aggregates using simple counts and shows them visually in a UI. The performance problem of this application comes because the source database is at times overloaded and therefore the dashboard is not able to retrieve answers fast enough making the end user wait for the result. Choose the best option that gives the best performance with minimal maintenance effort:

  1. A

    Since MongoDB is OLTP, it is not able to support business reporting. So, bringthe data into Hadoop end of day, and run OLAP queries on it from the same UI.

  2. B

    Convert the application from using plain Java to using Spark Streaming in Java

  3. C

    Extract raw data from MongoDB using Change Data Capture (CDC) once everyminute into Kafka, and then use Spark Streaming to compute the KPIs and then populate into a NoSQL DB like Redis for the UI to consume.

  4. D

    Query MongoDB every 1 minute for new data using a check on documentinserted timestamp, use Spark Streaming to compute the KPIs with the queried data, and then populate into a NoSQL DB like Redis for the UI to consume.

  5. E

    Convert application to using Python along with a NoSQL database for storingand retrieving the aggregated counts.

Show answer

Correct answer

  • A

    Since MongoDB is OLTP, it is not able to support business reporting. So, bringthe data into Hadoop end of day, and run OLAP queries on it from the same UI.

Question 10 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. 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…