# Design a data loss prevention system: system design interview question

> Outbound data control: safe release, accurate detection, policy freshness, and private audit evidence.

Source: https://sysround.com/questions/design-data-loss-prevention-system
Updated: 2026-11-05


Difficulty: hard. Levels: Senior, Staff+.

## How the interviewer opens it

"Design a system that detects sensitive information in uploads, messages, and file transfers that leave an organization. The system must enforce configurable policies without exposing sensitive content or causing excessive delays."

## What to clarify first

- Channels and control
- Scale and content size
- Read and write mix
- Sensitive data and formats
- Policy behavior
- Latency
- Consistency and availability
- Content privacy
- Durability and audit retention
- Scope limits

## Scope of a strong answer

Core requirements:

- Inspect outbound messages, uploads, and file transfers from managed channels
- Detect sensitive data in supported content
- Apply configurable allow, warn, and block policies
- Record policy decisions without raw content

Usually out of scope:

- Traffic from unmanaged devices or applications
- Decryption without access to the content keys
- Custom model training
- Removal of data after external delivery

## What interviewers probe

### Release of outbound content

The system sees bytes before it knows whether a transfer is safe. An early release makes a later block ineffective.

### Detection quality

Sensitive data appears in many formats. Broad matches stop legitimate work, while weak extraction misses data that policy must block.

### Policy changes and service failures

Every channel must apply policy changes within thirty seconds. Slow checks and failed services can turn that limit into data exposure.

### Access to sensitive content

The service handles the secrets it must protect. Debug tools and audit records can create another route for data loss.

## Common mistakes

- The system inspects content only after external delivery.
- The design assumes that the system can read every encrypted channel.
- The design ignores false blocks and the user path for warnings.
- The system reuses an approval after the content or destination changes.
- The system copies sensitive content into logs, traces, or audit records.
- The system allows stale policies or unlimited queues without a clear failure rule.

## The bar by level

- **Senior:** The candidate binds decisions to exact actions. The design handles format extraction, false blocks, bounded resource use, policy updates, and durable audits within the latency targets.
- **Staff+:** The candidate defines guarantees at the moment of release and proves the policy freshness bound across failures. The design addresses bypass paths, parser attacks, metadata exposure, and safe policy activation.

Practice this question with an AI interviewer: https://sysround.com/practice/new?problem=data-loss-prevention


---
SysRound (https://sysround.com) is an AI practice tool for system design interviews. It has a voice or typed AI interviewer and a shared whiteboard. At the end, you get feedback on each skill and a model answer. The AI feedback can be wrong.
