Skip to content
Preptima

Spark & Big Data interview questions

Partitioning and shuffles, skew, joins at scale, catalyst and lazy evaluation, and cluster tuning.

4 questions in Data & AI Engineering.

hard4

hardDesignScenario

Your Spark batch pipeline now needs results inside a minute. Do you move to Flink, and what breaks if you do?

Usually not yet. Itemise the minute across source, trigger interval, processing and read visibility, because a few-second micro-batch in Structured Streaming often fits it. Flink earns the move at sub-second latency or per-record state, and what breaks is the operational model: a long-lived job whose state you must migrate, and a sink that must be idempotent.

6 minmid, senior, staff
hardDesignScenario

A graph of two billion edges will not fit on one machine and the algorithm needs neighbours. How do you partition it?

Check the premise first, because two billion edges as vertex id pairs is about 32GB and that fits in one large machine. If it genuinely must be distributed, partition edges rather than vertices, since real graphs are power-law and a single high-degree vertex under an edge cut makes its machine the straggler that every synchronous superstep waits for.

6 minsenior, staff