0
0
Hadoopdata~20 mins

HDFS encryption at rest in Hadoop - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
HDFS Encryption Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary purpose of HDFS encryption at rest?

HDFS encryption at rest is used to protect data stored in Hadoop Distributed File System. What is its main goal?

ATo enable faster network transfer of data blocks
BTo speed up data processing in Hadoop clusters
CTo compress data files for storage efficiency
DTo secure data stored on disk from unauthorized access
Attempts:
2 left
💡 Hint

Think about what 'encryption at rest' means in data security.

🧠 Conceptual
intermediate
1:30remaining
Which component manages encryption keys for HDFS encryption at rest?

In HDFS encryption at rest, which system is responsible for managing the encryption keys?

AKey Management Server (KMS)
BResourceManager
CDataNode
DNameNode
Attempts:
2 left
💡 Hint

Think about a service dedicated to handling keys securely.

data_output
advanced
2:00remaining
What is the output of the command to list encryption zones in HDFS?

Given the command hdfs crypto -listZones, what output will it produce if there are two encryption zones named /zone1 and /zone2?

Hadoop
hdfs crypto -listZones
A
Encryption zones:
/zone1
/zone2
B
/zone1
/zone2
CNo encryption zones found
D/zone1, /zone2
Attempts:
2 left
💡 Hint

Check the typical output format of hdfs crypto -listZones.

🔧 Debug
advanced
2:00remaining
Why does this HDFS encryption command fail with 'Key not found' error?

Consider the command hdfs crypto -createZone -keyName myKey -path /secure_data fails with error 'Key not found'. What is the most likely cause?

AThe path '/secure_data' is not a directory
BThe encryption key 'myKey' does not exist in the KMS
CThe user does not have permission to create encryption zones
DThe HDFS service is not running
Attempts:
2 left
💡 Hint

Focus on the error message about the key.

🚀 Application
expert
2:30remaining
How to verify if a file is stored in an HDFS encryption zone?

You want to check if the file /secure_data/file1.txt is encrypted by HDFS encryption at rest. Which command will give you this information?

Ahdfs crypto -listZones | grep /secure_data
Bhdfs fsck /secure_data/file1.txt -files -blocks -locations
Chdfs crypto -getZoneForPath /secure_data/file1.txt
Dhdfs crypto -listPathsInZone /secure_data
Attempts:
2 left
💡 Hint

Look for a command that returns the encryption zone for a specific path.