Big Data Complete
Exam Guide
5 Vs · Hadoop Ecosystem · Apache Spark · NoSQL · Batch vs Stream · Analytics Types · Banking Applications · India Initiatives · Cloud Platforms · 50 MCQs with Answers — GATE, IBPS, RBI, UPSC, SSC
Foundation — Start HereWhat is Big Data?
Big Data refers to extremely large, complex, and fast-growing datasets that cannot be managed, processed, or analysed using traditional database systems like Excel or SQL alone. It requires specialised tools, architectures, and technologies to extract meaningful insights.
- Defined by 5 Vs: Volume, Velocity, Variety, Veracity, Value
- Originally 3 Vs (Gartner, 2001): Volume, Velocity, Variety — then 2 more added
- Core framework: Hadoop (HDFS + MapReduce + YARN)
- Hadoop was originally developed by Yahoo! (inspired by Google’s GFS & MapReduce papers)
- Hadoop is written in Java; Spark is written in Scala (also supports Python, Java, R)
- Big Data ≠ just “large data” — it’s about data that cannot be handled by traditional tools
| Data Source | Data Type | Example |
|---|---|---|
| Banking transactions | Structured | Account number, amount, balance |
| UPI/mobile payments | Structured | Transaction ID, timestamp, merchant |
| WhatsApp/social media | Unstructured | Text, audio, video, images |
| IoT sensors (ATMs) | Semi-structured | Temperature logs, alerts (JSON/XML) |
| Customer complaints | Unstructured | Free-form text, emails |
| Market data feeds | Structured | Stock prices, order books |
Most Frequently Tested — Know All 5The 5 Vs of Big Data
- Original 3 Vs (Gartner 2001) = Volume, Velocity, Variety | 2 added later = Veracity, Value
- NOT one of the 5 Vs: Visibility, Validity, Variability, Visualization — common wrong answer options
- Volume = how much | Velocity = how fast | Variety = how diverse
- Veracity = how accurate/trustworthy | Value = how useful (business impact)
- “What are the 3 Vs?” = Volume, Velocity, Variety (NOT Veracity or Value)
Always TestedTypes of Data in Big Data
| Type | Description | Format | Banking Example | % of All Data |
|---|---|---|---|---|
| Structured | Organised in rows and columns with fixed schema | Tables, CSV, RDBMS | Core banking — account no, balance, transactions | ~10% |
| Semi-Structured | Not fixed format but has tags/markers for organisation | XML, JSON, Email headers | API responses, IoT sensor data, UPI alerts | ~20% |
| Unstructured | Raw, no predefined format — hardest to process | Text, audio, video, images | Customer complaints, social media, call recordings | ~70% |
- ~80% of world’s data is unstructured — emails, videos, social media posts
- Traditional RDBMS (MySQL, Oracle) can only handle structured data efficiently
- NoSQL databases handle all three types — especially unstructured and semi-structured
- HDFS can store all three types — that’s its key advantage over traditional file systems
- JSON and XML = semi-structured (have tags but no fixed schema)
Most Tested Big Data TopicHadoop Ecosystem
Apache Hadoop is an open-source framework for distributed storage and parallel processing of large datasets across clusters of computers. Created by Doug Cutting (inspired by Google’s GFS and MapReduce papers), developed at Yahoo!. Written in Java. The elephant logo was named after Doug Cutting’s son’s toy elephant.
HDFS
Stores huge data across multiple DataNodes. NameNode manages metadata. Default block size = 128 MB. Data replicated 3x for fault tolerance.
MapReduce
Map: splits data, processes into key-value pairs. Reduce: aggregates intermediate results. Batch processing. Disk-based (slower than Spark).
YARN
Manages and schedules cluster resources. Acts as the Operating System of Hadoop. Replaced old JobTracker/TaskTracker in Hadoop 2.x.
Hive
Provides HiveQL — SQL-like language for querying structured data in HDFS. Translates queries to MapReduce jobs. Used by analysts.
Pig
Data flow scripting and ETL (Extract-Transform-Load) operations. Uses Pig Latin language. Good for data transformation pipelines.
HBase
Column-oriented NoSQL database built on HDFS. Handles billions of rows and millions of columns. Real-time read/write access.
Sqoop
Transfers data between Hadoop and RDBMS (MySQL, Oracle). Import/export in bulk. Key integration tool.
Flume
Collects, aggregates, and moves streaming log data (server logs, clickstreams) to HDFS. Reliable and distributed.
Oozie
Schedules and manages Hadoop job workflows. Runs jobs in the correct order and at the right times (cron-like scheduling).
Mahout
Provides scalable ML algorithms — clustering, classification, recommendations — that run on Hadoop/Spark.
| Component | One-liner | Exam Trigger Words |
|---|---|---|
| HDFS | Distributed file storage across cluster | “stores data”, “distributed storage”, “128 MB blocks” |
| MapReduce | Parallel batch processing (Map + Reduce) | “parallel processing”, “key-value pairs”, “batch” |
| YARN | Resource management and scheduling | “resource manager”, “cluster management”, “scheduler” |
| Hive | SQL-like querying (HiveQL) | “SQL on Hadoop”, “query tool”, “HiveQL” |
| Pig | ETL / data transformation scripting | “ETL”, “data flow”, “Pig Latin” |
| HBase | NoSQL column-store on HDFS | “NoSQL in Hadoop”, “column-oriented”, “real-time read/write” |
| Sqoop | Transfer between RDBMS and Hadoop | “RDBMS to Hadoop”, “import/export”, “SQL + Hadoop” |
| Flume | Collect and move streaming logs to HDFS | “log data”, “streaming data collection”, “clickstream” |
| Oozie | Workflow scheduler for Hadoop jobs | “schedule”, “workflow”, “job sequencing” |
| Mahout | Machine Learning on Hadoop | “ML”, “recommendation”, “clustering on Hadoop” |
- NameNode = master node; stores metadata (directory tree, file locations) — does NOT store data
- DataNode = stores actual data blocks; reports to NameNode
- Default block size = 128 MB (Hadoop 2.x) — was 64 MB in Hadoop 1.x
- Data replication factor = 3 copies by default (fault tolerance)
- Hadoop NOT part of core: Cassandra is NOT a Hadoop component (it’s a separate NoSQL DB)
Faster than MapReduce — Key Exam TopicApache Spark
Apache Spark is an open-source, in-memory data processing engine that is up to 100x faster than Hadoop MapReduce for in-memory operations. Unlike MapReduce, which writes intermediate results to disk, Spark keeps data in RAM. Written in Scala but supports Python (PySpark), Java, and R. Can work with or without Hadoop.
| Feature | Hadoop MapReduce | Apache Spark |
|---|---|---|
| Processing | Batch only | Batch + Real-time stream + Interactive |
| Speed | Slower (disk I/O) | Up to 100x faster (in-memory) |
| Data storage | Writes to disk at each step | Keeps in RAM (in-memory computing) |
| Ease of use | Complex Java code | Simpler APIs (Python, Scala, Java, R) |
| Language | Java primarily | Scala + Python, Java, R |
| Machine Learning | Mahout (limited) | MLlib (built-in, powerful) |
| Real-time | Not supported | Spark Streaming (near real-time) |
| Graph processing | Limited | GraphX (built-in) |
- Spark Core = base engine — RDD (Resilient Distributed Dataset) for fault-tolerant parallel data
- Spark SQL = SQL queries on structured data using DataFrames
- Spark Streaming = near real-time stream processing (micro-batch)
- MLlib = built-in Machine Learning library (classification, clustering, regression)
- GraphX = graph analytics and computation
- Banking uses: fraud detection, credit scoring, sentiment analysis, real-time transaction monitoring
Non-Relational DatabasesNoSQL Databases
NoSQL (Not Only SQL) databases are designed to handle large volumes of unstructured and semi-structured data with horizontal scalability. Unlike RDBMS (which uses fixed schemas and tables), NoSQL uses flexible data models.
| Feature | RDBMS (SQL) | NoSQL |
|---|---|---|
| Data model | Tables and rows (fixed schema) | Document, key-value, column, graph |
| Schema | Fixed — defined upfront | Flexible (schema-on-read) |
| Scalability | Vertical (bigger machine) | Horizontal (add more machines) |
| Data type | Structured only | Structured, semi-structured, unstructured |
| Consistency | ACID (strong) | BASE (eventually consistent) |
| Examples | MySQL, Oracle, PostgreSQL | MongoDB, Cassandra, HBase, CouchDB, Redis |
| Best for | Transactional banking (core CBS) | Big Data, social, real-time analytics |
| NoSQL Type | Example | Use Case | Key Feature |
|---|---|---|---|
| Document Store | MongoDB | User profiles, product catalogs | Stores JSON-like documents |
| Column Store | HBase, Cassandra | Time-series, analytics, IoT data | High write throughput |
| Key-Value Store | Redis, DynamoDB | Caching, session management | Fastest read/write |
| Graph Database | Neo4j | Fraud networks, social relationships | Node-relationship model |
- CAP Theorem = Consistency, Availability, Partition Tolerance — a distributed system can guarantee only 2 of 3
- Consistency = all nodes see the same data at the same time
- Availability = system always responds to requests
- Partition Tolerance = system works even if network partition occurs
- MongoDB = CP | Cassandra = AP | Traditional RDBMS = CA (no partition tolerance)
Key DistinctionBatch Processing vs Stream Processing
📦 Batch Processing
- Processes data in bulk, at scheduled times
- High latency (minutes to hours)
- Cost-effective for large volumes
- Tool: Hadoop MapReduce, Hive
- Example: Monthly salary processing, end-of-day bank reports
- Example: Generating overnight risk reports for RBI
⚡ Stream / Real-time Processing
- Processes data continuously as it arrives
- Very low latency (milliseconds to seconds)
- More complex and expensive
- Tool: Spark Streaming, Apache Kafka, Flink, Storm
- Example: Real-time UPI fraud detection, live stock prices
- Example: Instant credit card transaction scoring
| Tool | Type | Use Case | Key Feature |
|---|---|---|---|
| Hadoop MapReduce | Batch | Large-scale batch analytics | Parallel disk-based processing |
| Apache Spark | Batch + Stream | Fast analytics, ML, real-time | In-memory, 100x faster than MR |
| Apache Kafka | Streaming (messaging) | Real-time data pipelines, event streaming | High-throughput message queue |
| Apache Flink | Stream | True real-time stream analytics | Event-time processing, stateful |
| Apache Storm | Stream | Real-time stream processing | Fault-tolerant, low latency |
| Spark Streaming | Micro-batch (near real-time) | UPI fraud detection, live analytics | Built into Spark ecosystem |
4 Types — All Exam FavouritesBig Data Analytics Types
Descriptive Analytics
Summarises historical data to understand what happened in the past. Simplest and most common type.
Diagnostic Analytics
Examines data to understand the root cause of events. Goes deeper than descriptive to explain WHY.
Predictive Analytics
Uses statistical models and ML to forecast future events. Most valuable for risk management.
Prescriptive Analytics
Recommends specific actions to take based on data and predictions. Most advanced analytics type.
- Order: Descriptive → Diagnostic → Predictive → Prescriptive (past to future to action)
- Descriptive = What happened? (PAST) | Diagnostic = Why? (PAST cause)
- Predictive = What will happen? (FUTURE) | Prescriptive = What should I do? (ACTION)
- Most complex and valuable = Prescriptive | Most common = Descriptive
Very High Exam WeightBig Data in Banking & Finance
🔍 Fraud Detection
Real-time analysis of every transaction using ML models. Detects unusual patterns instantly. Blocks suspicious transactions before completion.
📊 Credit Scoring
Uses traditional + alternate data (mobile usage, digital behaviour, utility payments) for more accurate and inclusive credit risk assessment.
🛡️ AML / Compliance
Detects money laundering patterns — structuring, layering, smurfing. Maintains audit trails and data lineage for regulatory compliance.
👥 Customer Segmentation
Groups customers by behaviour, demographics, risk profile for targeted marketing, personalised products, and cross-selling.
⚠️ NPA Prediction
Predicts which loan accounts will become NPAs months before default. Enables proactive recovery action and provisioning decisions.
🎯 Personalised Offers
Recommends credit cards, loans, FDs, insurance based on individual customer transaction history and life events (salary increase, new home).
📋 Regulatory Reporting
Automates data collection and report generation for RBI/SEBI/IRDAI. Maintains complete audit trails. Reduces manual compliance effort.
📈 Market Surveillance
SEBI uses Big Data to detect insider trading, market manipulation, and abnormal trading patterns in real time across all listed securities.
| Institution | Big Data Use |
|---|---|
| RBI | Data analytics for fraud monitoring, AML, risk reporting, MuleHunter.AI |
| HDFC Bank | EVA chatbot + customer analytics + real-time fraud detection |
| SBI | Big Data platform for spending pattern analysis, fraud detection |
| SEBI | Market surveillance for insider trading, abnormal volume detection |
| NPCI | UPI fraud risk scoring in real time using Big Data + ML |
| NABARD | Credit and rural data analytics for agricultural lending decisions |
Current Affairs — High 2025 Exam ProbabilityIndia’s Big Data & Data Initiatives
🇮🇳 Key Indian Big Data Initiatives
| Initiative | By Whom | Purpose | Exam Relevance |
|---|---|---|---|
| NDAP | NITI Aayog | Unified platform for government data discovery and analytics | ⭐⭐⭐⭐⭐ |
| MeghRaj (GI Cloud) | MeitY | Government cloud for storing and processing large datasets | ⭐⭐⭐⭐⭐ |
| UIDAI / Aadhaar | UIDAI / Govt. | World’s largest biometric Big Data project — 1.4 billion records | ⭐⭐⭐⭐⭐ |
| Digital India | Govt. of India | Creates massive digital data footprint for Big Data analytics | ⭐⭐⭐⭐ |
| RBI IT Framework (2017) | RBI | Data governance, analytics guidelines for banks and NBFCs | ⭐⭐⭐⭐ |
| IndiaAI Mission | Govt. (2024) | ₹10,372 crore — builds AI + Big Data compute infrastructure | ⭐⭐⭐⭐⭐ |
| NITI Aayog “AI for All” | NITI Aayog | National AI strategy that promotes Big Data + AI in governance | ⭐⭐⭐⭐ |
Cloud Platforms for Big DataCloud & Big Data Integration
| Cloud Provider | Big Data Service | What It Does |
|---|---|---|
| AWS (Amazon) | Amazon EMR | Managed Hadoop/Spark cluster service |
| AWS | Amazon Redshift | Fully managed cloud data warehouse for analytics |
| AWS | Amazon S3 | Object storage — most popular cloud storage for Big Data |
| Azure (Microsoft) | Azure HDInsight | Managed Hadoop/Spark/Hive clusters on Azure |
| Azure | Azure Synapse Analytics | Integrated analytics service (warehouse + Big Data) |
| Google Cloud | BigQuery | Serverless, scalable data warehouse — SQL queries on petabytes |
| Google Cloud | Dataproc | Managed Hadoop and Spark service on Google Cloud |
- Amazon Redshift = cloud data warehouse by AWS (NOT real-time streaming)
- Google BigQuery = serverless SQL queries on petabyte-scale data
- AWS S3 = Simple Storage Service — most widely used cloud object storage for Big Data
- Azure Synapse = combines data warehouse + Big Data analytics in one service
- Data Lake vs Data Warehouse: Lake = raw unprocessed | Warehouse = processed, structured, query-ready
Governance & PrivacyBig Data Security & Governance
| Term | Meaning | Banking Relevance |
|---|---|---|
| Data Governance | Framework of policies for data quality, access control, and usage | RBI IT Framework mandate for banks |
| Data Lineage | Tracking origin and movement of data through systems | Audit trails for regulatory compliance |
| Data Privacy | Protecting customer PII (Personally Identifiable Information) | India DPDP Act 2023, GDPR compliance |
| Encryption | Converting data to unreadable format — at rest and in transit | Protecting transaction and customer data |
| Anonymisation | Removing/masking personal identifiers from datasets | Using customer data for analytics without exposing PII |
| Data Cleansing | Removing duplicate, incorrect, or incomplete records | Ensuring veracity of credit data |
| Data Lake | Central repository of raw data in native format for later use | Banks store all transaction logs for future analytics |
| Data Swamp | Poorly governed Data Lake — full of ungoverned, unusable data | Risk when governance is not applied to data lakes |
| ETL | Extract, Transform, Load — process of moving and preparing data | Moving data from CBS to analytics platform |
Tap Any Option to Reveal AnswerMCQ Practice — 50 Questions
Last-Minute PrepQuick Revision Flash Cards
📊 What is Big Data?
- Huge, complex, fast-growing data
- Cannot be processed by traditional tools
- Needs Hadoop, Spark, NoSQL
- 3 Vs (original) → 5 Vs (extended)
5️⃣ The 5 Vs
- Volume = size/amount of data
- Velocity = speed of generation
- Variety = types (structured/semi/unstructured)
- Veracity = accuracy/trustworthiness
- Value = business benefit
🐘 Hadoop Core
- HDFS = distributed storage (128 MB blocks, 3x replication)
- MapReduce = parallel batch processing
- YARN = resource management
- Developed at Yahoo! Written in Java
🐘 Hadoop Ecosystem Tools
- Hive = SQL-like queries (HiveQL)
- Pig = ETL / data transformation
- HBase = NoSQL database on HDFS
- Sqoop = RDBMS ↔ Hadoop transfer
- Flume = log data collection
- Oozie = workflow scheduler
⚡ Apache Spark
- In-memory processing → 100x faster than MapReduce
- Written in Scala (supports Python, Java, R)
- Batch + Stream + ML (MLlib) + Graph (GraphX)
- Spark Streaming = near real-time
🗄️ NoSQL
- Not Only SQL — handles unstructured data
- Horizontal scaling (add machines)
- MongoDB (document), Cassandra (column), Redis (key-value)
- CAP theorem = choose only 2 of 3
📈 Analytics Types
- Descriptive = What happened?
- Diagnostic = Why?
- Predictive = What will happen?
- Prescriptive = What should be done?
🏦 Banking Uses
- Fraud detection (real-time)
- Credit scoring (alternate data)
- AML / compliance monitoring
- Customer segmentation
- NPA prediction
- Personalised product offers
🇮🇳 India Initiatives
- NDAP = NITI Aayog data platform
- MeghRaj = Govt cloud (GI Cloud, MeitY)
- UIDAI Aadhaar = world’s largest biometric Big Data
- IndiaAI = ₹10,372 crore (2024)
☁️ Cloud Big Data
- AWS: EMR (Hadoop), Redshift (warehouse), S3 (storage)
- Azure: HDInsight, Synapse Analytics
- Google: BigQuery (SQL at petabyte scale), Dataproc
⚡ Streaming Tools
- Kafka = real-time streaming/messaging
- Spark Streaming = near real-time (micro-batch)
- Apache Flink = true real-time stream
- Hadoop MapReduce = batch only
🔐 Security & Governance
- Data Governance = policies for quality + compliance
- Data Lineage = track origin and movement
- Anonymisation = mask PII data
- ETL = Extract, Transform, Load
- Data Lake = raw | Data Warehouse = processed
