0
0
Hadoopdata~20 mins

Apache Ranger for authorization in Hadoop - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Apache Ranger Authorization Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Apache Ranger's Role in Authorization

Which of the following best describes the primary function of Apache Ranger in a Hadoop ecosystem?

AIt provides centralized authorization and access control policies for Hadoop components.
BIt stores large datasets efficiently across distributed nodes.
CIt manages user authentication by verifying user identities before access.
DIt schedules and manages Hadoop cluster resources dynamically.
Attempts:
2 left
💡 Hint

Think about what controls who can do what with data in Hadoop.

data_output
intermediate
2:00remaining
Result of Ranger Policy Evaluation

Given a Ranger policy that allows user 'alice' to read data in HDFS path '/data/reports' but denies write access, what will be the result of the following action?

Action: User 'alice' attempts to write a file to '/data/reports/2024_report.csv'
AThe write action is allowed because no explicit deny exists.
BThe write action is allowed because 'alice' has read access.
CThe write action causes an authentication error.
DThe write action is denied because 'alice' does not have write permission.
Attempts:
2 left
💡 Hint

Read and write permissions are different; check what is explicitly allowed or denied.

🔧 Debug
advanced
2:30remaining
Identify the Cause of Access Denial in Ranger Logs

Review the following Ranger audit log snippet and identify why user 'bob' was denied access:

{
  "user": "bob",
  "resource": "/data/sales",
  "accessType": "read",
  "result": "DENIED",
  "policyId": 102,
  "reason": "No matching allow policy found"
}
AThe resource path '/data/sales' does not exist in HDFS.
BUser 'bob' is not authenticated in the Hadoop cluster.
CThere is no Ranger policy that explicitly allows 'bob' to read '/data/sales'.
DThe Ranger service is down, causing all access to be denied.
Attempts:
2 left
💡 Hint

Focus on the 'reason' field in the log.

🚀 Application
advanced
3:00remaining
Configuring Ranger Policy for a New User Group

You want to create a Ranger policy that allows the group 'data_scientists' to read and write to the HDFS directory '/projects/analytics'. Which of the following policy configurations will achieve this?

ACreate a policy with resource '/projects/analytics', assign 'data_scientists' group with 'read' and 'write' permissions.
BCreate a policy with resource '/projects/analytics', assign 'data_scientists' group with 'execute' permission only.
CCreate a policy with resource '/projects', assign 'data_scientists' group with 'read' permission only.
DCreate a policy with resource '/projects/analytics', assign individual users instead of groups.
Attempts:
2 left
💡 Hint

Check which permissions and resource path match the requirement.

visualization
expert
3:00remaining
Interpreting Ranger Audit Report Visualization

You have a bar chart showing the number of access requests by users over a week. The chart shows user 'carol' with a high number of denied requests compared to others. What is the most likely interpretation?

ACarol is not a registered user, so all requests are denied by default.
BCarol is frequently attempting actions without proper permissions, indicating possible misconfiguration or unauthorized attempts.
CCarol's requests are all successful; the chart is showing allowed requests mislabeled as denied.
DCarol has full access and the denials are due to system errors.
Attempts:
2 left
💡 Hint

High denied requests usually mean permission issues or unauthorized access attempts.