Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.
Data Analytics important questions with answers
Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.
Q1. Big Data and its characteristics (the 4 V's)
Asked 5 times in 2020, 2023 · Unit 2
From the papers
“What is Big Data? Explain the characteristics of Big Data.” (2020, 2023)
“Explain the 4 V's of Big Data.” (2020, 2023)
“Short note: 4 V's of Big data.” (2020)
The short answer
Big Data is data so large, so fast or so varied that a normal database on one machine cannot handle it in time. It needs distributed storage and parallel processing, as in Hadoop.
Write these points
Volume: the size of the data, from terabytes to petabytes. Facebook posts, bank records and sensor logs grow every day.
Velocity: the speed at which data is created and must be processed. Stock ticks, clicks and IoT readings arrive every second.
Variety: the many forms of data. Structured data sits in tables. Semi-structured data comes as JSON, XML or logs. Unstructured data covers text, images, audio and video.
Veracity: how far the data can be trusted. Big data has noise, missing values, duplicates and errors, so it must be cleaned before use.
Many books add a fifth V, Value. Data is useful only when analysis turns it into a decision or a profit.
Traditional RDBMS tools fail here because they scale up on one costly server. Big data tools scale out on many cheap machines.
Example.
An online shop like Flipkart stores millions of orders (volume) and records clicks every second during a sale (velocity). It keeps product photos, reviews and payment tables (variety). Fake reviews and wrong addresses are a veracity problem.
Real-life example
UPI handles crores of payments every day. Each one must be checked in seconds. The records pile up for years in many formats. That is volume, velocity and variety at once.
Each V names one reason why ordinary databases cannot handle Big Data.
Same or opposite: volume and velocity
Point
Volume
Velocity
Same or opposite
Meaning
How much data
How fast it arrives
Opposite
Example
Years of bank records
Live UPI payments
Opposite
Tool that helps
HDFS storage
Stream processing (Spark, Kafka)
Opposite
One of the V's
Yes
Yes
Same
Exam tip. Write each V as a heading with a one-line meaning and one example. Draw the four boxes around Big Data. A diagram earns easy marks in a 7 mark answer. If the question says characteristics, the V's are the answer. Add Value as the fifth for extra credit.
Q2. Hadoop architecture, core components and ecosystem
Asked 5 times in 2020, 2023, 2025 · Unit 4
From the papers
“Explain the Hadoop ecosystem components for data processing and data analysis.” (2025)
“Explain Hadoop Architecture with diagram and components.” (2023)
“What is Hadoop? Describe the role of Hadoop in big data analysis. Also explain core components of Hadoop.” (2023)
The short answer
Hadoop is an open source Apache framework that stores and processes very large data sets across a cluster of cheap computers. It spreads the data over many machines and runs the work in parallel on the machines that hold it.
Write these points
HDFS (Hadoop Distributed File System) is the storage layer. It cuts files into 128 MB blocks and keeps three copies of each block on different machines.
YARN (Yet Another Resource Negotiator) is the resource layer. The ResourceManager gives CPU and memory to jobs. A NodeManager on each machine runs the tasks.
MapReduce is the processing layer. Map tasks work on blocks in parallel and reduce tasks combine their results.
Hadoop Common holds the shared Java libraries and utilities that the other parts need.
It uses a master and slave design. The master runs the NameNode and ResourceManager. Each slave runs a DataNode and a NodeManager.
Role in big data: it grows by adding machines and survives machine failure through replication. It moves the code to the data. It stores any type of data at low cost.
Ecosystem tools run on top. Pig and Hive process data. HBase stores tables. Sqoop and Flume bring data in. ZooKeeper coordinates the cluster, Oozie schedules jobs and Spark does in-memory processing.
A 1 TB file on a Hadoop cluster.
Block size 128 MB: 1 TB = 1,048,576 MB, so the file becomes 8,192 blocks.
Replication 3 makes 24,576 block copies, which use 3 TB of raw disk.
One machine reading at 100 MB/s needs 1,048,576 / 100 ≈ 10,486 s, about 2.9 hours.
100 DataNodes each read their own blocks in parallel, so the same scan takes about 105 s.
Real-life example
Facebook and Yahoo used Hadoop clusters with thousands of cheap machines to store and study user data. One failed machine did not stop the work, because the data had copies elsewhere.
Hadoop core is HDFS, YARN and MapReduce. The ecosystem tools run on top of it.
Same or opposite: HDFS and YARN
Point
HDFS
YARN
Same or opposite
Job
Stores data
Manages resources and jobs
Opposite
Master
NameNode
ResourceManager
Opposite
Worker
DataNode
NodeManager
Opposite
Core part of Hadoop
Yes
Yes
Same
Exam tip. Draw the layers: HDFS at the bottom, YARN above it, then MapReduce with the tools on top. Name both the daemons and the layer each belongs to. Many students list tools but forget YARN. For the role of Hadoop, write scalability, fault tolerance, data locality and low cost.
“How do you find the number of occurrences of a word in a dataset using HDFS environment? Write the pseudo code for it.” (2025)
“Implement a word count program in Hadoop.” (2025)
The short answer
MapReduce is the programming model of Hadoop for processing large data in parallel. The map step turns each record into key-value pairs, while the reduce step combines all values that share a key.
Write these points
Input split and RecordReader: the input file is divided into splits (usually one block each). The RecordReader gives each line to the mapper as (offset, line).
Mapper: map(k1, v1) gives a list of (k2, v2). One map task runs per split, on the machine that holds the block.
Combiner (optional): a local reducer on the map side that adds partial results to cut network traffic.
Partitioner: decides which reducer gets each key. The default is hash(key) mod number of reducers.
Shuffle and sort: the framework moves all pairs with the same key to one reducer and sorts them by key.
Reducer: reduce(k2, list(v2)) gives the final (k3, v3). The OutputFormat writes it to HDFS.
Steps
map(offset, line): for each word w in line, emit (w, 1).
reduce(word, values): sum = 0; for each v in values, sum = sum + v; emit (word, sum).
Driver: create the Job and set the Mapper, Combiner and Reducer classes. Set the output types Text and IntWritable and the input and output paths. Then call job.waitForCompletion(true).
Run: hadoop jar wordcount.jar WordCount /input /output, then view the result with hdfs dfs -cat /output/part-r-00000.
Shuffle and sort group the keys: bear [1], car [1, 1], deer [1], river [1, 1].
Reduce adds each list: bear 1, car 2, deer 1, river 2.
Real-life example
To count votes across a whole state, each booth counts its own votes first. The district then adds the booth totals. Map is the booth count. Reduce is the district total.
Word count on two input splits. Each map output goes to the reducer that owns its key.
Same or opposite: map and reduce phase
Point
Map
Reduce
Same or opposite
Input
One input split
All values of one key
Opposite
Output
(key, value) pairs
Final result per key
Opposite
Runs in parallel
Yes
Yes
Same
Word count job
Emits (word, 1)
Adds the 1s
Opposite
Exam tip. Show the data flow with a small example like the one in the figure. Write map and reduce as pseudocode with their input and output pairs. The combiner is optional and must give the same result as the reducer. Say so if you use one.
Q4. Apache Pig and Pig Latin: why we need it, Pig vs MapReduce
Asked 5 times in 2020, 2023 · Unit 5
From the papers
“What is Pig Latin and why do we need it?” (2020, 2023)
“Differentiate between Apache Pig and Map Reduce.” (2020)
“Explain the term Pig Latin in detail.” (2020)
The short answer
Apache Pig is a high-level platform on Hadoop whose language, Pig Latin, describes a data flow step by step. Pig turns each script into MapReduce jobs.
Write these points
Why we need it: a join or a group in Java MapReduce needs many lines of code. Pig Latin does it in a few, so people who do not know Java can still process big data.
Each Pig Latin statement takes a relation and gives a new one: LOAD, FILTER, FOREACH ... GENERATE, GROUP, JOIN, ORDER, DUMP and STORE.
Data model: an atom is a single value (int, chararray). A tuple is an ordered set of fields. A bag is a collection of tuples. A map holds key and value pairs. A relation is an outer bag.
Schema is optional and users can add their own functions (UDFs). Pig runs in local mode for tests or MapReduce mode on the cluster.
Pig vs MapReduce: Pig Latin is a short data flow script with join and group built in. MapReduce is low-level Java where every step is coded by hand. It is longer to write but gives full control.
Steps
lines = LOAD 'input.txt' AS (line:chararray);
words = FOREACH lines GENERATE FLATTEN(TOKENIZE(line)) AS word;
grp = GROUP words BY word;
cnt = FOREACH grp GENERATE group, COUNT(words);
STORE cnt INTO 'wc_out';
Average salary per department in Pig Latin.
A = LOAD 'emp.txt' USING PigStorage(',') AS (name:chararray, dept:chararray, sal:int);
B = GROUP A BY dept; C = FOREACH B GENERATE group, AVG(A.sal); DUMP C;
Rows (Asha, IT, 50000), (Ravi, IT, 40000), (Meena, HR, 30000) give (HR, 30000.0) and (IT, 45000.0).
The same job in Java MapReduce needs a mapper class, a reducer class and a driver class.
Real-life example
An analyst at an online shop wants the top 10 products of the week. In Java MapReduce that is a long program. In Pig Latin it is about five lines of LOAD, GROUP, ORDER and LIMIT.
A Pig Latin script passes through the parser, optimizer and compiler before it runs on Hadoop.
Same or opposite: Pig and MapReduce
Point
Pig
MapReduce
Same or opposite
Language
Pig Latin, data flow
Java
Opposite
Lines of code
Few
Many
Opposite
Joins
One JOIN statement
Hard to write
Opposite
Runs on Hadoop
Yes
Yes
Same
Exam tip. Name the four data model types: atom, tuple, bag and map. Pig stores no data of its own. It is a scripting layer that makes MapReduce jobs.
“Explain the architecture and features of Hive.” (2020, 2023)
“Explain the HIVE architecture with its features in details.” (2025)
“Draw and explain architecture of APACHE HIVE. Explain various data insertion techniques in HIVE with example.” (2023)
The short answer
Apache Hive is a data warehouse system on Hadoop where users write SQL-like queries in HiveQL. Hive turns them into MapReduce, Tez or Spark jobs that read the data from HDFS.
Write these points
User interfaces: the command line (CLI or Beeline), a web UI and JDBC or ODBC clients through HiveServer2 (Thrift).
Driver: receives the query. Its compiler parses it, checks tables with the metastore and makes a plan.
Its optimizer improves the plan, for example by pruning partitions. Its executor runs the plan.
Metastore: keeps table schemas, HDFS locations and partitions in a relational database.
Features: SQL-like language, schema on read, partitions and buckets, UDFs, ORC and Parquet files. It suits batch analysis.
Steps
The user sends a query from the CLI or JDBC to the driver.
The compiler gets the table metadata from the metastore and returns a plan.
The execution engine runs the jobs on Hadoop over the HDFS data. Results return through the driver.
Inserting data: LOAD DATA INPATH '/data/emp.csv' INTO TABLE emp; or INSERT INTO TABLE emp SELECT ... ;
One HiveQL query from start to end.
CREATE TABLE emp (name STRING, dept STRING, sal INT) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',';
SELECT dept, AVG(sal) FROM emp GROUP BY dept;
The driver asks the metastore for the schema of emp. The compiler makes one job: map emits (dept, sal), reduce takes the average.
The same three rows as in Pig give HR 30000 and IT 45000.
Real-life example
A bank's report team knows SQL but not Java. With Hive they write SELECT queries on huge log files in HDFS. Hive turns each query into jobs on the cluster.
The driver compiles each HiveQL query using the metastore, then runs it on Hadoop.
Same or opposite: Hive and a relational database
Point
Hive
RDBMS
Same or opposite
Best for
Batch analysis of huge data
Fast transactions
Opposite
Schema
On read
On write
Opposite
Row updates
Limited
Full support
Opposite
Uses an SQL-like language
Yes
Yes
Same
Exam tip. Draw the diagram with the metastore beside the driver. The question almost always says draw. Number the steps of query flow. Examiners give marks for the order. Write one limitation: high delay, so Hive is not for OLTP.
Q6. Probability distributions and normal distribution problems
Asked 4 times in 2023, 2025 · Unit 1
From the papers
“Define a probability distribution. Why is it important in statistics?” (2025)
“Weights of 800 male students are normally distributed with mean 28.8 kg and SD 2.06 kg. Find the number of students whose weights are between 28.4 kg and 30.4 kg, and more than 31.3 kg.” (2023)
“A random variable has the probability function P(x) = 0, K, 2K, 2K, 3K, K², 2K², 7K²+K for x = 0..7. Determine k, mean and variance.” (2023)
The short answer
A probability distribution lists every value a random variable can take together with the probability of each value.
Write these points
A discrete variable has a mass function P(x). All P(x) add up to 1. A continuous one has a density curve whose area gives the probability.
Mean E(X) = Σ x P(x). Variance Var(X) = Σ x² P(x) − [E(X)]².
The normal curve is a symmetric bell around the mean μ. Mean, median and mode are equal.
To find a normal probability, change x to z = (x − μ) / σ and read the area from the z table.
It matters because hypothesis tests and confidence intervals assume a known distribution.
Example.
μ = 28.8, σ = 2.06. z = −0.19 and 0.78, area 0.0753 + 0.2823 = 0.3576, so 800 × 0.3576 = 286 students.
Above 31.3 kg z = 1.21, area 0.5 − 0.3869 = 0.1131, so 90 students.
For the 2023 table P(x) = 0, k, 2k, 2k, 3k, k², 2k², 7k² + k.
These add to 10k² + 9k = 1, which gives k = 1/10 (reject k = −1).
The mean is 3.66 and the variance is 16.8 − 3.66² = 3.40.
Real-life example
Heights of students in a class, marks in a big exam and errors in a machine part all follow a bell curve. Using the normal distribution, a teacher can say what share of students will score above 80.
The gold area is the share of students between 28.4 kg and 30.4 kg. The blue tail is above 31.3 kg.
Same or opposite: binomial and normal distribution
Point
Binomial
Normal
Same or opposite
Type
Discrete
Continuous
Opposite
Parameters
n and p
μ and σ
Opposite
Shape
Bars
Smooth bell curve
Opposite
Total probability is 1
Yes
Yes
Same
Exam tip. Draw the bell curve and shade the area you want. Examiners give marks for the sketch. Write the z formula before the numbers. Round z to two decimals. Use these normal curve facts in any answer: 68%, 95% and 99.7% within 1, 2 and 3 SDs.
Q7. Term frequency and inverse document frequency (TF-IDF)
Asked 4 times in 2020, 2023 · Unit 3
From the papers
“Define term frequency and inverse document frequency.” (2020, 2023)
“Short note: Term frequency.” (2020, 2023)
The short answer
TF-IDF is a weight that shows how important a word is to one document in a collection. Term frequency (TF) counts the word in the document, while inverse document frequency (IDF) lowers the weight of words found in many documents.
Write these points
TF(t, d) = (number of times term t appears in document d) / (total number of terms in d).
IDF(t) = log(N / df(t)), where N is the number of documents and df(t) is the number of documents that contain t.
TF-IDF(t, d) = TF(t, d) × IDF(t). A word scores high when it is frequent in this document but rare in the others.
Common words such as the, is and of appear in almost every document, so their IDF is near 0. They get almost no weight.
Uses: search engines rank pages by TF-IDF. It also picks keywords from a text. It turns documents into vectors for classification and clustering.
Two documents can be compared by the cosine similarity of their TF-IDF vectors.
Word
TF in doc
df (of 1000 docs)
IDF = log10(N/df)
TF-IDF
hadoop
3/100 = 0.03
10
2
0.06
data
5/100 = 0.05
500
0.30
0.015
the
8/100 = 0.08
1000
0
0
Example.
A document has 100 words. The word hadoop appears 3 times, so TF = 0.03. Out of 1000 documents only 10 contain hadoop, so IDF = log10(1000 / 10) = 2. TF-IDF = 0.03 × 2 = 0.06. The word the appears more often but its TF-IDF is 0, because it is in every document.
Real-life example
When you search 'RGPV data analytics notes', the search engine gives less weight to 'notes', which is in millions of pages. It gives more weight to 'RGPV', which is rare. That is TF-IDF at work.
Figure: computing TF-IDF for one word
Same or opposite: TF and IDF
Point
TF
IDF
Same or opposite
Measures
How often a word is in one document
How rare a word is across documents
Opposite
Common word like 'the'
High
Low
Opposite
Formula
count / total words
log(N / documents with the word)
Opposite
Part of the TF-IDF weight
Yes
Yes
Same
Exam tip. Write all three formulas and say what N and df mean. A small table like the one above shows the idea better than a long paragraph. Any log base is fine if you use it all through. Base 10 is the usual choice in exams.
Q8. HDFS architecture, daemons, file read and write
Asked 4 times in 2020, 2023, 2025 · Unit 4
From the papers
“Explain anatomy of HDFS file read and write.” (2025)
“Explain HDFS Daemons.” (2025)
“Describe the structure of HDFS in a Hadoop ecosystem using a diagram.” (2023)
The short answer
HDFS is the distributed file system of Hadoop. It stores very large files as blocks spread over many machines, with copies of each block so that data survives a machine failure.
Write these points
Master and slave design: one NameNode (master) and many DataNodes (slaves). Blocks are 128 MB with 3 copies each.
NameNode: keeps the file tree and the map from each file to its blocks and DataNodes, in the fsimage and edit log. It holds no data.
DataNode: stores the blocks on its disk. It sends a heartbeat every 3 seconds and a block report. If heartbeats stop, its blocks are copied again elsewhere.
Secondary NameNode: merges the fsimage with the edit log from time to time (a checkpoint). It is not a live backup of the NameNode.
Write: the NameNode gives the client three DataNodes. The client sends packets to the first, which passes them on to the second and third in a pipeline. Acknowledgements flow back.
Read: the client gets the block locations from the NameNode. It reads each block straight from the nearest DataNode.
Example.
A 300 MB file becomes blocks of 128 MB, 128 MB and 44 MB. With 3 copies the cluster holds 9 blocks.
Real-life example
A big movie file is cut into 128 MB blocks and spread over many machines, each block kept three times. If one machine dies, the movie can still be read from the other copies.
The NameNode keeps only metadata. Blocks B1, B2 and B3 each live on three DataNodes.
Same or opposite: NameNode and DataNode
Point
NameNode
DataNode
Same or opposite
Stores
Metadata, block locations
Actual data blocks
Opposite
Number in a cluster
One active
Many
Opposite
Sends heartbeat
No, receives them
Yes
Opposite
Runs as an HDFS daemon
Yes
Yes
Same
Exam tip. Draw the NameNode on top and DataNodes below with the same block on three nodes. Many students call the Secondary NameNode a backup. Write that it only makes checkpoints. For read and write, number the steps. Mention the pipeline in the write path.
“Explain the concept of metastore in Hive.” (2020, 2023)
“Short note: Metastore in Hive.” (2020, 2023)
The short answer
The metastore is the central store of metadata in Hive. It keeps the details about every database, table and partition, so that Hive knows how to read the plain files in HDFS as tables.
Write these points
It stores table names, column names and types, the HDFS location of each table, partitions, the file format and the SerDe used to read rows.
The data files in HDFS carry no schema. Hive applies the schema from the metastore at read time (schema on read).
The metadata lives in a relational database: Derby by default, MySQL or PostgreSQL in real clusters.
The metastore service gives a Thrift API. The compiler uses it to check a query and plan it.
Embedded mode: the metastore and a Derby database run inside the Hive JVM. Only one user can connect, so it is for testing.
Local mode: the metastore runs in the Hive JVM but the database (MySQL) is a separate process, so many users can work.
Remote mode: the metastore runs as its own server. Hive and other tools (Spark SQL, Impala, Pig through HCatalog) connect to it over Thrift. This is safest for production.
Example.
For the table emp(id INT, name STRING) stored at /user/hive/warehouse/emp, the metastore keeps the two columns, their types, the folder path and the text file format. The query SELECT name FROM emp uses this to find and read the files.
Real-life example
A library catalogue does not hold the books. It tells you where each book is and what it is about. The Hive metastore holds table names, columns and HDFS paths in the same way.
The three modes differ in where the metastore and its database run.
Same or opposite: embedded and remote metastore
Point
Embedded
Remote
Same or opposite
Database
Derby inside Hive
MySQL or similar on its own server
Opposite
Users at once
One
Many
Opposite
Used for
Testing
Production
Opposite
Stores table metadata
Yes
Yes
Same
Exam tip. Write what it stores and where it stores it, then add the three modes, which covers a short note. Draw the three modes side by side if the question asks you to explain. Dropping a managed table removes both metadata and data, while dropping an external table removes only the metadata.
“Short note: Information Management.” (2020, 2023)
The short answer
Information management is the planned handling of information through its whole life: how it is collected, stored, organised, protected, used and finally archived or deleted. Its aim is that the right person gets correct data at the right time.
Write these points
Capture: data comes in from forms, sensors, logs, files and other systems.
Storage: data is kept in databases, data warehouses or a Hadoop data lake, chosen by size and use.
Metadata management: records what each data set holds, where it came from and who owns it, so people can find and trust it.
Data quality: rules to remove duplicates, fill or flag missing values and correct errors.
Data governance and security: policies on who may see or change data, with access control, encryption and audit logs. Laws on privacy must be followed.
Master data management keeps one correct copy of core records such as customers and products across all systems.
Retention: old data is archived to cheap storage or deleted when the law or the business no longer needs it.
Example.
A hospital captures patient records at the desk and stores them in a database. It tags each record with the doctor and department. Only the treating doctor can open the record. After the legal period the record is archived.
Real-life example
A hospital collects patient records, stores them safely and lets doctors see them when needed. After the legal period it archives or deletes them. That whole life is information management.
Information moves through these stages in a loop. Governance applies at every stage.
Same or opposite: data and information
Point
Data
Information
Same or opposite
Meaning
Raw facts
Processed, useful facts
Opposite
Example
72, 120/80
Patient's pulse and BP are normal
Opposite
Helps decisions
Not directly
Yes
Opposite
Must be stored and protected
Yes
Yes
Same
Exam tip. Write the life cycle as stages and draw the circle. It gives a wide topic a clear shape. Link it to big data: more volume and variety make governance and metadata harder. Mention security and privacy. Examiners look for both in this short note.
Q11. Apache Spark and why it is faster than MapReduce
Asked 3 times in 2020, 2025 · Unit 4
From the papers
“Explain the five layer architecture for running applications using spark stack.” (2025)
“Justify: SPARK is faster than Map reduce.” (2020)
“Short note: SPARK.” (2020)
The short answer
Apache Spark is an open source engine for fast processing of large data on a cluster. It keeps data in memory between steps as RDDs (resilient distributed datasets), while MapReduce writes to disk after every step.
Write these points
In-memory processing: the result of one step stays in RAM for the next one. MapReduce writes each middle result to HDFS and reads it back, which is slow disk work.
DAG execution: Spark plans the whole job as one graph of stages and optimises it. MapReduce runs a chain of separate map and reduce jobs.
Lazy evaluation: map and filter only build the plan. Work starts at an action such as count. A lost part is rebuilt from this plan (lineage).
Machine learning jobs read the same data many times. Spark caches it once, so it gains the most there.
Spark stack, from the bottom: storage (HDFS), a cluster manager (YARN, Mesos or Standalone), Spark Core, the libraries (Spark SQL, Streaming, MLlib, GraphX) and the user application.
Point
MapReduce
Spark
Middle results
Written to disk
Kept in memory
Job plan
Map then reduce only
DAG of many stages
Speed
Slower
Up to 100x in memory (Apache figure)
Best for
Large one-pass batch jobs
Iterative, interactive and stream jobs
Ten passes over the same data.
A machine learning job reads 100 GB ten times.
MapReduce reads the 100 GB from disk on every pass: 1 TB of disk reads in all.
Spark reads it once, then keeps it in memory with cache(). Disk reads fall to 100 GB.
Word count in Spark: sc.textFile("in.txt").flatMap(lambda l: l.split())
.map(lambda w: (w, 1)).reduceByKey(lambda a, b: a + b) gives the same counts as the MapReduce program.
Real-life example
Netflix and Uber use Spark to study data quickly, for example to update suggestions. Spark keeps working data in memory, so repeated steps do not read from disk each time.
MapReduce goes to disk between steps. Spark passes data in memory.
Same or opposite: Spark and MapReduce
Point
Spark
MapReduce
Same or opposite
Keeps data between steps
In memory
On disk
Opposite
Speed
Up to 100 times faster in memory
Slower
Opposite
Streaming and ML libraries
Built in
Separate tools
Opposite
Processes data in parallel on a cluster
Yes
Yes
Same
Exam tip. To justify the statement, give reasons along with the 100x figure. In-memory work and the DAG plan are the main two. Mention that Spark can run on YARN and read data from HDFS. Draw the two pipelines side by side. The picture makes the disk point clear at once.
“Differentiate between Regression and ANOVA.” (2023)
“Short note: Regression ANOVA.” (2020)
The short answer
Regression finds an equation that predicts one variable (y) from another (x). ANOVA (analysis of variance) tests whether the means of three or more groups differ, by splitting the total variation into parts.
Write these points
Linear regression fits y = a + bx by least squares, which makes Σ(y − ŷ)² as small as possible.
Slope b = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)². Intercept a = ȳ − b x̄. The slope tells how much y changes when x goes up by 1.
One-way ANOVA splits the total sum of squares: SST = SSB (between groups) + SSW (within groups).
MSB = SSB / (k − 1) and MSW = SSW / (N − k), where k is the number of groups and N the number of values. F = MSB / MSW. If F is above the table value, reject H0 (all means equal).
Regression ANOVA uses the same idea for a fitted line: SST = SSR + SSE.
F = MSR / MSE with 1 and n − 2 degrees of freedom. R² = SSR / SST is the share of variation the line explains.
Point
Regression
ANOVA
Purpose
Predict y from x
Compare means of groups
Variable x
Numeric
Category (group)
Example.
x = 1, 2, 3, 4, 5 and y = 2, 4, 5, 4, 5, so x̄ = 3 and ȳ = 4. Σ(x − x̄)(y − ȳ) = 6 and Σ(x − x̄)² = 10, so b = 0.6 and a = 4 − 1.8 = 2.2. The line is y = 2.2 + 0.6x. SST = 6, SSR = b × 6 = 3.6 and SSE = 2.4. So R² = 0.6 and F = 3.6 / (2.4 / 3) = 4.5.
Real-life example
A company predicts next month's sales from its advertising spend using regression. It uses ANOVA to test whether three ad campaigns gave really different average sales.
Least squares line for the worked example. The dashed lines are the errors it keeps small.
Same or opposite: regression and ANOVA
Point
Regression
ANOVA
Same or opposite
Question
How does y change with x?
Do group means differ?
Opposite
Output
Equation y = a + bx
F value
Opposite
x variable
Numeric
Groups
Opposite
Statistical method
Yes
Yes
Same
Exam tip. Write the formulas first, then a table of x, y and the deviations. In ANOVA state H0 and H1 before you work out F. The decision line carries a mark. Do not mix the two: regression needs a numeric x, while one-way ANOVA needs groups.
The goals of HDFS are the design aims Apache set for it. HDFS must store huge files safely on cheap machines and serve them fast to batch jobs.
Write these points
Handle hardware failure: a big cluster has thousands of machines, so some part is always failing. HDFS must detect faults and recover quickly by itself.
Streaming data access: jobs read whole files from start to end. HDFS is built for high throughput on these long reads. A single small read may wait a little.
Large data sets: single files of gigabytes to terabytes, with millions of files in one cluster.
Simple coherency model: write once, read many. A file is not changed in place after it is closed (appends are allowed), which keeps copies consistent.
Moving computation is cheaper than moving data: the task runs on the node that holds the block, so little data crosses the network.
Portability: it runs on many kinds of hardware and operating systems because it is written in Java.
Scalability: more storage and speed come by adding more DataNodes.
The goals in numbers.
Hardware failure: 1,000 machines that each fail about once in 1,000 days give about one failure a day. Three copies of each block keep the data safe.
Large files: a 10 GB file is only 80 blocks of 128 MB, so the NameNode tracks 80 entries.
Small files hurt: 10 million files of 1 KB need about 20 million objects of 150 bytes each, roughly 3 GB of NameNode memory.
Moving computation: a 128 MB block is processed on its own DataNode, so 128 MB does not cross the network.
Real-life example
Indian Railways stores years of ticket data. The goals of HDFS match that need. Files are huge. Cheap machines may fail. The same data is read many times for reports.
Figure: goals of HDFS
Same or opposite: HDFS and a normal file system
Point
HDFS
Normal file system
Same or opposite
Block size
128 MB
4 KB
Opposite
Copies of data
3 by default
1
Opposite
Spread over machines
Yes
No
Opposite
Stores files in a tree of folders
Yes
Yes
Same
Exam tip. Write each goal as a short heading and one line of meaning. Six or seven goals are enough. Data locality (moving computation to data) is the goal examiners most expect. Do not leave it out. If time allows, add one line on how HDFS meets each goal, such as replication for failure.
“Explain any three Hive QL DDL commands with syntax and example.” (2020, 2023)
The short answer
HiveQL DDL (data definition language) commands create, change and remove databases and tables in Hive. They change only the structure kept in the metastore, not the rows.
Write these points
CREATE DATABASE: makes a new database. Syntax: CREATE DATABASE [IF NOT EXISTS] db_name; Example: CREATE DATABASE IF NOT EXISTS college;
CREATE TABLE: makes a table with columns, row format and file format. Example: CREATE TABLE emp (id INT, name STRING, salary FLOAT) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE;
CREATE EXTERNAL TABLE ... LOCATION '/data/emp' makes a table on files that already exist. Dropping it leaves the files in place.
ALTER TABLE: changes a table. Examples: ALTER TABLE emp RENAME TO employee; ALTER TABLE employee ADD COLUMNS (dept STRING);
DROP TABLE: removes a table. Syntax: DROP TABLE [IF EXISTS] table_name; For a managed table the data files are deleted too.
TRUNCATE TABLE emp; removes all rows but keeps the table.
SHOW TABLES; and DESCRIBE emp; list the tables and show the columns of one table.
Command
What it does
CREATE
New database or table
ALTER
Rename, add or change columns
DROP
Remove database or table
TRUNCATE
Delete all rows, keep table
SHOW / DESCRIBE
List tables, show schema
A full DDL session.
CREATE DATABASE college; USE college;
CREATE TABLE student (roll INT, name STRING, marks INT) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',';
ALTER TABLE student ADD COLUMNS (city STRING); After it, DESCRIBE student lists 4 columns.
ALTER TABLE student RENAME TO pupil; then DROP TABLE pupil; removes the table. As it is managed, its data files go too.
Real-life example
Before a college loads its result data into Hive, it runs CREATE DATABASE and CREATE TABLE once. Later it uses ALTER TABLE to add a new column for the new grading scheme.
Figure: a typical HiveQL DDL sequence
Same or opposite: managed and external table
Point
Managed table
External table
Same or opposite
Data location
Hive warehouse folder
Any HDFS path
Opposite
DROP TABLE removes
Data and metadata
Metadata only
Opposite
Created with
CREATE TABLE
CREATE EXTERNAL TABLE
Opposite
Queried with HiveQL
Yes
Yes
Same
Exam tip. For each command give the general syntax first and then one example. The question asks for both. End every HiveQL statement with a semicolon. Know the difference between managed and external tables. It is a common follow-up.
“Explain the Indexing and Aggregation for Mongo DB.” (2023)
“Explain following for Mongo DB: i) Indexing ii) Aggregation.” (2020)
The short answer
An index in MongoDB is a sorted structure on one or more fields that lets a query find documents without scanning the whole collection. Aggregation processes the documents of a collection in stages and returns computed results such as totals and averages.
Write these points
Every collection has a default unique index on _id.
Create an index: db.students.createIndex({ name: 1 }); where 1 means ascending and -1 means descending. List them with getIndexes() and remove one with dropIndex().
Index types: single field, compound ({ dept: 1, age: -1 }), multikey (on array fields), text (word search), geospatial (2dsphere) and hashed (for sharding).
Indexes make reads fast but slow down inserts and updates. They also use extra space. Use explain() to check that a query uses the index.
Aggregation pipeline: db.collection.aggregate([ stage1, stage2, ... ]). The output of one stage is the input of the next.
Common stages: $match (filter), $group (group and compute with $sum, $avg, $max), $project (choose fields), $sort, $limit, $unwind (split an array) and $lookup (join with another collection).
Single purpose methods count() and distinct() also aggregate, for simple needs.
Example.
db.orders.aggregate([ { $match: { status: "A" } },
It keeps only orders with status A, adds up the amount for each customer and lists the biggest buyer first.
Real-life example
A food app looks up restaurants by city thousands of times a second. An index on the city field makes that fast. An aggregation pipeline then finds average ratings per city for the dashboard.
Documents flow through $match, $group and $sort. An index on the filter field speeds up $match.
Same or opposite: find() and aggregate()
Point
find()
aggregate()
Same or opposite
Returns
Matching documents
Computed results
Opposite
Stages
One query
A pipeline: $match, $group, $sort
Opposite
Can use indexes
Yes
Yes
Same
Example
Restaurants in Pune
Average rating per city
Opposite
Exam tip. Give one command for indexing and one aggregate() pipeline. Code earns marks here. Put $match first in a pipeline so that fewer documents reach the later stages. Write one drawback of indexes: slower writes and more storage.
RGPV teaches Data Analytics to 3 branches under one syllabus. Each branch prints its own code on the paper, but the units are the same. So one page and one PDF serve all of them.
We counted every question in the Data Analytics papers on this site by topic, from 2020 to 2025. A topic that keeps coming back is a topic RGPV likes, so it sits higher in the table. One branch alone has only a few papers. Counting them together gives a surer list.
Data Analytics important questions by branch
CS-503-AData Analytics important questions for CSE, Semester 5
CS-503-A follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the CS-503-A important questions too.
Data Analytics (CS-503 A) is an elective in Semester 5 of RGPV B.Tech CSE. It begins with basic statistics, then moves to big data and the Hadoop tools used to process it. The five units combine theory with tools, so install and try Pig and Hive if you can.
Data Analytics unit-wise brief
Unit 1: Descriptive statistics
This unit covers descriptive statistics, probability distributions, and inferential statistics through hypothesis tests. It then covers regression and ANOVA (analysis of variance). Learn when to use each test.
Unit 2: Introduction to big data
Here you learn what big data is, why it matters and its four V's, the drivers behind it and its applications. You also meet the technologies around it: Hadoop, open source tools, cloud, predictive analytics and mobile business intelligence. Be able to explain the four V's with an example each.
Unit 3: Processing big data
This unit covers how data is prepared for processing: integrating different data stores, mapping data to a programming framework, extracting it from storage, transforming it and dividing it up for Hadoop MapReduce. Follow one dataset through these steps.
Unit 4: Hadoop MapReduce
MapReduce splits a job across many machines. The unit covers creating and running MapReduce jobs, monitoring them, the Hadoop daemons, the Hadoop Distributed File System, and the local, pseudo-distributed and fully distributed modes. Trace a word count job to see the map and reduce stages.
Unit 5: Big data tools and techniques
The last unit covers installing and running Pig and its Pig Latin language, Hive and its query language HiveQL, user defined functions, comparing these tools with databases, and Oracle Big Data. Write a short query in both Pig and Hive.
Units follow the RGPV scheme and syllabus, B.Tech Computer Science and Engineering, Semester 5 (AICTE flexible curriculum, w.e.f. July 2019). For the full topic list of each unit, open the Data Analytics notes.
What are the most important topics in Data Analytics?
By how often they were asked in the papers on this site: Big Data and its characteristics (the 4 V's) (5 times); Hadoop architecture, core components and ecosystem (5 times); MapReduce programming model and the word count program (5 times); Apache Pig and Pig Latin: why we need it, Pig vs MapReduce (5 times); Hive architecture, features and working (5 times).
How were these Data Analytics important questions chosen?
Each topic was counted from the questions in the past papers listed on this site (2020-2025). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Data Analytics important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Data Analytics is free to download from this page.
The 15 most repeated topics of Data Analytics (CS-503-A) for RGPV B.Tech CSE semester 5, counted from the previous year papers on this site. The same syllabus is taught under 3 codes: CS-503-A, IO-504-A, CE-803-B.