Big Data Analytics Overview
- 40Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary characteristic that defines 'Big Data' according to the content?
What is the primary characteristic that defines 'Big Data' according to the content?
40 questions
- 1
What is the primary characteristic that defines 'Big Data' according to the content?
- A
Data that is stored in a distributed file system
- B
Data that requires real-time processing
- C
Data that cannot be processed using traditional methods due to its size and complexity
- D
Data that is generated by social media platforms only
Correct answer
CData that cannot be processed using traditional methods due to its size and complexity
Explanation
Big Data is defined as a huge amount of data that cannot be processed using traditional methods. The content emphasizes that it is not just about size but also about the inability of conventional systems to handle it.
- A
- 2
Which of the following is a drawback of traditional RDBMS when dealing with large-scale data?
- A
RDBMS systems are unable to store structured data
- B
RDBMS systems cannot ensure ACID properties for transactions
- C
RDBMS systems are always more expensive than Hadoop
- D
As data size increases, query performance degrades significantly
Correct answer
DAs data size increases, query performance degrades significantly
Explanation
The content mentions that as data size increases in RDBMS, processing becomes very slow because of join operations and the inability to physically partition tables effectively.
- A
- 3
Why does the content suggest that RDBMS is still used for transaction management?
- A
RDBMS is cheaper to maintain than Hadoop
- B
RDBMS is faster than NoSQL databases for all operations
- C
RDBMS is the only system that can handle large volumes of data
- D
RDBMS ensures ACID properties which are essential for transactional integrity
Correct answer
DRDBMS ensures ACID properties which are essential for transactional integrity
Explanation
The content explicitly states that RDBMS is used for transaction management because it can ensure ACID properties, which are critical for transactions such as purchases.
- A
- 4
In the context of Big Data, what does the acronym ELT stand for and why is it preferred over ETL?
- A
Extract, Load, Transform; it is preferred because Hadoop can store raw data and transform it later
- B
Extract, Log, Transfer; it is preferred because it uses less memory
- C
Extract, Load, Test; it is preferred because it validates data before loading
- D
Extract, Link, Transform; it is preferred because it reduces network traffic
Correct answer
AExtract, Load, Transform; it is preferred because Hadoop can store raw data and transform it later
Explanation
The content explains that in Hadoop, ELT (Extract, Load, Transform) is used because you first load raw data into HDFS and then transform it later, unlike traditional ETL where transformation happens before loading.
- A
- 5
What was the primary motivation for ICICI Bank to migrate to a Big Data platform?
- A
To replace their entire core banking system with Hadoop
- B
To improve the speed of their online transaction processing
- C
To reduce the cost of their Oracle database licenses
- D
To enable real-time analytics and overcome scalability limitations of their existing data warehouse
Correct answer
DTo enable real-time analytics and overcome scalability limitations of their existing data warehouse
Explanation
The content describes that ICICI Bank faced challenges with their traditional data warehouse: it was not real-time, could not scale with increasing data, and was costly. They wanted a solution that could handle real-time analytics and large volumes of unstructured data.
- A
- 6
Which of the following is NOT a component of Hadoop as described in the content?
- A
MapReduce
- B
YARN (Yet Another Resource Negotiator)
- C
HDFS (Hadoop Distributed File System)
- D
Hive
Correct answer
DHive
Explanation
The content states that the three major components of Hadoop are HDFS, YARN, and MapReduce. Hive is an ecosystem tool that runs on top of Hadoop but is not a core component.
- A
- 7
In HDFS, what is the default replication factor mentioned in the content?
- A
1
- B
2
- C
4
- D
3
Correct answer
D3
Explanation
The content explains that HDFS replicates each block three times by default to provide fault tolerance.
- A
- 8
What is the role of the NameNode in HDFS?
- A
To manage the metadata and namespace of the file system
- B
To allocate resources to applications
- C
To execute MapReduce tasks
- D
To store the actual data blocks
Correct answer
ATo manage the metadata and namespace of the file system
Explanation
The NameNode is the master server that manages the file system namespace and metadata (e.g., which blocks make up which files and where they are located). DataNodes store the actual data.
- A
- 9
Why does HDFS use a block size of 64 MB or 128 MB instead of a smaller size?
- A
To reduce the overhead of replication
- B
To increase the number of files that can be stored
- C
To allow random access to any byte in the file
- D
To minimize disk seek time and improve throughput for large files
Correct answer
DTo minimize disk seek time and improve throughput for large files
Explanation
The content mentions that HDFS is designed for sequential reads of large files. A larger block size reduces the number of seeks and allows for faster streaming reads.
- A
- 10
In HDFS, if a DataNode fails, what happens to the blocks stored on that node?
- A
The blocks are lost permanently
- B
The blocks are automatically recovered from the failed node's disk when it restarts
- C
The blocks are moved to a different cluster
- D
The NameNode immediately replicates the blocks from other replicas to maintain the replication factor
Correct answer
DThe NameNode immediately replicates the blocks from other replicas to maintain the replication factor
Explanation
The content explains that HDFS is fault-tolerant; if a DataNode fails, the NameNode detects the missing replicas and schedules new replicas on other DataNodes to maintain the desired replication factor.
- A
- 11
What is the purpose of rack awareness in HDFS?
- A
To balance memory usage among racks
- B
To reduce network traffic during data replication by placing replicas on different racks
- C
To allow data to be stored on specific racks only
- D
To improve CPU utilization across racks
Correct answer
BTo reduce network traffic during data replication by placing replicas on different racks
Explanation
Rack awareness ensures that HDFS places replicas across different racks to prevent data loss in case of a rack failure and to optimize bandwidth usage during read/write operations.
- A
- 12
How does MapReduce achieve fault tolerance?
- A
By using a single master node to re-execute all failed tasks from the beginning
- B
By periodically writing intermediate results to disk so that failed tasks can be restarted from the last checkpoint
- C
By storing intermediate data in memory only
- D
By replicating all map output across multiple nodes
Correct answer
BBy periodically writing intermediate results to disk so that failed tasks can be restarted from the last checkpoint
Explanation
MapReduce writes intermediate data to disk between the map and reduce phases. If a task fails, it can be re-executed because the intermediate data is persisted, allowing fault tolerance.
- A
- 13
What is YARN's primary role in Hadoop?
- A
To execute MapReduce programs only
- B
To provide a distributed file system
- C
To store metadata about HDFS blocks
- D
To manage cluster resources and schedule applications
Correct answer
DTo manage cluster resources and schedule applications
Explanation
YARN is the resource management layer in Hadoop that allocates CPU and memory to applications (like MapReduce, Spark) and schedules their execution.
- A
- 14
In the context of Hive, what is the difference between a managed table and an external table?
- A
Managed tables can only store structured data; external tables can store unstructured data
- B
Managed tables require a schema; external tables do not
- C
Managed tables store data in the Hive warehouse; external tables point to data stored elsewhere and Hive does not manage the lifecycle of the data
- D
Managed tables are faster for queries; external tables are slower
Correct answer
CManaged tables store data in the Hive warehouse; external tables point to data stored elsewhere and Hive does not manage the lifecycle of the data
Explanation
The content explains that when you drop a managed table, both the metadata and the data are deleted. For an external table, only the metadata is deleted; the data remains in the original location.
- A
- 15
What is the advantage of using ORC file format in Hive?
- A
It stores data in row-oriented format for faster inserts
- B
It allows real-time updates to the data
- C
It is the only format that supports ACID transactions
- D
It provides built-in indexing and compression, improving query performance
Correct answer
DIt provides built-in indexing and compression, improving query performance
Explanation
The content highlights that ORC (Optimized Row Columnar) format compresses data and includes indexes (row and column indexes) which speed up queries by minimizing data scans.
- A
- 16
Why is partitioning in Hive recommended only for columns with low cardinality?
- A
Low cardinality columns make the data smaller
- B
High cardinality columns would create too many partitions, leading to inefficiency and potential NameNode overload
- C
Partitioning is only supported for integer columns
- D
High cardinality columns cannot be used in WHERE clauses
Correct answer
BHigh cardinality columns would create too many partitions, leading to inefficiency and potential NameNode overload
Explanation
If a column has many unique values, partitioning creates many small directories and files, which increases metadata overhead and can slow down queries. It is best for columns like country or date (month/year) with limited distinct values.
- A
- 17
What is the main purpose of bucketing in Hive?
- A
To compress data further than partitioning
- B
To divide data into a fixed number of files within a partition for efficient sampling and join operations
- C
To encrypt sensitive columns
- D
To allow Hive to support real-time queries
Correct answer
BTo divide data into a fixed number of files within a partition for efficient sampling and join operations
Explanation
Bucketing splits data into a specified number of buckets based on the hash of a column. This is useful for sampling and for performing efficient map-side joins when both tables are bucketed on the same column.
- A
- 18
What is the key advantage of Spark over MapReduce according to the content?
- A
Spark performs in-memory processing, making it much faster for iterative algorithms
- B
Spark does not require a cluster manager
- C
Spark can only process structured data
- D
Spark is easier to program in Java
Correct answer
ASpark performs in-memory processing, making it much faster for iterative algorithms
Explanation
The content emphasizes that Spark's in-memory processing allows it to be up to 100x faster than MapReduce for iterative algorithms and interactive queries, as intermediate data is kept in memory rather than written to disk.
- A
- 19
What does RDD stand for in Spark?
- A
Random Data Division
- B
Recursive Data Definition
- C
Reliable Data Distribution
- D
Resilient Distributed Dataset
Correct answer
DResilient Distributed Dataset
Explanation
RDD stands for Resilient Distributed Dataset, which is the fundamental data structure in Spark. It is an immutable, partitioned collection of records that can be processed in parallel.
- A
- 20
In Spark, what is the difference between transformations and actions?
- A
Transformations are used only for SQL queries; actions are used for streaming
- B
Transformations are executed immediately; actions are delayed
- C
Transformations return results to the driver; actions define new datasets
- D
Transformations are lazy and define a new RDD; actions trigger computation and return a value or write to external storage
Correct answer
DTransformations are lazy and define a new RDD; actions trigger computation and return a value or write to external storage
Explanation
The content explains that Spark uses lazy evaluation: transformations (like map, filter) build up a lineage but do not execute until an action (like count, collect) is called. Actions trigger the actual computation.
- A
- 21
What is the purpose of caching (persisting) an RDD in Spark?
- A
To convert the RDD into a DataFrame
- B
To save the RDD data permanently to HDFS
- C
To shuffle the data across partitions
- D
To avoid recomputing the RDD when multiple actions are called on it
Correct answer
DTo avoid recomputing the RDD when multiple actions are called on it
Explanation
Caching an RDD stores its contents in memory (or disk) so that subsequent actions on the same RDD do not need to recompute it from its lineage, speeding up iterative algorithms.
- A
- 22
In Spark, what is a partition?
- A
A logical division of an RDD that is processed by a single executor task
- B
A way to split the driver program
- C
A stage in the execution plan
- D
A physical copy of data across multiple nodes
Correct answer
AA logical division of an RDD that is processed by a single executor task
Explanation
An RDD is divided into partitions, and each partition is processed by a single task in an executor. More partitions allow greater parallelism.
- A
- 23
Which of the following is true about Spark Streaming?
- A
It requires a separate cluster from the main Spark cluster
- B
It can only read from HDFS
- C
It processes each event individually in real time
- D
It processes data in micro-batches with a configurable interval
Correct answer
DIt processes data in micro-batches with a configurable interval
Explanation
Spark Streaming divides the incoming stream into small batches (micro-batches) and processes them using Spark's batch processing engine, providing near-real-time processing.
- A
- 24
When running Spark on YARN, what is the role of the ApplicationMaster?
- A
To compile the Spark code into bytecode
- B
To store the data to be processed
- C
To provide a web UI for the cluster
- D
To coordinate the execution of the Spark application, including requesting containers from YARN
Correct answer
DTo coordinate the execution of the Spark application, including requesting containers from YARN
Explanation
In YARN mode, the ApplicationMaster is responsible for negotiating resources from the ResourceManager and monitoring the execution of the Spark application tasks.
- A
- 25
Why does the content recommend using Spark SQL or DataFrames over RDDs when dealing with structured data?
- A
DataFrames are always faster than RDDs regardless of the operation
- B
RDDs cannot be used with SQL
- C
Spark SQL can optimize queries using schema information and catalyst optimizer, leading to better performance
- D
DataFrames consume less memory than RDDs
Correct answer
CSpark SQL can optimize queries using schema information and catalyst optimizer, leading to better performance
Explanation
The content explains that when using RDDs with lambda functions, Spark cannot optimize the execution plan. With Spark SQL/DataFrames, the Catalyst optimizer can apply optimizations like predicate pushdown and column pruning, resulting in faster execution.
- A
- 26
In the context of Hadoop cluster hardware, what does 'commodity hardware' mean?
- A
Virtual machines running on a single physical server
- B
Cheap, off-the-shelf hardware that may fail frequently
- C
High-end servers with redundant components
- D
Hardware that is specifically designed for Hadoop
Correct answer
BCheap, off-the-shelf hardware that may fail frequently
Explanation
Hadoop is designed to run on commodity hardware (inexpensive, standard servers) because it can tolerate failures through replication and re-execution, unlike traditional systems that require expensive, reliable hardware.
- A
- 27
What is the purpose of the Sqoop tool in the Hadoop ecosystem?
- A
To efficiently transfer bulk data between Hadoop and structured data stores like relational databases
- B
To process graph data
- C
To manage cluster resources
- D
To stream real-time data from web servers into HDFS
Correct answer
ATo efficiently transfer bulk data between Hadoop and structured data stores like relational databases
Explanation
Sqoop is used to import data from relational databases (e.g., Oracle, MySQL) into Hadoop and export data back to those databases.
- A
- 28
How does Hive handle data with different schemas?
- A
It uses a 'schema-on-read' approach, applying the schema only when the data is queried
- B
It enforces a strict schema at write time
- C
It automatically converts all data to a common schema
- D
It requires all data to have the same schema before loading
Correct answer
AIt uses a 'schema-on-read' approach, applying the schema only when the data is queried
Explanation
Hive uses schema-on-read, meaning the data is stored as is (e.g., as text files) and the schema is applied at query time. This allows flexibility to handle various data formats.
- A
- 29
In the content, what is the significance of the 'DataNode' process in HDFS?
- A
It tracks the health of the cluster
- B
It manages the file system namespace
- C
It stores actual data blocks and serves read/write requests from clients
- D
It compresses data before storage
Correct answer
CIt stores actual data blocks and serves read/write requests from clients
Explanation
DataNodes are the slave nodes in HDFS that store the actual data blocks and perform read/write operations as instructed by the NameNode.
- A
- 30
What is the main reason Spark is considered a 'unified analytics engine'?
- A
It can run on any cluster manager
- B
It supports multiple workloads (batch, streaming, SQL, ML, graph) within a single platform
- C
It replaces all Hadoop components
- D
It is the only engine that can process both structured and unstructured data
Correct answer
BIt supports multiple workloads (batch, streaming, SQL, ML, graph) within a single platform
Explanation
The content highlights that Spark unifies data processing by providing libraries for SQL, streaming, machine learning, and graph processing, all on the same engine, eliminating the need to learn multiple separate tools.
- A
- 31
In HDFS, what happens when a file is deleted?
- A
The file is moved to a trash directory for a configurable period before being permanently deleted
- B
The file is compressed and archived
- C
The file is immediately erased from all disks
- D
The file's metadata is deleted but the data blocks remain
Correct answer
AThe file is moved to a trash directory for a configurable period before being permanently deleted
Explanation
HDFS has a trash feature (similar to Windows recycle bin) that temporarily stores deleted files. They can be recovered until the trash is emptied or the retention period expires.
- A
- 32
What is the role of ZooKeeper in a Hadoop cluster?
- A
To provide distributed coordination and synchronization for services like NameNode high availability
- B
To monitor cluster health
- C
To act as a resource manager
- D
To store HDFS metadata
Correct answer
ATo provide distributed coordination and synchronization for services like NameNode high availability
Explanation
ZooKeeper is used for coordination in distributed systems. In Hadoop, it enables automatic failover of the NameNode by maintaining the active/standby state.
- A
- 33
In the context of the content, what is the main advantage of using a NoSQL database like HBase over HDFS for random access?
- A
HBase stores data in a relational format
- B
HBase provides indexes for fast random reads and writes, whereas HDFS is optimized for sequential scans
- C
HBase does not require a schema
- D
HBase is cheaper than HDFS
Correct answer
BHBase provides indexes for fast random reads and writes, whereas HDFS is optimized for sequential scans
Explanation
The content mentions that HBase (a NoSQL database on HDFS) supports random read/write access to individual records, unlike HDFS which is designed for batch processing and does not support efficient random access.
- A
- 34
What is the purpose of the 'partitioning' feature in Hive?
- A
To divide data into separate physical tables
- B
To split data across multiple clusters
- C
To organize data into subdirectories based on partition keys, allowing queries to skip irrelevant data and improve performance
- D
To enforce data integrity constraints
Correct answer
CTo organize data into subdirectories based on partition keys, allowing queries to skip irrelevant data and improve performance
Explanation
Partitioning in Hive creates subdirectories for each unique value of the partition column. When a query filters on that column, only the relevant subdirectories are scanned, reducing I/O and improving performance.
- A
- 35
In Spark, what is a 'stage'?
- A
A partition within an RDD
- B
A set of tasks that can be executed together without shuffling data
- C
A grouping of actions
- D
A phase of the application where transformations are applied
Correct answer
BA set of tasks that can be executed together without shuffling data
Explanation
A stage in Spark's execution plan consists of tasks that process data in a pipelined fashion without needing to shuffle data across the network. Stages are separated by shuffle operations.
- A
- 36
What does the 'flatMap' transformation do in Spark?
- A
It applies a function to each element and returns a sequence of elements, flattening the result
- B
It applies a function to each element and returns a single element
- C
It filters out null values
- D
It partitions the data into a flat structure
Correct answer
AIt applies a function to each element and returns a sequence of elements, flattening the result
Explanation
flatMap is similar to map but each input element can be mapped to zero or more output elements, and the results are flattened into a single RDD.
- A
- 37
In the content, why is Hadoop considered suitable for data warehousing?
- A
It provides a SQL-like interface through Hive and can store and process large volumes of structured data
- B
It supports ACID transactions
- C
It is faster than traditional data warehouses
- D
It guarantees real-time query responses
Correct answer
AIt provides a SQL-like interface through Hive and can store and process large volumes of structured data
Explanation
Hadoop, with Hive, acts as a data warehouse where data can be stored cheaply and queried using SQL. However, it is not real-time and does not support full ACID transactions (though newer versions add limited support).
- A
- 38
What is the 'lazy evaluation' in Spark?
- A
Spark evaluates transformations only when the data is cached
- B
Spark evaluates actions lazily
- C
Spark delays the execution of transformations until an action is called, allowing optimization of the execution plan
- D
Spark executes all transformations eagerly to provide immediate results
Correct answer
CSpark delays the execution of transformations until an action is called, allowing optimization of the execution plan
Explanation
Lazy evaluation means that transformations are not executed immediately; instead, they build a lineage. When an action is invoked, Spark optimizes and executes the entire Directed Acyclic Graph (DAG) of transformations.
- A
- 39
In the content, what is the purpose of using Flume in a Big Data pipeline?
- A
To schedule batch jobs
- B
To transfer data between Hadoop and relational databases
- C
To collect and ingest streaming data (e.g., log files) into HDFS
- D
To process data in real time
Correct answer
CTo collect and ingest streaming data (e.g., log files) into HDFS
Explanation
Flume is designed to collect large amounts of streaming data (like log files) from various sources and reliably deliver it to centralized storage like HDFS.
- A
- 40
What is a key limitation of Hive for real-time processing?
- A
Hive queries are converted into MapReduce jobs which have high latency, making them unsuitable for real-time
- B
Hive requires data to be in a specific file format
- C
Hive does not support SQL queries
- D
Hive can only process unstructured data
Correct answer
AHive queries are converted into MapReduce jobs which have high latency, making them unsuitable for real-time
Explanation
Hive was originally designed for batch processing via MapReduce, which introduces significant latency. Later versions with Tez/Spark improve speed but still not real-time.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.