InterviewStack.io LogoInterviewStack.io

Data Pipeline Scalability and Performance Questions

Design data pipelines that meet throughput and latency targets at large scale. Topics include capacity planning, partitioning and sharding strategies, parallelism and concurrency, batching and windowing trade offs, network and I O bottlenecks, replication and load balancing, resource isolation, autoscaling patterns, and techniques for maintaining performance as data volume grows by orders of magnitude. Include approaches for benchmarking, backpressure management, cost versus performance trade offs, and strategies to avoid hot spots.

MediumTechnical
39 practiced
Your Kafka + Flink consumers report sustained high CPU and falling throughput. Provide an investigation checklist to determine whether the CPU is due to (a) inefficient user code, (b) expensive deserialization, (c) GC, (d) network/IO waits, or (e) partition hotspots. For each item list the commands, logs, or metrics you would collect.
MediumTechnical
34 practiced
A Spark job joins two 1TB datasets causing heavy shuffle and frequent OOMs. The job aggregates metrics by user_id and writes results. Propose a prioritized set of optimizations (code changes, Spark config, and infra changes) to reduce shuffle, memory pressure, and runtime, and explain the expected impact of each.
HardTechnical
37 practiced
Design a consumer-group partition-assignment algorithm for a streaming framework that adapts to heterogeneous consumer resources (CPU/memory) and minimizes rebalance churn. Describe the assignment scoring function, data structures, how to handle joins/leaves of consumers incrementally, and complexity analysis.
MediumTechnical
38 practiced
You must produce a benchmark plan before a 100x traffic increase. Describe what to measure (e.g., throughput, P95/P99 latency, error rates), data generation strategies, tools to use (e.g., custom producers, Locust, JMeter), workload patterns (steady, spike, chaos), and how to interpret results to inform capacity and architecture changes.
MediumTechnical
36 practiced
You detect a hot partition in Kafka: one partition has extremely high ingress and consumer lag vs others. Programmatically how would you detect such hot partitions, and what safe remediation steps (partition reassignment, key salting, adding partitions, producer-side changes) would you take to minimize downtime and ordering disruption?

Unlock Full Question Bank

Get access to hundreds of Data Pipeline Scalability and Performance interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.