How the interviewer opens it
“Design a scalable data-processing pipeline. A company uses its output for operational reports.”
The prompt is vague on purpose. The first minutes are for you. Reduce the prompt to the core features and agree on the numbers before you draw.
What to clarify first
- Workload
- Scale and distribution
- Read and write mix
- Latency
- Event time and late events
- Correctness and availability
- Durability
- Retention and reprocessing
- Invalid events and schema changes
- Scope
The interviewer has the answers. In a SysRound round, Alex gives these answers, as a real interviewer does.
Scope of a strong answer
Core requirements
- Accept events and store them durably
- Compute minute counts and value totals by tenant and event type
- Serve recent minute summaries
- Reprocess retained events without interrupting current reports
Usually out of scope
- Arbitrary SQL queries over raw events
- Machine learning
- Joins with external data
- Operation across multiple regions
What interviewers ask about
- Event counts after failures
- Producer retries and processor recovery can repeat the same event. A correct checkpoint alone does not make external report writes correct.
- Report time and completeness
- Late events change earlier minutes. An idle source or incorrect timestamp can make the service close windows too early or retain state indefinitely.
- Load spikes and slow stages
- The input rate can exceed processor capacity fivefold. Tenant skew and downstream failures can create local overload before total capacity runs out.
- Historical corrections
- Historical corrections overlap live events. A report across corrected and unchanged dates must retain all summaries and show one consistent published view.
Common mistakes
- Choosing tools before defining the event contract and report semantics
- Treating message delivery guarantees as proof of correct report totals
- Ignoring duplicate-state size and checkpoint costs
- Using average input rates to justify the peak latency target
- Removing log records before the raw archive confirms complete coverage
- Publishing a partial historical replacement as if it contains every retained summary
The bar by level
- Senior (L5/E5)
- Defines event-time behavior and bounded state. Explains checkpoint and output correctness. Calculates peak backlog and handles tenant skew. Provides an isolated replay path with complete report coverage.
- Staff (L6+/E6+)
- Defines precise publication and recovery boundaries across live and historical work. Preserves consistent report reads across corrected and unchanged intervals. Quantifies state, checkpoint, storage, and recovery costs. Resolves archive failure, retention limits, ownership transfer, and rollback without weakening the stated guarantees.