InterviewStack.io LogoInterviewStack.io

Handling Late and Out Of Order Data Questions

Design systems to handle events that arrive late or out of order. Implement watermarking, windowing strategies, and allowed lateness policies. Decide when to wait for late data vs. when to close windows.

HardTechnical
46 practiced
Formal semantics: define what it means for a windowed aggregation to be 'final' in the presence of allowed lateness and triggers. Provide examples showing non-deterministic outputs if watermarks are aggressive and how to reason about result correctness.
HardSystem Design
44 practiced
Hard system design: build a scalable streaming analytics system that provides near-real-time dashboards while guaranteeing final daily aggregates are correct despite up to 24-hour lateness. Requirements: 100M events/min peak, multi-tenant, 3-second dashboard latency for provisional numbers, final numbers reconciled within 24 hours. Describe architecture, buffering, watermarking, storage, recompute, and reconciliation.
HardTechnical
57 practiced
Propose a machine-learning-based approach to predict watermark lag dynamically per topic, using historical arrival delays. Describe features you would use, the target label, training data generation, model choice, and how you'd integrate predictions into a production watermarking strategy.
EasyTechnical
42 practiced
You observe duplicated events caused by retries at the ingestion layer and some duplicates arrive late. Describe three practical deduplication strategies for streaming pipelines that must handle out-of-order and late arrivals. For each, list pros, cons, and required state or metadata.
EasyTechnical
50 practiced
List and contrast the main window types used in stream processing (tumbling, sliding, session). Given the following events (event_time in minutes): E1=2, E2=4, E3=7, describe which tumbling-5s windows and a session-window (gap=3) each event belongs to.

Unlock Full Question Bank

Get access to hundreds of Handling Late and Out Of Order Data interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.