InfosysData EngineerAuthentication & Authorization

As an Infosys Data Engineer, how would you design a comprehensive authentication and authorization strategy for a data lake containing sensitive customer information?

Infosys Data Engineer 3–5 Years Authentication & Authorization

5 min readUpdated

To design a comprehensive authentication and authorization strategy for a data lake at Infosys, I would leverage a combination of cloud-native Identity and Access Management (IAM) services, data governance frameworks, and fine-grained access controls. The core principles would be least privilege, segregation of duties, and continuous monitoring. Authentication would primarily integrate with an enterprise identity provider, while authorization would focus on attribute-based access control (ABAC) or role-based access control (RBAC) at various layers of the data lake, including object storage, catalog, and compute engines.

Designing for Granular Access

For authentication, I would integrate the data lake’s services with Infosys’s existing enterprise identity provider, such as Azure Active Directory or Okta, using standard protocols like SAML or OpenID Connect. This centralizes user identity management. For authorization, the strategy needs to be granular. Data engineers will require access to specific raw data, while analysts might only need access to aggregated, anonymized datasets. I would define roles or attributes based on job function, data sensitivity, and project requirements. Tools like AWS Lake Formation, Azure Purview, or Databricks Unity Catalog provide capabilities to define policies at the table, column, or row level, ensuring users only see the data they are permitted to access.

Best Practice

A key best practice is to implement ABAC where possible, as it offers greater flexibility and scalability than traditional RBAC, especially in large, dynamic data environments. With ABAC, access decisions are made at runtime based on attributes of the user (e.g., department, security clearance), the resource (e.g., data sensitivity, classification), and the environment (e.g., source IP). This approach minimizes policy sprawl and simplifies management as data assets grow. Additionally, all access requests and decisions should be logged for auditability and compliance, integrating with a security information and event management SIEM system.

Edge case interviewers probe for

Interviewers often probe on how to handle cross-account or cross-organization data sharing securely without duplicating data or relaxing security. For this, I would propose using resource-based policies combined with federation. For example, in AWS, a bucket policy could grant access to an external AWS account’s IAM role, and that external account would then assume the role. This ensures data remains in its original location, and access is explicitly managed and auditable at both ends, respecting the principle of least privilege.

Common mistake

A common mistake is granting overly broad permissions, such as s3:* or full-access to entire buckets or data catalogs. This violates the principle of least privilege and significantly increases the attack surface. Another mistake is relying solely on network-level controls without implementing robust IAM policies, assuming that internal network access implies authorization. Data lake security must be multi-layered, with identity-centric controls as the primary enforcement point.

What the interviewer is checking

The interviewer is checking for your understanding of fundamental security principles like least privilege and segregation of duties in a data context. They want to see your knowledge of cloud-native IAM services, granular access control mechanisms (RBAC/ABAC), and how to integrate with enterprise identity providers. Your ability to think about auditability, compliance, and handling complex scenarios like cross-organizational access demonstrates a mature approach to data security.

Imagine a huge, organized library filled with every book imaginable, from thrilling novels to top-secret government documents. Authentication is like your library card: it proves you are a valid member and lets you enter the building. Without it, you cannot even get through the front door, regardless of what books you might want to read.

Once inside, authorization is what determines which specific bookshelves, reading rooms, or even individual books you are allowed to access. A regular member might browse the fiction section, but only a librarian might access the rare archives, and a government official might be the only one allowed into the classified documents vault. Your library card (authentication) confirms who you are, and the rules of the library (authorization) dictate what you can actually do.

Why interviewers ask this

Interviewers ask this to assess your foundational understanding of data security principles, your practical knowledge of cloud IAM solutions, and your ability to design secure data architectures that protect sensitive information while enabling necessary access.

What a strong answer signals

A strong answer demonstrates a comprehensive understanding of authentication and authorization, an awareness of granular access controls, and a practical approach to integrating these with enterprise identity management and compliance requirements.

Common follow-ups

  • How would you handle user deprovisioning and access revocation efficiently?
  • Describe the difference between fine-grained authorization and coarse-grained authorization in a data lake context.
  • What role does encryption play in a data lake security strategy, and how does it integrate with access controls?

Advanced variation

Design a solution for a multi-tenant data lake where each tenant’s data must be completely isolated, but specific cross-tenant analytical queries are occasionally required under strict governance.

Consider an Infosys client building a new data lake to store customer transaction history, including personally identifiable information PII. Initially, developers might grant broad access to entire S3 buckets to speed up development. However, before production, a data engineer would implement a strategy to restrict access: authentication via corporate SSO, authorization allowing only specific teams access to masked or aggregated PII for analytics, while only compliance officers have direct access to raw PII in isolated environments, all audited.

User Identity Provider (SSO, SAML) Data Lake IAM (RBAC/ABAC Policies) Granular Access Data Storage (S3 Buckets) Authenticates Authz Token Access Data
  1. 1Integrate with an enterprise identity provider for centralized user authentication using standard protocols.
  2. 2Implement granular authorization using RBAC or ABAC at the object, table, column, or row level within the data lake.
  3. 3Apply the principle of least privilege, ensuring users and services only have the minimum necessary access.
  4. 4Log all access requests and policy decisions for comprehensive auditability and compliance.
  5. 5Avoid overly broad permissions and consider multi-layered security, combining IAM with network controls.