0
0
Hadoopdata~20 mins

Why Hadoop security protects sensitive data - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Hadoop Security Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why is Hadoop security important for sensitive data?

Which of the following best explains why Hadoop security is essential for protecting sensitive data?

AIt speeds up data processing by optimizing resource allocation.
BIt prevents unauthorized users from accessing or modifying data stored in Hadoop clusters.
CIt automatically deletes old data to save storage space.
DIt converts all data into encrypted formats without user control.
Attempts:
2 left
💡 Hint

Think about what happens if anyone can read or change your data without permission.

Predict Output
intermediate
2:00remaining
What is the output of this Hadoop permission check code?

Given the following pseudo-code checking user permissions in Hadoop, what will be the output?

Hadoop
user = 'alice'
permissions = {'alice': ['read', 'write'], 'bob': ['read']}
if 'write' in permissions.get(user, []):
    print('Access granted')
else:
    print('Access denied')
AAccess granted
BAccess denied
CSyntaxError
DKeyError
Attempts:
2 left
💡 Hint

Check if 'alice' has 'write' permission in the dictionary.

data_output
advanced
2:30remaining
Result of Hadoop ACLs filtering sensitive files

Consider a Hadoop Access Control List (ACL) that allows only users in group 'finance' to read files tagged as 'sensitive'. Given the following data, which files will user 'john' (in group 'finance') see?

Hadoop
files = [
  {'name': 'report1.csv', 'tags': ['sensitive']},
  {'name': 'report2.csv', 'tags': ['public']},
  {'name': 'budget.xlsx', 'tags': ['sensitive']},
  {'name': 'notes.txt', 'tags': ['public']}
]
user_groups = {'john': ['finance'], 'mary': ['marketing']}

visible_files = [f['name'] for f in files if ('sensitive' in f['tags'] and 'finance' in user_groups.get('john', [])) or 'public' in f['tags']]
print(visible_files)
A['report1.csv', 'budget.xlsx', 'report2.csv', 'notes.txt']
B['report1.csv', 'budget.xlsx']
C['report2.csv', 'notes.txt']
D[]
Attempts:
2 left
💡 Hint

Remember that 'john' can see sensitive files because he is in 'finance' and all public files.

🔧 Debug
advanced
2:00remaining
Identify the error in this Hadoop encryption code snippet

What error will this Python-like Hadoop encryption code raise?

Hadoop
def encrypt_data(data, key):
    encrypted = ''
    for char in data:
        encrypted += chr(ord(char) + key)
    return encrypted

result = encrypt_data('data', '3')
print(result)
ANo error, prints encrypted string
BValueError: chr() arg not in range(0x110000)
CNameError: name 'key' is not defined
DTypeError: unsupported operand type(s) for +: 'int' and 'str'
Attempts:
2 left
💡 Hint

Check the types of variables used in arithmetic operations.

🚀 Application
expert
2:30remaining
Which Hadoop security feature best protects data at rest?

Among the following Hadoop security features, which one specifically protects sensitive data stored on disk from unauthorized access?

AMapReduce job tracking
BKerberos authentication
CTransparent Data Encryption (TDE)
DYARN resource scheduling
Attempts:
2 left
💡 Hint

Think about encryption that happens automatically when data is saved.