Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.
Big Data 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. Characteristics of big data (the V's)
Asked 6 times in 2020, 2022, 2023, 2024, 2025 · Unit 1
From the papers
“Describe any five characteristics of Big Data.” (2020, 2023)
“Define Big Data. Discuss different characteristics of big data in detail.” (2025)
“Explain the concept of data veracity in the context of Big Data and discuss its implications for data analysis and decision-making.” (2025)
The short answer
Big data is data that is too large, too fast or too mixed for a normal database on one machine to store and process in time. We describe it with its V's.
Write these points
Volume: the amount of data. It runs into terabytes and petabytes. A bank stores every card swipe for years. A social site stores billions of photos.
Velocity: the speed at which data arrives and must be handled. UPI payments, stock prices and sensor readings come in every second.
Variety: the many forms of data. Structured data sits in tables. Semi-structured data comes as JSON, XML or log lines. Unstructured data is text, images, audio and video.
Veracity: how far we can trust the data. Sensors drop readings, people type wrong values and fake reviews creep in. Bad data gives wrong reports, so we clean it, check its source and mark doubtful values before analysis.
Value: the useful result we get from the data. Data that never helps a decision is only a storage bill.
Variability: the flow and meaning of data change. Orders jump on a sale day. The word "cool" means cold weather in one post and good in another.
Example.
An online shop shows all six. It keeps years of orders (volume) while clicks stream in every second (velocity). It holds tables, product photos and review text (variety). Some reviews are fake (veracity) and festival sales spike the load (variability). The shop studies all of it to recommend products and plan stock (value).
Real-life example
Instagram users upload millions of photos and videos a day. Likes and comments stream in every second. Some accounts are fake. The platform still finds value by showing each user the posts they are most likely to like.
Figure: the V's of big data
Same or opposite: volume and variety
Point
Volume
Variety
Same or opposite
Meaning
How much data
How many forms of data
Opposite
Example
Petabytes of photos
Tables, JSON, images, video
Opposite
Tool that helps
HDFS
NoSQL stores
Opposite
One of the V's
Yes
Yes
Same
Exam tip. Write at least five V's with one real example each, since a list of names alone gets few marks. Draw the V's around a centre box. It takes one minute and the examiner sees the full set at a glance. Veracity is about trust in the data, so do not mix it up with velocity.
Asked 6 times in 2020, 2022, 2023, 2024, 2025 · Unit 1
From the papers
“List out the challenges in handling big data.” (2020, 2022)
“What are the major challenges with the big data? Explain.” (2025)
“Identify and discuss the main challenges associated with Big Data.” (2024)
The short answer
The challenges of big data are the problems we meet when we capture, store, process, protect and use data at this scale. Each V brings its own problem.
Write these points
Storage: data grows faster than one disk or one server can hold. We need distributed storage such as HDFS. Its cost keeps rising.
Processing speed: one machine cannot scan petabytes in time. The work has to run in parallel on a cluster.
Data quality: data from many sources has duplicates, missing values and clashes. Cleaning it takes a large share of project time.
Integration: logs, tables, JSON and images must be joined into one view. Each source has its own format and update speed.
Security and privacy: big data holds personal details. We need access control, encryption and masking. India's Digital Personal Data Protection Act 2023 sets legal duties.
Real-time analysis: fraud checks and traffic alerts need answers in seconds. Batch jobs are too slow for them.
People and cost: few people know Hadoop, Spark and data science well. The cluster, tools and staff cost money before any value comes back.
Challenge
What helps
Storage at scale
HDFS, cloud object storage
Slow processing
MapReduce, Spark on a cluster
Mixed formats
NoSQL stores, ETL with Pig or Hive
Bad data
Cleaning rules, validation, data lineage
Privacy
Access control, encryption, masking
Streaming data
Kafka, Spark Streaming
Challenges for a city traffic system.
A city collects GPS points from 50,000 buses and cabs every 10 seconds. That is about 430 million points a day.
Storage: one server cannot hold years of points, so the data must be spread over a cluster.
Speed: jam alerts are useless after 10 minutes, so the data must be processed as it arrives.
Quality: some GPS units send wrong positions. Privacy: cab trips show where people live, so names must be removed.
Real-life example
Aadhaar holds details of more than a hundred crore people. Storing it safely, checking millions of requests a day and keeping it private are all big data challenges at national scale.
Figure: challenges of big data
Same or opposite: storage and processing challenge
Point
Storage
Processing
Same or opposite
Problem
Data grows past one machine
One machine is too slow
Opposite
What helps
HDFS, cloud storage
MapReduce, Spark
Opposite
Solved by a cluster
Yes
Yes
Same
Cost grows with data
Yes
Yes
Same
Exam tip. Give each challenge a one line reason and a tool that helps. That pairing earns the marks. Link the challenges to the V's in your opening line. It shows the examiner you see the pattern. Seven challenges with short notes are better than three long paragraphs.
Asked 5 times in 2020, 2022, 2023, 2024, 2025 · Unit 2
From the papers
“Describe the physical architecture of Hive, focusing on its components and their interactions within a Hadoop ecosystem.” (2025)
“Explain working of Hive with proper steps and diagram.” (2024)
“What is Hive meta store? Which classes are used by the Hive to Read and write HDFS files? Explain.” (2023)
The short answer
Apache Hive is a data warehouse tool on top of Hadoop. Users write SQL-like HiveQL, which Hive turns into MapReduce, Tez or Spark jobs over files in HDFS.
Write these points
User interfaces: the CLI or Beeline, a web UI such as Hue or JDBC and ODBC programs that connect through HiveServer2.
Driver: receives the query, opens a session and controls the query from start to end.
Compiler: parses the query, checks tables and columns against the metastore and builds an execution plan, a DAG of stages.
Optimizer: improves the plan, for example by pushing filters down, skipping unused partitions and choosing a map-side join.
Execution engine: runs the stages on the cluster through YARN and collects the result.
Metastore: stores the schema of every table: columns, types, partitions, HDFS location and the SerDe. It sits in a relational database, Derby by default or MySQL in real clusters.
Classes for HDFS files: an InputFormat (such as TextInputFormat) reads records and a Deserializer turns them into rows. On write, a Serializer turns rows into bytes and an OutputFormat writes them. Serializer plus Deserializer is the SerDe, for example LazySimpleSerDe.
Steps
The UI sends the query to the driver (execute query).
The driver asks the compiler for a plan. The compiler gets the table details from the metastore.
The compiler returns the plan. The driver hands it to the execution engine.
The engine runs the jobs on Hadoop. The jobs read and write data in HDFS.
The result goes back through the driver to the user.
How one HiveQL query runs.
Query: SELECT city, SUM(amount) FROM sales GROUP BY city;
1. The driver receives the query. The compiler checks the table sales in the metastore and finds its HDFS folder.
2. The optimizer makes a plan: a map step that reads rows and emits (city, amount), then a reduce step that sums by city.
3. The execution engine runs the job on the cluster. The driver returns one total per city to the user.
Real-life example
A telecom company stores call records in HDFS. Its analysts write HiveQL to find which towers drop the most calls. Hive turns each query into cluster jobs, so they never write Java.
Figure: Hive architecture, from HiveQL to jobs on HDFSFigure: how Hive runs a query
Same or opposite: Hive and Pig
Point
Hive
Pig
Same or opposite
Language
HiveQL, like SQL
Pig Latin, data flow
Opposite
Used by
Analysts who know SQL
Programmers, ETL work
Opposite
Schema
Stored in the metastore
Given in the script
Opposite
Runs on Hadoop
Yes
Yes
Same
Exam tip. Draw the block diagram with numbered arrows. The 2024 paper asked for "steps and diagram" together. Remember that Hive keeps only metadata in the metastore. The table data stays in HDFS. Name the SerDe when asked how Hive reads and writes files.
Q4. HDFS architecture, features, file write and read
Asked 9 times in 2022, 2023, 2024, 2025 · Unit 2
From the papers
“Draw HDFS architecture. Explain any two commands of HDFS with syntax and at least one example of each.” (2025)
“Explain the key features and architecture of Hadoop Distributed File System.” (2025)
“Define HDFS. Describe namenode, datanode and block. Explain HDFS operations in detail.” (2025)
The short answer
HDFS (Hadoop Distributed File System) is the storage layer of Hadoop. It cuts a large file into blocks of 128 MB (the default in Hadoop 2 and 3) and keeps copies of each block on different machines.
Write these points
NameNode (master): keeps the namespace (files, folders, permissions) and the list of blocks of each file with the DataNodes that hold them. It keeps this metadata in RAM and saves it on disk as the fsimage plus an edit log.
DataNode (worker): stores the real blocks on its local disk. It sends a heartbeat every 3 seconds and a block report to the NameNode.
Secondary NameNode: merges the edit log into the fsimage from time to time (a checkpoint). It is a helper. It does not take over if the NameNode fails.
Replication: each block has 3 copies by default. Rack awareness puts one copy on the writer's node and two on nodes in another rack, so a whole rack can fail without data loss.
Reliability: if a DataNode stops sending heartbeats for about 10 minutes, the NameNode marks it dead and copies its blocks again from the other replicas. Checksums catch corrupt blocks.
Features: runs on cheap commodity machines, fault tolerant, high throughput for large sequential reads, write once and read many times. Computation moves to the node that holds the data.
Command
What it does
hdfs dfs -mkdir /data
Make a folder in HDFS
hdfs dfs -put sales.csv /data
Copy a local file into HDFS
hdfs dfs -ls /data
List files with size and replication
hdfs dfs -cat /data/sales.csv
Print a file
hdfs dfs -get /data/sales.csv .
Copy a file back to local disk
Steps
Write: the client asks the NameNode to create the file. The NameNode checks permissions and gives a list of DataNodes for each block.
The client sends the block to the first DataNode. It passes the data to the second and the second to the third (a pipeline). Acknowledgements flow back along the same pipeline.
Read: the client asks the NameNode for the block locations. It then reads each block straight from the nearest DataNode. Data never flows through the NameNode.
Example.
A 300 MB file becomes 3 blocks: 128 MB, 128 MB and 44 MB. With replication 3 the cluster stores 9 block copies, about 900 MB in all. The last block uses only 44 MB of disk.
Real-life example
A hospital keeps scans for years. HDFS splits each large file into blocks and stores three copies on different machines. If one disk fails, the scan is still read from another copy.
Figure: HDFS, one NameNode and DataNodes that hold each block three timesFigure: writing a file to HDFS
Same or opposite: HDFS write and HDFS read
Point
Write
Read
Same or opposite
Client first contacts
NameNode
NameNode
Same
Data goes
Through a pipeline of DataNodes
From the nearest DataNode
Opposite
Copies made
3 by default
None
Opposite
NameNode handles the data itself
No
No
Same
Exam tip. Draw the NameNode, at least three DataNodes and the block copies. The diagram carries most of the marks. Say clearly that the Secondary NameNode is not a backup NameNode. Many students get this wrong. When the question asks for commands, write the full syntax with a path, as in the table.
Q5. Types of NoSQL databases and data architecture patterns
Asked 8 times in 2020, 2022, 2024, 2025 · Unit 4
From the papers
“Explain in brief various types of NoSQL databases in practice.” (2025)
“Explain the term: Data architectural patterns” (2025)
“List and explain the various architectural patterns to manage big data.” (2025)
The short answer
NoSQL databases come in four main types, named after how they store data: key-value, document, column-family and graph. These four storage shapes are the NoSQL data architecture patterns.
Write these points
Key-value store: every item is a unique key and a value the database does not look inside. Lookup by key is very fast. Examples: Redis, Amazon DynamoDB, Riak. Used for sessions, carts and caches.
Document store: the value is a JSON or BSON document with its own fields, so we can query on any field. Examples: MongoDB, CouchDB. Used for catalogs, profiles and content.
Column-family store: each row has a row key and columns grouped into families. Rows can have different columns and empty cells take no space. Examples: HBase, Cassandra. Used for logs, time series and huge sparse tables.
Graph store: data is nodes and edges, both with properties. A join becomes a walk along edges. Example: Neo4j. Used for social networks, fraud rings and recommendations.
Variations: each pattern can run in RAM only or on disk with a RAM cache, on one server or sharded over a cluster, with or without replicas. Big data systems pick the variation that fits their load.
Using NoSQL to manage big data: shard data by key over many nodes and keep replicas for failures. Move the query to the data and accept eventual consistency where it is safe.
Type
Data looks like
Example
Best for
Key-value
key to value
Redis
Cache, sessions
Document
JSON document
MongoDB
Catalogs, profiles
Column-family
row key, column families
HBase
Logs, time series
Graph
nodes and edges
Neo4j
Social, fraud
Picking a NoSQL type for each need.
Shopping cart of each user, read by user id: key-value store such as Redis.
Product pages with different fields per product: document store such as MongoDB.
Billions of sensor readings written every second: column family store such as Cassandra.
"Friends of friends who bought this": graph store such as Neo4j.
Real-life example
A food delivery app often uses several NoSQL types at once. Login sessions sit in Redis, a key-value store. Menus sit in MongoDB, a document store. Order history goes to Cassandra, a column family store. The "people who ordered this also ordered" links live in Neo4j, a graph store.
Figure: types of NoSQL databases
Same or opposite: key-value and document store
Point
Key-value
Document
Same or opposite
Value seen by the database
Opaque blob
JSON with fields
Opposite
Query on a field inside
No
Yes
Opposite
Example
Redis, DynamoDB
MongoDB, CouchDB
Opposite
Schema-free NoSQL
Yes
Yes
Same
Exam tip. Give all four types with one product and one use each. A small sketch of each type adds marks. "Architectural patterns" and "types of NoSQL" are the same answer in RGPV papers. Do not call HBase a document store. It is a column-family store.
Q6. What is NoSQL? Features, advantages and NoSQL vs RDBMS
Asked 8 times in 2022, 2023, 2024, 2025 · Unit 4
From the papers
“Discuss key characteristics and advantages of NoSQL database.” (2023, 2024)
“What is NoSQL database? List the differences between NoSQL and relational databases.” (2025)
“Give a brief note on the storage structure of NoSQL and SQL.” (2025)
The short answer
NoSQL ("not only SQL") is a family of non-relational databases with no fixed table schema. They grow by adding servers and were built for the volume, speed and variety of big data.
Write these points
Flexible schema: two records in the same collection can have different fields. New fields need no ALTER TABLE.
Horizontal scaling: data is split (sharded) across many cheap servers. An RDBMS usually needs a bigger server instead.
Replication: copies on several nodes keep the system up when a node fails.
BASE model: Basically Available, Soft state, Eventually consistent. By the CAP theorem, during a network split a distributed store must choose consistency or availability. Many NoSQL stores choose availability.
Storage structure: an RDBMS spreads one customer over normalised tables and joins them at query time. A NoSQL store keeps the whole aggregate (the customer with orders) together as one document or row, so one read fetches it.
Why it helps big data: it takes unstructured and semi-structured data. It handles very high write rates from logs and sensors. It scales to petabytes on commodity machines.
Point
RDBMS (SQL)
NoSQL
Data model
Tables of rows and columns
Key-value, document, column, graph
Schema
Fixed, defined first
Flexible, can change per record
Scaling
Vertical (bigger server)
Horizontal (more servers)
Consistency
ACID transactions
Mostly BASE, eventual
Query
SQL with joins
Own API, few joins
Examples
MySQL, Oracle
MongoDB, Cassandra, Redis
Storing a student with two phone numbers.
RDBMS: a students table and a phones table joined by roll number. Adding an email field means ALTER TABLE for every row.
NoSQL document: { roll: 21, name: "Asha", phones: ["98...", "97..."] }. A new field can be added to one student only.
When students grow from 10 thousand to 10 crore, the RDBMS needs a bigger server. The NoSQL store adds more servers instead.
Real-life example
A social app's post can have text, photos, polls or nothing at all. A fixed SQL table fits this badly. A NoSQL document store keeps each post as it is and scales across many servers.
Figure: BASE properties of NoSQL
Same or opposite: NoSQL and RDBMS
Point
NoSQL
RDBMS
Same or opposite
Schema
Flexible
Fixed tables
Opposite
Scaling
Out, add servers
Mostly up, bigger server
Opposite
Consistency
Often eventual (BASE)
Strong (ACID)
Opposite
Stores and queries data
Yes
Yes
Same
Exam tip. Expand BASE and ACID in full. Each expansion is a sure mark. A comparison table of five or six rows answers the "differentiate" part in one go. NoSQL means "not only SQL". Do not write "no SQL at all".
Q7. Hadoop core components, building blocks and ecosystem
Asked 7 times in 2020, 2022, 2024, 2025 · Unit 2
From the papers
“What is Hadoop Ecosystem? Discuss various components of Hadoop Ecosystem.” (2025)
“Discuss the important components of Hadoop architecture.” (2025)
“List the components of Hadoop, explain its use.” (2024)
The short answer
Hadoop is an open source Apache framework that stores and processes very large data on a cluster of cheap machines. Its core is Hadoop Common, HDFS, YARN and MapReduce, with an ecosystem of tools around it.
Write these points
Hadoop Common: the shared Java libraries and scripts every other part uses.
HDFS: the storage layer. It splits files into blocks and keeps three copies of each.
YARN (Yet Another Resource Negotiator): the resource manager. The ResourceManager hands out containers of CPU and memory. A NodeManager on each node runs them.
MapReduce: the processing model. Map tasks work on blocks in parallel and reduce tasks combine their results.
Building blocks (daemons): the master runs the NameNode, the Secondary NameNode and the ResourceManager. Each worker runs a DataNode and a NodeManager. In Hadoop 1 the JobTracker and TaskTrackers did the job of YARN.
How they work together: Sqoop or Flume brings data into HDFS. YARN gives resources. MapReduce, Spark, Hive or Pig process the data. Oozie schedules the jobs. Results go back to HDFS, HBase or a database.
Ecosystem tool
Job
Hive
SQL-like queries (HiveQL) on HDFS data
Pig
Data flow scripts in Pig Latin
HBase
Column-family NoSQL store on HDFS
Sqoop / Flume
Import from databases / stream in logs
Spark
Fast in-memory processing
Oozie / ZooKeeper
Job scheduling / cluster coordination
Mahout
Machine learning on Hadoop
Which Hadoop part does what for a 1 TB log file.
HDFS cuts the file into about 8,000 blocks of 128 MB and keeps 3 copies of each.
YARN gives containers on the cluster nodes to the job.
MapReduce runs about 8,000 map tasks, one per block, next to the data. A few reduce tasks add up the results.
Hadoop Common supplies the shared libraries that all of these use.
Real-life example
An e-commerce company uses Flume to collect logs, HDFS to store them, Hive to query them and Oozie to run the jobs every night. All of these belong to the Hadoop ecosystem.
Figure: the Hadoop stack, HDFS and YARN at the base and the ecosystem on topFigure: the Hadoop ecosystem
Same or opposite: HDFS and MapReduce
Point
HDFS
MapReduce
Same or opposite
Layer
Storage
Processing
Opposite
Master
NameNode
ResourceManager (YARN)
Opposite
Core part of Hadoop
Yes
Yes
Same
Works on blocks across many nodes
Yes
Yes
Same
Exam tip. Start with the four core parts, then the ecosystem tools. Examiners look for both. "Building blocks" means the daemons. Name all five and say which run on the master. A layered diagram (storage at the bottom, tools at the top) is worth drawing every time.
“What do you mean by social network mining? Write its applications.” (2020, 2025)
“Explain: Social Network Mining” (2023, 2024)
“What is social network mining, and how does it differ from traditional data mining?” (2025)
The short answer
Social network mining applies data mining and graph analysis to social network data, where people are nodes and links are edges. It finds groups, influential people and likely new links.
Write these points
Difference from traditional data mining: ordinary mining treats each record as a separate row in a table. Social network mining studies the links between records, so the graph itself is the data.
Main tasks: community detection, link prediction (who will connect next), finding influencers through centrality, spread of information and opinion mining of posts.
Friend suggestions: "People you may know" uses mutual friends and common groups to predict links.
Marketing: brands find influencers and close-knit groups for targeted and viral campaigns.
Recommendations: pages, groups, products and posts liked by friends are shown first.
Fraud and cyber attacks: fraud rings form tight clusters of accounts that share phones, devices or money flows. Fake accounts and bots show odd patterns, such as many new links with few mutual friends. Tracing how a phishing link spreads shows the source accounts.
Other uses: tracking news and rumours, studying the spread of disease, public opinion before elections, hiring on LinkedIn and mapping crime networks.
Example.
A bank links accounts that share a phone number or send money to each other. Five new accounts share one phone and pass money round in a loop. In the graph they form a closed cycle with no outside friends, so the bank flags them for review.
Real-life example
LinkedIn suggests 'People you may know' by mining who shares friends, colleges and companies with you. That is social network mining on a graph of millions of people.
Figure: applications of social network mining
Same or opposite: social network mining and normal data mining
Point
Social network mining
Normal data mining
Same or opposite
Data shape
Graph of nodes and links
Rows of a table
Opposite
Main question
Who is linked and how
Patterns in records
Opposite
Example task
Community detection
Market basket analysis
Opposite
Finds useful patterns
Yes
Yes
Same
Exam tip. Define it first, then give at least five applications with one line each. When asked how it differs from data mining, the answer is the links. Say it in the first line. One worked example, like the fraud ring, makes the answer stand out.
Q9. MapReduce: phases, mapper, combiner and reducer
Asked 6 times in 2020, 2023, 2024, 2025 · Unit 2
From the papers
“What is MapReduce programming? Where is it used and why?” (2020, 2025)
“What is MapReduce? Explain working of various phases of MapReduce with appropriate example and diagram.” (2025)
“Explain concept of Map Reduce using an example.” (2024)
The short answer
MapReduce is Hadoop's model for processing large data in parallel. A map function turns each record into (key, value) pairs, then a reduce function combines all values that share a key.
Write these points
Pseudocode for word count: map(offset, line): for each word w in line: emit(w, 1). reduce(w, counts): emit(w, sum(counts)).
Where it is used: log analysis, counting clicks, building search indexes, ETL jobs and large joins.
Why it is used: the code moves to the node that holds the data. The job scales by adding nodes. A failed task simply runs again on another node. The programmer writes only two functions.
Steps
Input split: the InputFormat cuts the input into splits (usually one per HDFS block). A RecordReader turns each split into records, for text files (byte offset, line).
Map: the mapper runs once per record and emits intermediate pairs. They go to the local disk of that node, not to HDFS.
Combiner (optional): a mini reducer on the same node. It adds up the mapper's output before it travels, which cuts network traffic. It only suits jobs like sum, count or max.
Partition: the partitioner picks the reducer for each key, by default hash(key) mod number of reducers.
Shuffle and sort: each reducer copies its pairs from all mappers. The pairs are sorted and grouped by key.
Reduce: reduce(key, list of values) runs once per key and writes the final output to HDFS.
Example.
Input line: "big data big". Map gives (big,1) (data,1) (big,1). The combiner gives (big,2) (data,1). After shuffle, the reducer for "big" gets (big,[2]) and writes big 2. The output is big 2 and data 1.
InputFormat and RecordReader decide how input is split and read.
Number of reducers is set by the job. It decides how many output files there are.
Real-life example
To count how often each hashtag was used in a day, each machine counts hashtags in its own share of posts. The counts for each hashtag are then sent to one reducer and added up.
Figure: word count in MapReduce, through map, shuffle and reduceFigure: phases of a MapReduce job
Same or opposite: combiner and reducer
Point
Combiner
Reducer
Same or opposite
Runs on
Mapper's node
Reducer node
Opposite
Required
No, optional
Yes
Opposite
Output goes to
Shuffle
HDFS
Opposite
Combines values of one key
Yes
Yes
Same
Exam tip. Write the phases in order and draw them, since most questions say "with diagram". Mention the combiner and the partitioner. They separate a full answer from a short one. Map output goes to local disk, while only the reducer output goes to HDFS.
“Explain the various Hive Data types with examples.” (2025)
“What are the different Hive data types? Explain them briefly.” (2024)
“Discuss the various data types in Pig.” (2022)
The short answer
Hive and Pig both work on data in Hadoop with simple types for single values and complex types for nested data. The type names look alike but differ.
Write these points
Hive ARRAY: an ordered list of one type, for example skills ARRAY<STRING>. Read one item with skills[0].
Hive MAP: key to value pairs, for example marks MAP<STRING,INT>. Read with marks['maths'].
Hive STRUCT: named fields of different types, for example addr STRUCT<city:STRING, pin:INT>. Read with addr.city. UNIONTYPE holds one value out of a set of types.
Pig tuple: an ordered set of fields, for example (101, 'Asha', 82). Pig bag: a collection of tuples that may repeat, for example {(101,'Asha'), (102,'Ravi')}. A relation is an outer bag.
Pig map: chararray keys with values of any type, for example ['city'#'Bhopal'].
Comparison: Hive needs the schema when the table is created. In Pig the schema is optional and a field with no type is a bytearray. Pig bags can nest inside tuples, which Hive cannot do in the same way. Both use NULL for missing values.
Kind
Hive
Pig
Whole numbers
TINYINT, SMALLINT, INT, BIGINT
int, long, biginteger
Decimals
FLOAT, DOUBLE, DECIMAL
float, double, bigdecimal
Text
STRING, VARCHAR, CHAR
chararray
Others
BOOLEAN, DATE, TIMESTAMP, BINARY
boolean, datetime, bytearray
Complex
ARRAY, MAP, STRUCT, UNIONTYPE
tuple, bag, map
Example.
Hive: CREATE TABLE student (name STRING, skills ARRAY<STRING>, marks MAP<STRING,INT>, addr STRUCT<city:STRING, pin:INT>); Pig: A = LOAD 'student' USING PigStorage(',') AS (name:chararray, age:int);
Real-life example
A customer table in Hive can hold a name as STRING, age as INT, phone numbers as ARRAY<STRING> and address as STRUCT. One row can store all of a customer's details.
Figure: data types in Hive
Same or opposite: Hive ARRAY and Pig bag
Point
Hive ARRAY
Pig bag
Same or opposite
Holds
Values of one type in order
A set of tuples
Opposite
Order kept
Yes
No
Opposite
Complex type
Yes
Yes
Same
Example
["a", "b"]
{(1,2), (3,4)}
Opposite
Exam tip. A side by side table answers the "compare" question fast. Add one line of syntax for each complex type. Write that the default type in Pig is bytearray, because it is often asked. Keep Hive type names in capitals and Pig type names in small letters.
Q11. MongoDB: features, storage, CRUD and sharding
Asked 6 times in 2020, 2022, 2024, 2025 · Unit 4
From the papers
“What is MongoDB? Explain in brief key features of MongoDB. Show basic CRUD operations in MongoDB with proper example.” (2025)
“Give a note on MongoDB. Discuss its data storage type in detail.” (2025)
“Discuss MongoDB features and what makes MongoDB suitable for a wide range of applications.” (2024)
The short answer
MongoDB is an open source document database. It stores data as BSON (binary JSON) documents grouped in collections, so one record can hold nested fields and arrays without a fixed schema.
Write these points
Storage: a database holds collections and a collection holds documents. Each document has a unique _id (an ObjectId by default). A document can be up to 16 MB. Larger files go into GridFS. The default storage engine, WiredTiger, compresses data on disk.
Features: flexible schema, rich queries, indexes (single, compound, text, geospatial), the aggregation pipeline and multi-document ACID transactions since version 4.0.
Replica set: one primary takes writes and secondaries copy it. If the primary fails, the secondaries elect a new primary on their own.
Sharding: a large collection is split into chunks by a shard key and spread over shards. The mongos router sends each query to the right shard. Config servers keep the chunk map. A balancer moves chunks to keep the shards even.
Suited to: product catalogs, content sites, mobile apps, IoT data and real-time analytics, where data changes shape often.
Many apps keep user profiles in MongoDB. A new field such as 'preferred language' can be added to some users without changing a table for everyone.
Figure: MongoDB sharding by a range of the shard keyFigure: a sharded MongoDB cluster
Same or opposite: MongoDB and MySQL
Point
MongoDB
MySQL
Same or opposite
Stores
Documents (BSON)
Rows in tables
Opposite
Schema
Flexible
Fixed
Opposite
Scaling across servers
Built-in sharding
Harder
Opposite
Supports indexes
Yes
Yes
Same
Exam tip. Write all four CRUD commands with the same small example. Examiners check the syntax. The term table (table is collection, row is document) is quick to draw and always earns marks. Students often forget BSON. Write it in the first line.
“Explain the role of recommender system in social network.” (2025)
“Discuss the types of recommendation approaches commonly used in recommender systems.” (2025)
The short answer
A recommender system predicts which items a user is likely to like and suggests them. It uses the user's past behaviour, details of the items or the choices of similar users.
Write these points
Data: a utility matrix with users as rows, items as columns and ratings (or clicks) in the cells. Most cells are empty. The system predicts the empty ones.
Content-based filtering: builds a profile from features of items the user liked, such as genre, actors or words (TF-IDF). It suggests similar items by cosine similarity. It works for new items but keeps suggesting the same kind.
Collaborative filtering: uses only the ratings. User-based: find users with similar ratings and suggest what they liked. Item-based: suggest items that the same users rated alike.
Problems: cold start (a new user or item has no ratings), sparsity of the matrix and scale with millions of users.
Hybrid systems combine both methods to cover each other's gaps. Knowledge-based and popularity-based methods help when there is no history.
Role in a social network: suggest friends (link prediction from mutual friends), groups, pages and posts. Likes from friends count for more than likes from strangers, since people trust their friends.
Point
Content-based
Collaborative
Uses
Item features
Ratings of many users
New item
Can recommend at once
Needs ratings first
New user
Needs a few likes
Needs a few ratings
Variety
Narrow, same kind
Can surprise the user
Example.
Asha and Ravi both gave 5 to Movie 1 and 4 to Movie 2, so their tastes match. Ravi also gave 5 to Movie 3, which Asha has not seen. User-based filtering recommends Movie 3 to Asha.
Real-life example
YouTube's 'Up next' and Flipkart's 'You may also like' are recommender systems. They use what you watched or bought and what similar users chose.
Figure: types of recommender systems
Same or opposite: content-based and collaborative filtering
Point
Content-based
Collaborative
Same or opposite
Uses
Item features
Ratings of many users
Opposite
New item
Can recommend at once
Needs ratings first
Opposite
Predicts what a user will like
Yes
Yes
Same
Variety
Narrow, same kind
Can surprise the user
Opposite
Exam tip. Draw a small utility matrix with a "?" cell. It explains collaborative filtering at a glance. Name the cold start problem. It is almost always worth a mark. For "role in social network", talk about friend suggestions and trust between friends.
“Explain: ETL processing techniques in big data” (2025)
“Describe the typical steps involved in an ETL pipeline implemented using Pig.” (2024)
The short answer
ETL (Extract, Transform, Load) takes data out of source systems, cleans and reshapes it, then loads it into a target. The target may be a data warehouse, Hive tables or HBase.
Write these points
In big data, teams often do ELT: load raw data into HDFS first, then transform it inside the cluster with Pig, Hive or Spark. HDFS storage is cheap and Hive reads the schema at query time.
Pig suits ETL well. LOAD extracts. FILTER, FOREACH GENERATE, JOIN and GROUP transform. STORE loads.
A scheduler such as Oozie runs the ETL job every hour or every night.
Common tools: Sqoop, Flume, Kafka, Pig, Hive, Spark, Informatica, Talend.
Steps
Extract: read data from the sources. Sqoop pulls tables from MySQL or Oracle. Flume or Kafka bring in logs and streams. Files and APIs are read as they are. Extraction is full or incremental (only new rows).
Transform: remove duplicates, fill or drop missing values, fix formats and types, join with lookup tables, aggregate, add new fields and mask personal data.
Load: write the clean data into the target, often into date-wise partitions. A full load replaces the data. An incremental load adds only new data.
Example.
raw = LOAD '/raw/sales.csv' USING PigStorage(',') AS (id:int, city:chararray, amount:double);
good = FILTER raw BY amount IS NOT NULL AND amount > 0;
bycity = GROUP good BY city;
total = FOREACH bycity GENERATE group AS city, SUM(good.amount) AS sales;
STORE total INTO '/clean/city_sales' USING PigStorage(',');
Real-life example
Every night a retail chain pulls sales from all its stores, cleans wrong prices and duplicate bills and loads the result into its warehouse. The morning reports use that clean data.
Figure: an ETL pipeline with Pig
Same or opposite: ETL and ELT
Point
ETL
ELT
Same or opposite
Order
Transform before loading
Load first, transform inside
Opposite
Where transform runs
Separate engine
The warehouse or Hadoop
Opposite
Good for
Smaller, structured data
Big data
Opposite
Moves data into a store for analysis
Yes
Yes
Same
Exam tip. Write the three stages as headings and give two or three actions under each. Add the small Pig script when the question says "using Pig". It shows each stage in code. Mention ELT in one line. It shows you know how Hadoop projects work today.
“Write example Hive Queries for Natural Join and Outer Join.” (2022, 2023)
“Explain the HiveQL Select Order By with suitable example.” (2025)
“Explain the term: Hive query language” (2025)
The short answer
HiveQL (HQL) is the SQL-like query language of Hive. Hive compiles each query into jobs over HDFS files, so it suits large batch analysis but has high latency.
Write these points
Same as SQL: SELECT, FROM, WHERE, GROUP BY, HAVING, JOIN, UNION ALL, sub-queries in FROM and WHERE. Most built-in functions also work.
ORDER BY sorts the full result through a single reducer, so on large data add LIMIT. SORT BY sorts inside each reducer only. DISTRIBUTE BY sends rows with the same key to the same reducer. CLUSTER BY does both.
Joins: Hive supports only equality joins. It has INNER JOIN, LEFT, RIGHT and FULL OUTER JOIN, LEFT SEMI JOIN and CROSS JOIN. A small table can be joined on the map side.
Hive has no NATURAL JOIN keyword. We write an equi-join on the common column, which gives the same rows.
Extra in HiveQL: PARTITIONED BY and CLUSTERED BY (buckets) in CREATE TABLE, LOAD DATA INPATH and INSERT OVERWRITE. UPDATE and DELETE work only on transactional ORC tables.
Join
Rows in the result
JOIN (equi / natural)
Only employees whose dept_id matches a department
LEFT OUTER JOIN
All employees; dname is NULL where no department matches
RIGHT OUTER JOIN
All departments; name is NULL for a department with no employee
FULL OUTER JOIN
All rows of both tables, NULL where no match
Steps
Select with order: SELECT name, salary FROM emp WHERE salary > 50000 ORDER BY salary DESC LIMIT 5;
Natural join (equi-join): SELECT e.name, d.dname FROM emp e JOIN dept d ON (e.dept_id = d.dept_id);
Left outer join: SELECT e.name, d.dname FROM emp e LEFT OUTER JOIN dept d ON (e.dept_id = d.dept_id);
Full outer join: SELECT e.name, d.dname FROM emp e FULL OUTER JOIN dept d ON (e.dept_id = d.dept_id);
Three HiveQL queries on a sales table.
Filter: SELECT * FROM sales WHERE city = 'Bhopal';
Sort: SELECT city, amount FROM sales ORDER BY amount DESC LIMIT 5; gives the five biggest sales.
Join: SELECT s.id, c.name FROM sales s JOIN customers c ON s.cust_id = c.id;
ORDER BY uses one reducer for a total order. SORT BY sorts inside each reducer only, so it is faster on big tables.
Real-life example
An analyst at a bank joins the transactions table with the customers table in HiveQL to find the top spenders in each city. The query looks like SQL but runs over the whole cluster.
Figure: joins in HiveQL
Same or opposite: ORDER BY and SORT BY
Point
ORDER BY
SORT BY
Same or opposite
Sort scope
Whole result
Within each reducer
Opposite
Reducers used
One
Many
Opposite
Speed on big data
Slow
Fast
Opposite
Sorts rows
Yes
Yes
Same
Exam tip. Write two small tables (emp and dept) with three rows each and show the join output. It makes the answer clear in two minutes. Say that ORDER BY uses one reducer. It is the most asked difference from SQL. Use ON with an equality condition in every join.
“Explain the term: Social Network as Graph” (2025)
“Discuss the advantages of using graph-based representations for analyzing social network data.” (2024)
“Short note: Social Network as a graph” (2020, 2024, 2025)
The short answer
A social network can be shown as a graph G = (V, E). Each person is a node (vertex) and each relation, such as a friendship or a follow, is an edge.
Write these points
Edges: undirected for two-way relations (Facebook friends), directed for one-way relations (a follow on X), weighted for strength (number of messages).
Degree: the number of edges at a node. In a directed graph, in-degree counts followers and out-degree counts the people you follow.
Locality: social graphs have communities, groups with many edges inside and few between. If A knows B and C, then B and C likely know each other, so triangles are common.
Short paths: most people are linked by a few hops (the small world effect).
Centrality: degree, closeness and betweenness show influencers and the bridge nodes that join communities.
Advantages of the graph form: links become data we can compute on. Friend-of-friend queries, community detection, influence spread and fraud rings all become graph algorithms. The same model fits email, phone, citation and collaboration networks. The adjacency matrix lets us use matrix methods such as PageRank.
Example.
Nodes A to G with edges A-B, A-C, B-C, B-D, D-E, D-F, D-G, E-F and F-G. There are two communities: {A, B, C} and {D, E, F, G}. D has degree 4, the highest. Edge B-D is the only bridge between the groups, so it has the highest betweenness.
Real-life example
On Instagram, people are nodes and 'follows' are directed edges. On Facebook, friendship goes both ways, so the graph is undirected. The graph view makes friend suggestions possible.
Figure: a small social network as a graphFigure: graph measures used on social networks
Same or opposite: directed and undirected social graph
Point
Directed
Undirected
Same or opposite
Edge meaning
A follows B
A and B are friends
Opposite
Example
Instagram, X
Facebook
Opposite
Degree
In-degree and out-degree
One degree
Opposite
People are nodes
Yes
Yes
Same
Exam tip. Draw a small graph and mark its communities. It is the core of the answer. Use the words node, edge, degree and community. They are what the examiner looks for. Say why a graph helps: the links themselves become data we can analyse.
RGPV teaches Big Data to 4 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 Big Data 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.
Big Data important questions by branch
CS-702-DBig Data important questions for CSE, Semester 7
CS-702-D follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the CS-702-D important questions too.
Big Data (CS-702 D) is an elective in Semester 7 of RGPV B.Tech CSE. It explains how data too large for one machine is stored and processed. Its five units cover big data basics, Hadoop, Hive and Pig, NoSQL databases, and social network mining. Install Hadoop or use a hosted one to try the tools.
Big Data unit-wise brief
Unit 1: Introduction to big data
This unit covers what big data is: its characteristics, types, how it differs from traditional data, its evolution, challenges, technologies, infrastructure and the properties a good big data system should have. Be able to explain how big data differs from traditional data.
Unit 2: Introduction to Hadoop
Here you learn the core Hadoop components and ecosystem, its limits, RDBMS compared with Hadoop, the Hadoop Distributed File System, processing with MapReduce, and resource management with YARN. Trace a word count through map and reduce.
Unit 3: Hive and Pig
This unit covers Hive architecture, data types and the Hive Query Language, then Pig: its anatomy, use cases, ETL processing, execution model, operators and functions. Write one query in each tool.
Unit 4: Introduction to NoSQL
The unit covers NoSQL business drivers, architectural patterns and their variations, how NoSQL manages big data, and an introduction to MongoDB. Compare NoSQL with a relational database.
Unit 5: Mining social network graphs
The last unit covers social network mining and its applications, social networks as graphs, their types, clustering of social graphs, direct discovery of communities, and an introduction to recommender systems. Explain how a recommender system works in simple words.
Units follow the RGPV scheme and syllabus, B.Tech Computer Science and Engineering, Semester 7 (AICTE flexible curriculum, w.e.f. July 2020) (copy hosted by VIT Bhopal (RGPV-affiliated)). For the full topic list of each unit, open the Big Data notes.
By how often they were asked in the papers on this site: HDFS architecture, features, file write and read (9 times); Types of NoSQL databases and data architecture patterns (8 times); What is NoSQL? Features, advantages and NoSQL vs RDBMS (8 times); Hadoop core components, building blocks and ecosystem (7 times); Social network mining and its applications (7 times).
How were these Big Data 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 Big Data important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Big Data is free to download from this page.
The 15 most repeated topics of Big Data (CS-702-D) for RGPV B.Tech CSE semester 7, counted from the previous year papers on this site. The same syllabus is taught under 4 codes: CS-702-D, AD-801, AL-802-C, IS-802-C. Big Data is also searched for as AI-702-D, IO-802-C and IS-802-C.