Challenge - 5 Problems
Hadoop Roles Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Role of NameNode in Hadoop
What is the primary responsibility of the NameNode in a Hadoop cluster?
Attempts:
2 left
💡 Hint
Think about which node keeps track of where files are stored.
✗ Incorrect
The NameNode manages the metadata, such as file names, permissions, and locations of data blocks. It does not store actual data.
🧠 Conceptual
intermediate1:30remaining
Role of DataNode in Hadoop
Which of the following best describes the role of a DataNode in Hadoop?
Attempts:
2 left
💡 Hint
Consider which node physically holds the data.
✗ Incorrect
DataNodes store the actual data blocks and handle read/write requests from clients. They report back to the NameNode.
❓ data_output
advanced1:00remaining
DataNode Heartbeat Frequency
Given a Hadoop cluster where DataNodes send heartbeats every 3 seconds, how many heartbeats will a single DataNode send in 1 minute?
Attempts:
2 left
💡 Hint
Calculate how many 3-second intervals fit into 60 seconds.
✗ Incorrect
60 seconds divided by 3 seconds per heartbeat equals 20 heartbeats.
❓ Predict Output
advanced1:30remaining
NameNode Metadata Access Simulation
What is the output of this Python code simulating NameNode metadata access counts?
Hadoop
metadata_access = {'file1': 5, 'file2': 3, 'file3': 7}
most_accessed = max(metadata_access, key=metadata_access.get)
print(most_accessed)Attempts:
2 left
💡 Hint
max with key returns the key with the highest value.
✗ Incorrect
The max function with key=metadata_access.get returns the key with the highest access count, which is 'file3' with 7 accesses.
🔧 Debug
expert1:30remaining
DataNode Block Report Error Identification
What error will this Python code raise when simulating a DataNode sending a block report with a missing key?
Hadoop
block_report = {'block1': 'OK', 'block2': 'OK'}
print(block_report['block3'])Attempts:
2 left
💡 Hint
Accessing a dictionary with a missing key causes a specific error.
✗ Incorrect
Accessing a dictionary with a key that does not exist raises a KeyError in Python.