Hadoop Overview
- 25Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary reason data has been converting into big data?
What is the primary reason data has been converting into big data?
25 questions
- 1
What is the primary reason data has been converting into big data?
- A
The rise of social media platforms generating vast amounts of user data
- B
The decreasing cost of data storage hardware
- C
The increasing processing power of traditional systems
- D
The adoption of data compression algorithms
Correct answer
AThe rise of social media platforms generating vast amounts of user data
Explanation
The tutorial highlights social media, along with smart devices and IoT, as a major driver of big data growth, with billions of users generating data every day.
- A
- 2
According to Cisco, which of the following is a major reason for the rise of data?
- A
Reduction in internet bandwidth costs
- B
Decreased usage of social media
- C
Increasing popularity of desktop computers
- D
Adapting to smarter mobile devices
Correct answer
DAdapting to smarter mobile devices
Explanation
Cisco's white paper mentions three reasons: adapting to smarter mobile devices, defining cell network advances, and reviewing tiered pricing.
- A
- 3
Which of the 5Vs of big data refers to the inability of traditional systems to process the sheer amount of data?
- A
Volume
- B
Velocity
- C
Variety
- D
Veracity
Correct answer
AVolume
Explanation
Volume refers to the huge amount of data that traditional systems cannot handle. The other Vs address other aspects: variety (different types), velocity (speed), veracity (trustworthiness), and value (usefulness).
- A
- 4
According to the tutorial, what percentage of data is unstructured?
- A
95%
- B
90%
- C
80%
- D
70%
Correct answer
B90%
Explanation
The tutorial states that almost 90% of data is unstructured, making it a key challenge for traditional systems.
- A
- 5
What is the primary problem that Hadoop solves?
- A
Storing and processing large datasets in a parallel and distributed fashion
- B
Providing real-time data processing for all applications
- C
Eliminating the need for data replication
- D
Replacing relational databases for all data storage needs
Correct answer
AStoring and processing large datasets in a parallel and distributed fashion
Explanation
Hadoop is a framework designed to store and process large datasets in parallel and distributed manner, addressing the limitations of traditional systems.
- A
- 6
In Hadoop's master/slave architecture, which component is the master in HDFS?
- A
NameNode
- B
ResourceManager
- C
DataNode
- D
NodeManager
Correct answer
ANameNode
Explanation
In HDFS, the NameNode is the master node that manages the DataNodes (slaves).
- A
- 7
What is the role of the Secondary NameNode?
- A
To perform checkpointing by merging the edit log with the FS image
- B
To store a backup of all data blocks
- C
To act as a standby NameNode in case of failure
- D
To manage the replication factor of data blocks
Correct answer
ATo perform checkpointing by merging the edit log with the FS image
Explanation
The Secondary NameNode performs checkpointing, which combines the edit log with the FS image to create an updated FS image. It is not a backup for the NameNode.
- A
- 8
Which two files does HDFS use to maintain metadata?
- A
Block report and heartbeat log
- B
NameNode data and DataNode data
- C
Replication file and storage log
- D
FS image and edit log
Correct answer
DFS image and edit log
Explanation
HDFS maintains metadata using the FS image (containing all modifications since NameNode start) and the edit log (containing recent changes).
- A
- 9
What is the default block size in HDFS?
- A
64 MB
- B
256 MB
- C
512 MB
- D
128 MB
Correct answer
D128 MB
Explanation
The default block size in HDFS is 128 MB.
- A
- 10
A file of 380 MB is stored in HDFS. How many blocks will it be divided into?
- A
5
- B
3
- C
4
- D
2
Correct answer
B3
Explanation
380 MB divided by 128 MB per block gives 2 full blocks and a partial block, so a total of 3 blocks (128 MB, 128 MB, and 124 MB).
- A
- 11
What is the default replication factor in HDFS?
- A
1
- B
4
- C
2
- D
3
Correct answer
D3
Explanation
By default, each data block is replicated three times across the cluster to provide fault tolerance.
- A
- 12
How does HDFS provide fault tolerance?
- A
By compressing data to reduce storage footprint
- B
By using RAID technology on each node
- C
By backing up data to an external server daily
- D
By storing multiple replicas of each data block across different nodes
Correct answer
DBy storing multiple replicas of each data block across different nodes
Explanation
HDFS replicates each block (default 3 copies) so that if one node fails, the data is still available from other nodes.
- A
- 13
In the HDFS write pipeline, what is the first step?
- A
The client reads the file from the local disk
- B
The client requests a list of DataNodes from the NameNode
- C
The NameNode sends the data to all DataNodes simultaneously
- D
The client directly writes to the first DataNode
Correct answer
BThe client requests a list of DataNodes from the NameNode
Explanation
The client first contacts the NameNode to get the IP addresses of three DataNodes where the block will be replicated.
- A
- 14
During the HDFS write operation, which DataNode sends the final acknowledgment to the client?
- A
The NameNode
- B
The last DataNode in the pipeline
- C
The first DataNode in the pipeline
- D
The Secondary NameNode
Correct answer
CThe first DataNode in the pipeline
Explanation
Acknowledgments flow in reverse order: the last DataNode acknowledges to the previous, and finally the first DataNode acknowledges the client.
- A
- 15
In MapReduce, what is the input to the mapper function?
- A
A key-value pair where the key is the word and the value is the frequency
- B
A list of all words from the entire file
- C
A key-value pair where the key is the byte offset and the value is a line of text
- D
A set of already aggregated counts
Correct answer
CA key-value pair where the key is the byte offset and the value is a line of text
Explanation
The mapper receives input as key-value pairs: the key is the byte offset of the line, and the value is the line itself.
- A
- 16
What does the mapper output in the word count example?
- A
Key-value pairs where the key is a line number and the value is the line
- B
Key-value pairs where the key is a word and the value is 1
- C
Only the list of unique words
- D
A single key-value pair with the total count
Correct answer
BKey-value pairs where the key is a word and the value is 1
Explanation
The mapper tokenizes each line and emits each word with a hard-coded value of 1.
- A
- 17
In MapReduce, what is the purpose of the reducer?
- A
To shuffle and sort the mapper output
- B
To aggregate the intermediate values for each key
- C
To write the final output to HDFS
- D
To split the input file into smaller parts
Correct answer
BTo aggregate the intermediate values for each key
Explanation
The reducer receives a key and a list of values, then aggregates them (e.g., summing counts) to produce the final output.
- A
- 18
What is YARN?
- A
A tool for data ingestion into HDFS
- B
A distributed file system used by Hadoop
- C
A resource management layer for Hadoop that enables multiple data processing frameworks
- D
A programming model for big data processing
Correct answer
CA resource management layer for Hadoop that enables multiple data processing frameworks
Explanation
YARN (Yet Another Resource Negotiator) is the resource management layer in Hadoop that manages cluster resources and allows various processing frameworks to run.
- A
- 19
Which YARN component is responsible for launching the AppMaster?
- A
ApplicationMaster
- B
Container
- C
ResourceManager
- D
NodeManager
Correct answer
CResourceManager
Explanation
The ResourceManager receives job requests and instructs a NodeManager to launch an AppMaster for the application.
- A
- 20
In the map phase, what triggers a spill to disk?
- A
The map task finishes processing all records
- B
The circular buffer reaches 80% of its capacity
- C
The reducer requests intermediate data
- D
The NameNode runs out of memory
Correct answer
BThe circular buffer reaches 80% of its capacity
Explanation
A background thread starts spilling when the buffer's content reaches the threshold (default 80%).
- A
- 21
Which Hadoop cluster mode is suitable for production environments?
- A
Single-node mode
- B
Multi-node cluster mode
- C
Pseudo-distributed mode
- D
Standalone mode
Correct answer
BMulti-node cluster mode
Explanation
Multi-node cluster mode distributes daemons across multiple machines, providing scalability and fault tolerance.
- A
- 22
Which Hadoop ecosystem tool is used to ingest unstructured data like social media data into HDFS?
- A
Flume
- B
Scoop
- C
Pig
- D
Hive
Correct answer
AFlume
Explanation
Flume is designed for ingesting unstructured and semi-structured data, especially from sources like social media.
- A
- 23
In the Pig use case, what delimiter is used in the Olympic dataset?
- A
Tab
- B
Space
- C
Comma
- D
Semicolon
Correct answer
ATab
Explanation
The tutorial specifies that fields are separated by a tab, so the PigStorage delimiter is set to '\t'.
- A
- 24
In Pig Latin, which command is used to display the contents of a relation?
- A
dump
- B
show
- C
display
- D
print
Correct answer
Adump
Explanation
The 'dump' command outputs the contents of a variable to the console.
- A
- 25
According to the tutorial, how many lines of MapReduce code are equivalent to 10 lines of Pig code?
- A
100
- B
20
- C
200
- D
50
Correct answer
C200
Explanation
The tutorial claims that 10 lines of Pig code equate to about 200 lines of MapReduce code.
- A

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