BigData / Data Lake Interview questions
How do you implement security and access control in Data Lakes?
Security in data lakes is multi-layered, encompassing authentication, authorization, encryption, network controls, and auditing. Unlike traditional databases with built-in security, data lakes require careful configuration across storage, compute, and metadata layers.
1. Authentication: Verify user identities using enterprise identity providers like Azure Active Directory, AWS IAM, or LDAP. Modern data lakes support Single Sign-On (SSO) and multi-factor authentication (MFA) for enhanced security.
2. Authorization (Access Control):
- Role-Based Access Control (RBAC): Assign permissions based on user roles (analyst, engineer, admin)
- Attribute-Based Access Control (ABAC): Dynamic permissions based on attributes like department, clearance level, or data classification
- ACLs (Access Control Lists): File/folder-level permissions in storage systems
- Table/Column-Level Security: Fine-grained controls using tools like Apache Ranger, AWS Lake Formation, or Azure Purview
- Row-Level Security: Filter data based on user context (e.g., sales reps see only their territory's data)
- Column Masking: Hide sensitive columns or apply masking (e.g., showing only last 4 digits of SSN)
3. Encryption:
- At Rest: Encrypt data in storage using AWS S3 server-side encryption, Azure Storage encryption, or customer-managed keys
- In Transit: Use TLS/SSL for all data movement
- Client-Side Encryption: Encrypt before uploading for maximum control
4. Network Security:
- VPC/VNet Isolation: Deploy data lakes in private networks
- Private Endpoints: Access storage without internet exposure
- Firewall Rules: Restrict access to specific IP ranges
- Service Endpoints: Direct routing between services
5. Data Classification and Tagging: Classify data by sensitivity (public, internal, confidential, restricted) and apply appropriate controls automatically.
6. Audit Logging: Log all access attempts, data modifications, and permission changes. Tools like AWS CloudTrail, Azure Monitor, and Apache Ranger Audit provide comprehensive logging.
7. Data Loss Prevention (DLP): Scan for sensitive data (PII, PHI, PCI) and enforce policies to prevent unauthorized sharing.
Best Practices:
- Implement principle of least privilege—grant minimum necessary permissions
- Use temporary credentials with automatic rotation
- Separate read and write permissions
- Implement break-glass procedures for emergency access
- Regularly audit permissions and remove unused accounts
- Use data classification tags to drive automatic policy enforcement
- Integrate with SIEM systems for security monitoring
More Related questions...