⚡ TechVani: AI, Technology, Apps, Coding & Digital World
TechVaniAI • Technology • Apps • Coding • Digital World
HomeAI & TechAppsCodingFree AI ToolsStudent TechSecurityAboutContactPrivacy
TECHVANI // LEARN. BUILD. TEST.

Learn the tech. Build the idea.

Clear study notes, tested lab files and practical guides for coding, AI and digital safety.

Explore Latest →
šŸ¤– AI & TechAI news, tools & guides šŸ“± Apps & ToolsUseful apps & websites šŸ’» CodingProgramming & web development šŸŽ“ Student TechStudy & career technology šŸ” Cyber SecuritySafety & awareness

Latest Posts

Circuit Notebook theme

Exam Notes

šŸ“š BTech CSE Exam Notes

Find Semester 1-8 subjects in one place. Choose a semester and open the notes you need. This is a general study guide, not an official syllabus.

Open Exam Notes →🧪 Open Lab Files →

Exam Numericals & Study Series

Practice CPU scheduling and explore OS and DBMS topics in separate, easy-to-follow parts. New topics will appear in the hub as they are published.

Open Numericals Hub →

Start here and stay in touch

New to TechVani? Start with our free AI tools guide for students. It covers which tools to try and what to check before relying on an answer.

For step-by-step videos, visit SiteSudhar on YouTube.

Join TechVani on WhatsApp

Get new AI tools and coding guides in your WhatsApp Updates tab.

Browse Topics

Popular Posts

TechVani

Big Data Analytics Exam Prep

1. Big Data and the 5 Vs

1 mark: What is Big Data?

  • Big Data is data whose scale, arrival rate or complexity requires more scalable handling than the available conventional tools can provide.

4 marks: Explain the five Vs with examples.

  1. Volume: A retailer stores years of purchases. Partition storage and process parts in parallel.
  2. Velocity: Payment events arrive continuously. Use a buffered ingestion path and bounded-latency processing.
  3. Variety: Tables, JSON events, images and notes need different parsing and storage methods.
  4. Veracity: Duplicate orders or missing sensor values require validation, cleaning and traceable sources. Value: A useful result, such as fewer failed deliveries, must justify the cost of collecting and processing data.

6 marks: A retailer has purchases, clickstreams and returns. Explain how the five Vs affect its system.

Volume + varietyPartition data; parse different inputs
Velocity + veracityBuffer events; validate and deduplicate
ValueMeasure a real outcome against cost
  1. Volume: retain historical purchase and event partitions in scalable storage; size for growth and retention, not only today's files.
  2. Velocity: buffer bursts so event producers are not tied directly to slow analytics. Fraud alerts may need seconds, while weekly reports can run in batches.
  3. Variety: give purchases a defined schema, parse JSON clickstreams, and store large media separately with identifiers linking them to records.
  4. Veracity: validate transaction IDs, deduplicate retries, standardize time zones and record missing fields. Preserve raw input for audit.
  5. Value: measure an outcome, such as a reduction in stock-outs, rather than treating more stored bytes as success.
  6. Trade-off: more replicas, fresher results and longer retention cost money. Choose each from business need and test result quality. Large volume alone does not prove Hadoop is necessary.

Common mistake: The five Vs describe challenges, not five software products. Do not define Big Data only as "very large data".

Back to units ↑

2. Data types and storage choices

1 mark: What is semi-structured data?

  • Semi-structured data uses flexible keys or tags rather than a fixed table schema, as in JSON events.

4 marks: Compare structured, semi-structured and unstructured data.

Swipe the table to see all columns →

PointStructuredSemi-structuredUnstructured
1. OrganizationFixed fields and typesKeys/tags; optional fieldsNo fixed table schema for the analysis
2. ExampleOrder tableJSON eventPhoto, audio, free text
3. ProcessingValidate columns; query rowsParse keys; handle changesExtract text/features as needed
4. CautionSchema must be maintainedStill needs rules to interpret dataNot meaningless; can have metadata

6 marks: Should a growing retailer replace its RDBMS with Hadoop?

Live ordersRDBMS: updates and transactions
Historical logsDistributed batch scan if justified
DecisionCombine tools when workloads differ
  • Not automatically. Compare workload requirements before selecting a system.
  1. Keep transactions safe: order entry and payments need constraints, updates and transaction guarantees. A relational database remains a strong fit.
  2. Separate analytics: copy permitted historical and event data into an analytical store so heavy scans do not block live purchases.
  3. Assess the bottleneck: measure data size, query latency, throughput and growth. Improve indexes, schemas or partitioning before assuming a distributed cluster is required.
  4. Choose distributed work when justified: HDFS plus batch processing can spread large sequential scans across machines, but adds operations and coordination costs.
  5. Handle variety deliberately: retain raw files with metadata, then create clean queryable datasets. "Schema-on-read" still requires a schema when interpreting data.
  6. Conclude from cost and guarantees: a hybrid architecture is often reasonable. RDBMS products can also scale out; Hadoop is not inherently real-time, and HDFS is not a transactional database.
Back to units ↑

3. Analytics, lifecycle and decision-making

1 mark: What is Big Data Analytics?

  • Big Data Analytics is the use of computational and statistical methods to find patterns, explain outcomes or support decisions from data that needs scalable handling.

4 marks: Compare descriptive, predictive and prescriptive analytics.

Swipe the table to see all columns →

PointDescriptivePredictivePrescriptive
1. QuestionWhat happened?What may happen?What should we do?
2. InputObserved past eventsPast data plus available current featuresPredictions, costs and constraints
3. ExampleLate-delivery countDelay probabilityChoose a route
4. LimitDoes not explain cause by itselfPrediction can be wrongAction needs validation

6 marks: Explain the analytics lifecycle using delivery-delay prediction.

  1. Start with a measurable goal: reduce late deliveries without raising costs beyond a stated limit.
  2. Collect only needed fields, with access controls and retention limits. Keep IDs and timestamps consistent across systems.
  3. Check duplicate deliveries, impossible coordinates and missing values. Keep a record of transformations.
  4. Construct features available at prediction time, such as distance and recent traffic. Do not use the actual arrival time as an input.
  5. Test on later unseen deliveries and compare with a simple baseline. Data leakage can make an ineffective model look accurate.
  6. Use predictions in a dispatch workflow and track errors, drift and actual delivery outcomes. A dashboard alone is not business value.
Back to units ↑

4. Typical analytical architecture and bottlenecks

1 mark: What is a data warehouse?

  • A data warehouse is an integrated store organized for historical reporting and analysis, usually combining cleaned data from multiple operational sources.

4 marks: Explain a typical traditional analytical architecture.

  1. Sources: operational systems record sales, finance and application events.
  2. ETL: extract, clean and transform data before loading it into the analytical store.
  3. Warehouse: combine historical data under consistent definitions; data marts serve a narrower subject.
  4. Analysis: queries, OLAP and dashboards present results; freshness depends on the loading schedule.

6 marks: Analyze the limitations of a traditional warehouse-only design for Big Data.

Nightly loadOld information for urgent decisions
Single bottleneckLimited scan throughput
New data shapeExtra parsing and schema work
  1. Ingestion delay: a nightly ETL job can leave a fraud report hours behind events. Match refresh intervals to the decision deadline.
  2. Schema friction: new event fields and unstructured content may need preprocessing before fitting the warehouse schema.
  3. Central bottlenecks: one storage or compute tier can limit concurrent scans. Scaling up has cost and hardware limits.
  4. Data movement: repeatedly copying large datasets through ETL can consume bandwidth, space and time.
  5. Operational contention: poorly separated analytics may compete with transaction processing. Isolate analytical workloads.
  6. Balanced conclusion: these are limitations of a particular design, not a claim that every modern warehouse fails. Distributed or cloud warehouses, partitioning and incremental loading can address some limits; use a new architecture only where requirements justify it.

Common mistake: Do not write that all traditional databases cannot store Big Data. State the particular scale, latency or data-model constraint.

Back to units ↑

5. Modern analytical architecture and a streaming case

1 mark: Why is a new analytical architecture required?

  • A new design is needed when the existing system cannot meet required scale, variety, freshness, resilience or cost.

4 marks: List four requirements of a modern Big Data architecture.

  1. Scalable ingestion and storage: absorb growth and traffic bursts without losing traceability.
  2. Appropriate processing latency: separate time-sensitive streams from heavy historical batch jobs.
  3. Resilience and quality: recover from failures, validate records and handle duplicate or late events.
  4. Governance and useful serving: restrict access, track lineage and expose results through a service, query engine or dashboard that supports the decision.

6 marks: Design a high-level architecture for real-time fraud detection.

  1. Ingest: assign event IDs and event timestamps. A durable buffer absorbs bursts and allows replay.
  2. Validate: reject or quarantine malformed records; protect sensitive payment identifiers.
  3. Enrich: combine the event with permitted recent-account features. Define handling of late or out-of-order data.
  4. Score and act: calculate a risk score within the required latency and route high-risk cases to a controlled review or decision path.
  5. Retain history: keep governed raw and cleaned datasets for audit and later batch analysis. HDFS-based MapReduce suits offline history, not a millisecond decision loop.
  6. Measure and recover: monitor lag, failures, duplicate handling, false positives and detection rate. Replay and actions safe to repeat reduce duplicate effects, but exactly-once behavior must be designed end to end.
Back to units ↑

6. Challenges, distributed frameworks and trade-offs

1 mark: What is horizontal scalability?

  • Horizontal scalability means increasing capacity by adding machines and distributing work or data across them.

4 marks: Explain four major challenges and one remedy for each.

  1. Storage and processing: Partition data and process in parallel. Network transfer and skew can still limit speed.
  2. Data quality: Validate, deduplicate and record provenance. Cleaning cannot recover facts never captured.
  3. Security and privacy: Use least-privilege access, encryption and retention controls. Encryption alone does not make unauthorized use acceptable.
  4. Scalability and failure: Add capacity, replicate data and retry failed work. Replication uses space and does not replace separate backups.

6 marks: Why are Big Data frameworks needed? Compare Hadoop MapReduce and Spark.

MapReduceLarge batch transformations
SparkDataflow and reusable cached work
Small simple workloadA database or simpler tool may be enough
  • A distributed framework coordinates work that would otherwise require custom partitioning, scheduling, recovery and aggregation code.
  1. Partitioning: divide a large dataset into manageable pieces. Correct partition keys help balance load.
  2. Parallel execution: schedule tasks near data where possible. More nodes help only when work is parallelizable and coordination does not dominate.
  3. Recovery: detect failed tasks and recompute work from recoverable input. This is fault tolerance, not immunity to every failure.
  4. Hadoop MapReduce: uses map/shuffle/reduce stages and saved output between jobs; useful for large batch transformations, but repeated multi-job passes can add disk I/O and latency.
  5. Spark: supports multi-stage dataflow and caching useful in iterative analysis. It can spill when data does not fit memory; "everything must fit in RAM" is wrong.
  6. Selection: evaluate workload latency, iteration, cost, skills and data governance. Hadoop storage and Spark processing can coexist; a small dataset with simple queries may need neither.
Back to units ↑

Quick 1-mark revision

1 mark: What is veracity?

  • Veracity is the trustworthiness and quality of data, including accuracy, consistency and completeness.

1 mark: What is value?

  • Value is the useful, measurable benefit obtained from data, after considering collection, processing and decision costs.

1 mark: What is batch processing?

  • Batch processing handles a collected set of records as a job, rather than processing every event as it arrives.

1 mark: What is stream processing?

  • Stream processing handles events continuously as they arrive, with a defined latency and rules for state and event timing.

1 mark: Name two sources of Big Data.

  • Application clickstream events and IoT sensor readings are two sources.

1 mark: What is fault tolerance?

  • Fault tolerance is the ability to continue or recover useful operation after specified component failures.

1 mark: What is data provenance?

  • Data provenance records where data came from and how it was transformed, helping audit and trust the result.

Technical references and scope

Original explanations and examples for revision. Technical behavior was checked against the references below. Hadoop 1 terms are labeled as legacy; Hadoop 2/3 use YARN. Configuration and installed versions can change defaults. Institutional names, personal information and supplied document headers are not reproduced.

Comments