Big Data Analytics (Introductory) MCQs for the NSCT
Big Data Analytics is the study of data too large, fast or varied for one machine, and of the tools that process it across a cluster: the 5 Vs describe the problem, Hadoop stores the data, MapReduce processes it in batches, and Spark does the same work faster in memory. It is one of the 17 topics in the AI, Machine Learning & Data Analytics area, which carries 10% of the NSCT according to HEC's Areas of Competencies. Candidates averaged 50.8% accuracy in this area in 2026, per the HEC NSCT report and APP.
HEC lists this topic as introductory, so questions focus on concepts and simple counts rather than cluster tuning.
The 5 Vs
The original definition (Doug Laney, 2001) had three Vs: volume, velocity and variety. Most courses now teach five, and some books list seven or more, so learn the five below and recognise extras such as variability and visualisation.
| V | Meaning | Example |
|---|---|---|
| Volume | Sheer amount of data | Petabytes of telecom call records |
| Velocity | Speed of arrival and processing | Card swipes checked for fraud in seconds |
| Variety | Different formats | Tables, JSON, images, free text |
| Veracity | Quality and trustworthiness | Duplicate or mistimed sensor readings |
| Value | Useful business insight | Better stock planning from sales data |
Data also comes in three shapes: structured (relational tables), semi-structured (JSON, XML) and unstructured (text, images, video).
Exam angle: scenario questions describe a problem and ask which V it is. Duplicates and wrong values mean veracity, not variety.
Hadoop
Apache Hadoop has three core parts:
- HDFS (Hadoop Distributed File System) splits files into large blocks, 128 MB by default in Hadoop 2.x and 3.x (64 MB in Hadoop 1.x), and stores 3 copies of each block by default.
- YARN manages cluster resources and schedules jobs.
- MapReduce is the original processing engine.
The NameNode holds metadata (which blocks make up which file, and where they live). DataNodes store the blocks. The Secondary NameNode only merges checkpoints and is not a backup that takes over; automatic failover needs a Standby NameNode in a high-availability set-up.
Example: a 300 MB file with 128 MB blocks becomes 3 blocks (128 + 128 + 44 MB). With replication 3 that is 9 block replicas.
Exam angle: know the difference between metadata (NameNode) and data (DataNodes), and do not confuse the Secondary NameNode with a hot standby.
MapReduce
MapReduce runs in three phases:
- Map: each mapper turns its input split into key-value pairs.
- Shuffle and sort: the framework groups all values of each key and sends them to one reducer, chosen by hash(key) mod R.
- Reduce: each reducer aggregates the values of its keys.
Word count on the line "pak china pak": the mapper emits (pak, 1), (china, 1), (pak, 1), and the reducer outputs (china, 1) and (pak, 2). A combiner runs reducer-like logic on the map side to send fewer pairs over the network. It only works for operations such as sum, count and max, which give the same answer however you group them.
Exam angle: count map output pairs per word occurrence, and count reducer keys per distinct word.
Spark
Apache Spark keeps working data in memory and plans each job as a DAG (directed acyclic graph). It is often much faster than MapReduce for iterative and interactive work.
| Hadoop MapReduce | Apache Spark | |
|---|---|---|
| Intermediate data | Written to disk | Kept in memory where possible |
| Programming model | Map and reduce only | Many transformations plus SQL, streaming, MLlib |
| Iterative jobs | Slow (disk I/O each pass) | Fast with cache() |
| Fault tolerance | Re-run failed tasks; HDFS replication | Recompute lost partitions from lineage |
Spark's core abstraction is the RDD (Resilient Distributed Dataset). Transformations such as map, filter and reduceByKey are lazy; actions such as count, collect and reduce trigger execution. Wide transformations like reduceByKey cause a shuffle, which starts a new stage.
Exam angle: if nothing seems to run, look for a missing action; if work repeats, look for a missing cache().
Common traps
- Treating the Secondary NameNode as a failover node.
- Quoting a 64 MB block size for modern Hadoop. That was the Hadoop 1.x default.
- Calling count() or collect() a transformation.
- Using a combiner to compute averages directly (average partial sums and counts instead).
- Assuming Spark needs no storage layer. It often reads from HDFS or cloud storage.
- Choosing nightly batch processing for a task that needs answers in seconds.
Worked examples
1. Understanding. A hospital stores CT scans, typed doctors' notes and lab results in a database. Which V does this mix mainly illustrate? Answer: Variety. The data arrives as images, unstructured text and structured records, so it needs tools that handle many formats.
2. Application. A 2 GB (2,048 MB) log file is loaded into HDFS with 128 MB blocks and default replication. How many blocks and replicas are there, and how many map tasks will a MapReduce job usually start? Answer: 2,048 ÷ 128 = 16 blocks, 16 × 3 = 48 replicas, and usually 16 map tasks, because one input split per block is the default.
3. Analysis. A Spark job uses groupByKey() followed by summing each key's values. It is slow and the shuffle is huge. What change helps most? Answer: Replace it with reduceByKey(). It sums values inside each partition before the shuffle, so only one partial result per key per partition crosses the network.
Practise
The quiz below has 100 Big Data Analytics questions you can filter by tier and difficulty.
Practise: 100 questions
FAQs
What are the 5 Vs of big data?
Volume (how much data), Velocity (how fast it arrives), Variety (how many formats), Veracity (how trustworthy it is) and Value (what insight it gives). The original model had only the first three; some books add more Vs, but the five above are the standard set in most courses.
Is Spark a replacement for Hadoop?
Spark replaces MapReduce as the processing engine in many projects, but it often still runs on Hadoop's YARN and reads data from HDFS. Think of Hadoop as storage plus resource management, and Spark as a faster engine that can sit on top of it.
Why is the HDFS block size so large?
Large blocks (128 MB by default) keep the number of blocks small. That means less metadata held in the NameNode's memory, fewer map tasks to schedule and long sequential disk reads. This is also why millions of tiny files cause problems in HDFS.
Does big data overlap with the Databases area?
Yes. NoSQL stores, data warehouses and distributed databases appear in both. See NoSQL & Modern Databases and Data Warehousing for the database side of the same ideas.
Next step
Continue with Model Deployment & MLOps MCQs, go back to the AI & ML MCQs hub, or try a timed NSCT mock test.