0
0
Hadoopdata~10 mins

HDFS encryption at rest in Hadoop - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable HDFS encryption zone creation.

Hadoop
hdfs crypto -createZone -keyName [1] -path /encrypted_data
Drag options to blanks, or click blank then click option'
Azone_key
Bdefault
Cencryption_key
Dmy_key
Attempts:
3 left
💡 Hint
Common Mistakes
Using a key name that does not exist in the KMS.
Forgetting to specify the path for the encryption zone.
2fill in blank
medium

Complete the command to list all encryption zones in HDFS.

Hadoop
hdfs crypto -listZones | grep [1]
Drag options to blanks, or click blank then click option'
Apath
Bencrypted
Czone
DkeyName
Attempts:
3 left
💡 Hint
Common Mistakes
Using grep with a keyword not present in the output.
Not using the crypto command before listZones.
3fill in blank
hard

Fix the error in the command to create a new encryption key in KMS.

Hadoop
hadoop key [1] create -size 128 -description "Data encryption key"
Drag options to blanks, or click blank then click option'
Akeyadmin
Bkeytool
Ckey
Dkey create
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'key' instead of 'keyadmin' causes command not found errors.
Incorrect subcommand syntax.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps file paths to their encryption status.

Hadoop
encryption_status = {file: [1] for file in files if files[file] [2] True}
Drag options to blanks, or click blank then click option'
Afiles[file]
B==
C!=
DTrue
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' causes wrong filtering.
Using a literal 'True' instead of accessing dictionary value.
5fill in blank
hard

Fill both blanks to create a dictionary of keys and their creation dates filtered by date.

Hadoop
filtered_keys = { for {BLANK_2}}, [2] in keys.items() if {{BLANK_3}} > '2023-01-01'
Drag options to blanks, or click blank then click option'
A{
Bkey
Cdate
D}
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the opening or closing braces.
Using wrong variable names in the loop.