What is a data pipeline? What are its stages?
Why they ask this
It is the opening question of a data engineering screen, and the answer shows whether the candidate thinks in stages or in tools.
Say this
A data pipeline is an automated system that moves data from where it is produced to where it is used, changing its shape on the way. Its stages are ingestion, storage, processing or transformation, serving, and the orchestration and monitoring around them.
The reasoning
A pipeline exists because the place data is made, an app database, a payment service, a sensor, is the wrong place to analyse it. The pipeline copies the data out, cleans it, reshapes it, and lands it where analysts, dashboards and models can read it, on a schedule or continuously.
The stages are the same in every design. Ingestion captures data from sources, by pulling files or query results, or by receiving events. Storage holds it, usually in object storage as files. Transformation cleans, joins and aggregates it. Serving exposes the result through a warehouse, a table format or an API.
Two things sit around the stages. Orchestration decides what runs when, and in what order, with retries. Observability watches each stage for failures, lateness and wrong numbers, and tells someone.
A good interview answer names the stages, then says what each one must guarantee. Ingestion must not lose events. Storage must be replayable. Transformation must be idempotent. Serving must be fresh enough for its readers.
The answer most people give
"A pipeline is an ETL script that runs every night." That is one pipeline. The definition has to cover streams, replay, and the monitoring that makes the script a system.
They’ll ask next
Which stage owns deduplication, and why does the answer depend on where duplicates are created?
