0
0
Hadoopdata~10 mins

Why Hadoop security protects sensitive data - Test Your Understanding

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

Complete the code to specify the Hadoop configuration property for enabling security.

Hadoop
conf.set("hadoop.security.authentication", "[1]")
Drag options to blanks, or click blank then click option'
Akerberos
Bnone
Csimple
Danonymous
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'simple' disables security, which is not recommended for sensitive data.
2fill in blank
medium

Complete the code to set the Hadoop property that enables data encryption at rest.

Hadoop
conf.setBoolean("[1]", true)
Drag options to blanks, or click blank then click option'
Adfs.encrypt.data.at.rest
Bdfs.encrypt.data.at.rest.enabled
Cdfs.encryption.enabled
Ddfs.encrypt.data.transfer
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing encryption at rest with encryption during data transfer.
3fill in blank
hard

Fix the error in the code that sets the Hadoop property for enabling audit logging.

Hadoop
conf.set("hadoop.security.audit.logger", "[1]")
Drag options to blanks, or click blank then click option'
Aorg.apache.hadoop.security.audit.AuditLoggerImpl.class
Borg.apache.hadoop.security.audit.AuditLogger
Corg.apache.hadoop.security.audit.AuditLoggerImpl$
Dorg.apache.hadoop.security.audit.AuditLoggerImpl
Attempts:
3 left
💡 Hint
Common Mistakes
Adding '.class' or '$' suffix causes runtime errors.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps user names to their encrypted home directories if their name length is greater than 4.

Hadoop
{user: home_dir[1] for user, home_dir in user_dirs.items() if len(user) [2] 4}
Drag options to blanks, or click blank then click option'
A.encrypt()
B.decrypt()
C>
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '.decrypt()' instead of '.encrypt()' or wrong comparison operator.
5fill in blank
hard

Fill all three blanks to create a dictionary that stores file names as keys in uppercase, their sizes as values, but only for files larger than 1000 bytes.

Hadoop
{ [1]: [2] for [3], size in files.items() if size > 1000 }
Drag options to blanks, or click blank then click option'
Afilename.upper()
Bsize
Cfilename
Dfile
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong variable names or not converting keys to uppercase.