Design Marking-Based Row-Level Access Control for Shared Datasets

Last updated: November 29, 2026

Quick Overview

Design the access control layer for a data platform where each row of a dataset can carry security markings (for example a classification level, a country release tag, and a case compartment), and every query, export, and derived dataset must only expose rows the user is cleared for. Markings must propagate through pipelines so that a dataset built from marked inputs stays protected.

Palantir
System Design
Software Engineer
Palantir
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the access control layer for a data platform where each row of a dataset can carry security markings (for example a classification level, a country release tag, and a case compartment), and every query, export, and derived dataset must only expose rows the user is cleared for. Markings must propagate through pipelines so that a dataset built from marked inputs stays protected.

Palantir sells into defense, intelligence, and health customers where the security model is the product: Foundry and Gotham enforce markings and purpose-based access all the way through lineage and into AIP tools. The interviewer wants to see a design where enforcement cannot be bypassed by a new code path, where markings propagate through transforms, and where checks stay fast at query time.

What the Interviewer Expects
  • Define a clear policy model: markings as sets, users hold clearances, access requires holding all markings on a row
  • Enforce at a single choke point (query planner or storage read path), not in each application
  • Propagate markings through lineage so derived datasets inherit the union of input markings
  • Keep evaluation fast with bitset encodings and predicate pushdown into the scan
  • Handle revocation, auditing, and declassification explicitly
  • Discuss aggregate leakage (counts and joins that reveal hidden rows)
Key Topics to Cover
Mandatory access control
Row-level security
Lineage propagation
Policy evaluation
Audit logging
Predicate pushdown
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A user's clearance is revoked mid-session. How fast does it take effect, and what about results already cached or exported?
  • An analyst joins a marked table with an unmarked one and publishes a chart. What markings does the chart carry?
  • How do you let someone remove a marking (declassify) a derived dataset safely?
  • How would this work in an air-gapped deployment where the policy service cannot reach a central server?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: every row carries a set of markings; users and groups hold clearances; a user sees a row only if they hold every marking on it (mandatory, conjunctive). Datasets also carry dataset-level m...

High-Level Design

Components:

  • Marking service: catalog of markings, their hierarchy (SECRET implies CONFIDENTIAL), and who may grant or remove each.
  • Identity and clearance service: resolves a user to an eff...

Submit Your Answer
Markdown supported

Related Questions