The Data Engineering Field Guide
A working-knowledge reference on data engineering: what the job actually is, the concepts and architecture underneath every pipeline, how the major clouds and platforms implement it, how to build the whole thing for free, and the questions you're actually likely to be asked.
What Data Engineering Is
The short version, and how it differs from the roles around it.
Data engineering is the discipline of building and operating the systems that reliably move, store, and prepare data so that analysts, data scientists, applications, and AI systems can use it. If data modeling defines the structure of data and data architecture defines where it lives, data engineering is the discipline that actually builds, automates, and keeps running the pipelines that make both of those designs real, day after day, at whatever scale and reliability the business needs. It's fundamentally a software engineering discipline applied to data: the same instincts around testing, version control, monitoring, and failure handling that a backend engineer applies to a web service, applied instead to the systems that move and transform data.
A useful way to place it relative to nearby roles: a data analyst primarily answers business questions using data that already exists in a usable form; a data scientist primarily builds models and statistical analyses on top of prepared data; an analytics engineer (a role dbt itself popularized) sits between data engineering and analytics, focused specifically on the SQL-based transformation and modeling layer; a data engineer is responsible for everything upstream of that — getting raw data out of source systems reliably, landing it somewhere durable, and often building or maintaining the transformation and orchestration infrastructure analytics engineers and data scientists then build on top of. In smaller organizations these roles blur into one person; in larger ones they're distinct teams with real handoffs (and real friction) between them.
What data engineers build
Ingestion pipelines from source systems, orchestrated workflows that move and transform data on a schedule or in real time, the storage layer's structure and lifecycle, data quality checks and monitoring, and the infrastructure (often as code) all of that runs on.
What data engineers are judged on
Not just "does the pipeline work today" but does it keep working reliably as data volume grows, source systems change, and requirements shift — reliability, cost, and maintainability tend to matter more in this role than in almost any other data role.
If you only remember one sentence: "Data engineering is the discipline of reliably moving, storing, and preparing data at scale — it's software engineering applied to data infrastructure, sitting upstream of analytics engineering and data science and providing the foundation both depend on."
Core Concepts
The vocabulary that shows up in nearly every data engineering conversation.
ETL vs. ELT
ETL (Extract, Transform, Load) transforms data in a separate processing layer before loading the finished result into the target system — the historical norm when warehouses were too expensive or too slow to do heavy transformation work themselves. ELT (Extract, Load, Transform) loads raw data into the warehouse or lakehouse first and transforms it there afterward, taking advantage of modern cloud warehouses' cheap, elastic compute. ELT is now the dominant pattern for analytics use cases (it's the assumption dbt and most "modern data stack" tooling are built around), but ETL hasn't disappeared — it still shows up wherever transformation must happen before data lands for cost, compliance, or latency reasons (masking PII before it ever reaches a shared system, for instance).
Batch vs. streaming
Batch processing handles data in discrete, scheduled chunks (hourly, nightly) — simpler to build, easier to reason about and to reprocess, and sufficient for the large majority of analytics use cases where near-real-time isn't actually a requirement. Stream processing handles data continuously, record by record or in small micro-batches, as it arrives — necessary when the business genuinely needs low-latency answers (fraud detection, real-time personalization, operational alerting) but meaningfully more complex to build, test, and operate: you're now reasoning about out-of-order events, watermarks, windowing, and exactly-once vs. at-least-once delivery semantics instead of just "did last night's job succeed."
Streaming is not simply "batch, but faster." It introduces genuinely different failure modes and design questions — late-arriving data, event-time vs. processing-time, and windowing semantics — that don't exist in batch at all. Reaching for streaming because it sounds more sophisticated, when the actual business requirement is "a dashboard refreshed nightly is fine," is a classic overengineering mistake interviewers listen for.
Idempotency and pipeline reliability
A pipeline step is idempotent if running it multiple times with the same input produces the same result as running it once — critically important because failures and retries are a certainty at scale, not an edge case. A non-idempotent load (a naive INSERT with no dedup logic, for example) will double-count data the moment a job is safely retried after a partial failure. Designing for idempotency (via MERGE/upsert logic, deterministic partition overwrites, or dedup keys) is one of the most consistently underrated skills in the discipline — it's the difference between a pipeline that's merely working and one that's actually trustworthy under failure.
Schemas, schema evolution, and data contracts
Source systems change — a column gets renamed, a type changes, a new required field appears — and a pipeline has to have an explicit strategy for that, not just hope it doesn't happen. Schema evolution handling ranges from permissive (accept new columns automatically, common in schema-on-read lake setups) to strict (fail loudly on any unexpected schema change, forcing a human decision). A data contract makes this explicit and bidirectional: the team that owns a source system commits to a versioned schema and change-notification process, so downstream pipelines can depend on a stable interface instead of silently breaking whenever an unrelated team ships an unrelated change.
Architecture & Components
The pieces every real data platform is assembled from.
A typical reference architecture
| Layer | Job | Representative tools |
|---|---|---|
| Ingestion | Extract data from sources into the platform, batch or streaming | Fivetran, Airbyte, Kafka, Debezium, Openflow |
| Storage | Durable, scalable landing zone for raw and processed data | S3/ADLS/GCS + Iceberg/Delta, Snowflake, BigQuery |
| Processing/transformation | Clean, join, and model data into trusted structures | dbt, Spark, Flink, Snowpark |
| Orchestration | Schedule, sequence, and retry work across every other layer | Airflow, Dagster, Prefect |
| Serving | Expose modeled data to its consumers | BI tools, semantic layers, reverse ETL, APIs |
| Observability & governance | Know when something's wrong and who's allowed to see what | Monte Carlo, Great Expectations, DataHub, dbt tests |
Orchestration and the DAG
Almost every non-trivial pipeline is expressed as a DAG (directed acyclic graph) of tasks with dependencies between them, and an orchestrator's job is scheduling, sequencing, retrying, and alerting on that graph. This is a distinct concern from the transformation logic itself — dbt models its own internal DAG of SQL models, but something still has to decide "run the ingestion job, then run dbt, then refresh the BI extract, and page someone if any step fails three times." Airflow (now on a significantly reworked 3.x line with a lighter-weight execution model and improved scheduling) remains the most widely deployed general-purpose orchestrator; Dagster takes an "asset-based" approach, modeling pipelines around the data assets produced rather than just the tasks that produce them, which gives it a more unified lineage view across ingestion, transformation, and ML in one graph; Prefect emphasizes a lighter-weight, more Pythonic authoring experience.
Storage and the rise of open table formats
Where data lands has converged heavily toward the lakehouse pattern: cheap, durable object storage (S3, ADLS, GCS) holding data in an open, columnar file format (typically Parquet), managed by an open table format — Apache Iceberg, Delta Lake, or Apache Hudi — that adds transactional guarantees (ACID commits, schema evolution, time travel, concurrent writer safety) on top of what would otherwise be a directory of files with no consistency guarantees at all. This is the technical development that's dissolved much of the historical "warehouse vs. lake" distinction: a lakehouse gets warehouse-like reliability and query performance directly on lake storage, and increasingly, warehouses themselves (Snowflake, Databricks, BigQuery) can read and write the very same open table format so the same physical data is usable by more than one engine.
Advanced Topics
Where senior-level data engineering conversations actually go.
Change Data Capture and streaming platforms
Change Data Capture (CDC) captures row-level insert/update/delete events directly from a source database's transaction log (rather than repeatedly querying the whole table) and streams them downstream — dramatically lower load on the source system and near-real-time freshness compared to periodic full-table extracts. Debezium is the dominant open-source CDC engine, typically paired with Apache Kafka (or a Kafka-compatible alternative like Redpanda) as the durable, replayable event backbone, and Apache Flink as the stream-processing engine that transforms events in flight with genuine low-latency, stateful processing (windowing, joins across streams, exactly-once semantics) — spark structured streaming covers similar ground with a more batch-like programming model layered on top of the same engine used for batch Spark jobs.
Data quality and observability
Data quality has matured from "a test dbt runs after the fact" into its own discipline, commonly organized around a handful of quality dimensions: accuracy (is the value correct), completeness (are rows/fields missing), consistency (does it agree with other systems), timeliness/freshness (is it current enough to be useful), and validity (does it conform to expected format/range). Data observability platforms (Monte Carlo, Bigeye, and similar) extend this from explicit, hand-written tests toward automated anomaly detection across volume, freshness, schema, and distribution — catching the class of problem nobody thought to write an explicit test for, which is exactly the failure mode traditional testing alone tends to miss.
DataOps, CI/CD, and infrastructure as code
DataOps applies DevOps discipline — version control, automated testing, CI/CD, monitoring, and fast feedback loops — to data pipelines specifically, treating a broken pipeline with the same urgency and process rigor a broken production service would get, rather than as a lower-priority "just rerun it" annoyance. In practice this means: pipeline code lives in git with pull-request review, CI runs tests (including data tests, not just code tests) before anything reaches production, deployments are automated and repeatable, and infrastructure itself (warehouses, clusters, IAM, network) is defined in code (Terraform, Pulumi) rather than clicked together by hand, so an entire environment can be reproduced or torn down deterministically.
Agentic and AI-assisted data engineering
Through 2025–2026, major platforms began shipping AI-assisted or "agentic" data engineering tooling aimed at automating the more repetitive parts of pipeline building — schema mapping, boilerplate transformation generation, anomaly triage, and increasingly autonomous pipeline maintenance (Databricks' Lakeflow is a notable example, explicitly marketed around this framing, and most major orchestrators and warehouses now ship some form of AI-assisted authoring). The realistic read for an interview: this genuinely speeds up the mechanical parts of building and maintaining pipelines, but the judgment calls this guide covers — idempotency design, schema evolution strategy, choosing batch vs. streaming, reasoning about failure modes — remain squarely human work, and being able to evaluate whether an AI-generated pipeline actually handles those correctly is itself becoming a more valuable skill than writing the boilerplate by hand.
Vendor & Platform Landscape
How the discipline actually shows up across cloud providers and major platforms.
| Cloud/Platform | Native ingestion | Native processing/orchestration | Native storage |
|---|---|---|---|
| AWS | DMS, Kinesis, Glue | Glue ETL, EMR, Step Functions, MWAA (managed Airflow) | S3, Redshift, Lake Formation |
| Azure | Data Factory, Event Hubs | Synapse/Fabric pipelines, Databricks on Azure | ADLS Gen2, Synapse, Fabric OneLake |
| GCP | Datastream, Pub/Sub | Dataflow (Apache Beam), Cloud Composer (managed Airflow) | Cloud Storage, BigQuery |
| Databricks | Lakeflow Connect | Lakeflow (formerly Delta Live Tables) + Workflows, Spark | Delta Lake on cloud object storage, Unity Catalog |
| Snowflake | Openflow, Snowpipe | Snowpark, Tasks, Streams, Dynamic Tables | Native + Iceberg Tables |
In practice, most companies mix cloud-native services with a small set of standard third-party tools layered on top: Fivetran and Airbyte dominate managed ELT ingestion (Fivetran and dbt Labs completed a merger in 2026, positioning the combined company around "trusted" ingestion-plus-transformation infrastructure); dbt remains the default transformation layer regardless of which warehouse sits underneath it; and Airflow or Dagster orchestrate the whole thing end-to-end when a single warehouse's native scheduler (Snowflake Tasks, Databricks Workflows) isn't sufficient for cross-system coordination. Being able to name this stack and explain what each layer is actually responsible for is a stronger signal in an interview than deep expertise in any one vendor's console.
Free & Open-Source Stack
A complete data engineering platform you can build without spending anything.
| Layer | Free option | Notes |
|---|---|---|
| Ingestion | Airbyte OSS, Meltano, Debezium | Airbyte's open-source edition covers most of the same connector library as its paid cloud offering. |
| Streaming backbone | Apache Kafka, Redpanda | Redpanda is a Kafka-API-compatible alternative that's simpler to self-host for learning/small-scale use. |
| Stream processing | Apache Flink, Spark Structured Streaming | Both fully open source; Flink has the more mature dedicated streaming semantics. |
| Storage | DuckDB, Postgres, MinIO (S3-compatible object storage) | DuckDB needs no server at all; MinIO lets you run a real object-storage + Iceberg stack entirely locally. |
| Table format | Apache Iceberg + Apache Polaris (catalog) | Both fully open source and self-hostable, including Iceberg's REST catalog. |
| Transformation | dbt Core / dbt Fusion | Free regardless of warehouse choice. |
| Orchestration | Apache Airflow, Dagster OSS, Prefect OSS | All three have genuinely capable, actively developed open-source cores. |
| Data quality | Great Expectations, dbt tests, Soda Core | Covers the large majority of what commercial data-observability tools charge for at small scale. |
| Catalog & lineage | DataHub, OpenMetadata, Amundsen | All open source, self-hostable metadata/lineage platforms. |
| Infrastructure as code | Terraform, Docker Compose | A full local stack (Kafka + Postgres + Airflow + dbt) can be stood up with one docker-compose.yml for learning purposes. |
# 1. storage — no server needed
pip install dbt-duckdb
# 2. orchestration — a lightweight local Airflow via the official quick-start
curl -LfO 'https://airflow.apache.org/docs/apache-airflow/stable/docker-compose.yaml'
docker compose up airflow-init && docker compose up
# 3. transformation — dbt project targeting the local DuckDB file
dbt init pipeline_demo && dbt build
# 4. data quality — add Great Expectations or lean on dbt's built-in generic tests
pip install great_expectations
Nearly every commercially significant piece of the modern data engineering stack — ingestion, streaming, storage/table format, transformation, orchestration, quality, cataloging — has a genuinely capable open-source core. The paid tiers of most of these tools sell managed hosting, enterprise governance, and support, not fundamentally different capability at small-to-medium scale. Being able to describe this free-stack alternative for any component shows you understand the discipline rather than just one vendor's product.
Use Case Examples
Concrete scenarios worth having ready.
1. Replacing nightly full-table extracts with CDC
A nightly job pulling an entire 200-million-row orders table from a production Postgres database was both slow and putting real load on a system also serving live customer traffic. Replacing it with Debezium-based CDC streaming into a Kafka topic, then landing into the lakehouse continuously, cut both the load on the source database and the end-to-end data latency from "up to 24 hours stale" to minutes — while also making the pipeline naturally resilient to individual row-level failures instead of needing to retry an entire multi-hour batch job.
2. Idempotent backfills after a bug fix
A transformation bug corrupted three months of a fact table before anyone noticed. Because every load step used deterministic MERGE logic on a stable business key rather than blind appends, reprocessing the affected date range was a safe, repeatable operation — rerun the exact same job for the exact same dates and the table converges to the correct state, with no risk of duplicating the rows that were already correct.
3. Decoupling ingestion from transformation with an orchestrator
A team's dbt project used to be triggered directly by their ingestion tool's webhook, which meant a delayed source load silently ran dbt against incomplete data. Introducing Airflow as an explicit orchestrator — with a sensor task that waits for ingestion completion before triggering the dbt run, and alerting if that wait times out — turned a silent correctness bug into a visible, actionable failure.
4. Building a real-time fraud-signal pipeline
A payments company needed to flag suspicious transactions within seconds, not after the next batch run. A Flink job consuming directly from the transaction event stream computed rolling features (transaction velocity, geographic anomalies) in real time and pushed flags to a downstream service — while the same underlying event stream was separately consumed into the warehouse via a simpler batch-style sink for next-day reporting, deliberately using different processing paths for two genuinely different latency requirements off the same source data.
5. Migrating a monolithic ETL tool to open, testable pipelines
A decade-old proprietary ETL tool's transformations lived entirely in an opaque drag-and-drop canvas with no version history and no automated tests. Migrating the logic into dbt models under git, with CI running tests on every pull request, didn't just modernize the tooling — it made a previously undocumented, tribal-knowledge-dependent system reviewable, testable, and safely changeable by people who didn't build the original pipeline.
Best Practices
Habits that separate a resilient data platform from one that pages someone every night.
- Design every load step to be idempotent from the start — retries and reprocessing aren't edge cases, they're a certainty at any real scale, and idempotency is what makes them safe.
- Fail loudly and early, not silently and late — a pipeline that errors clearly on unexpected schema changes is far easier to trust than one that quietly drops or mis-types the data it didn't expect.
- Separate orchestration concerns from transformation concerns — an orchestrator schedules and sequences; a transformation tool like dbt defines the logic. Conflating them (cramming business logic into orchestrator task code) makes both harder to test and reason about.
- Treat pipeline code like application code — version control, code review, automated tests (including data tests), and CI/CD, not manual deploys or drag-and-drop changes made directly in production.
- Instrument for observability before you need it — freshness, volume, and schema monitoring catch the class of failure that traditional row-level tests are structurally blind to (nothing failed a test; an entire expected batch of data just never arrived).
- Choose batch over streaming unless there's a genuine latency requirement — streaming's operational complexity is a real, ongoing cost, and a large share of "real-time" requirements turn out to tolerate minutes of latency just fine once asked directly.
- Make reprocessing/backfill a first-class, tested capability, not an emergency improvised script written under pressure the one time it's actually needed.
- Right-size and monitor cost continuously — a pipeline's cost profile (compute, storage, data transfer) can drift silently as data volume grows; review it on a cadence, not only when a bill spikes.
Interview Questions & Answers
Organized from fundamentals to systems-design-style scenario questions. Click any question to expand.
Fundamentals
fundamentalsWhat does a data engineer actually do, and how is the role different from a data analyst or data scientist?
A data engineer builds and operates the systems that move, store, and prepare data — ingestion pipelines, orchestration, storage architecture, and often the transformation infrastructure others build on top of. A data analyst primarily uses already-prepared data to answer business questions; a data scientist primarily builds models and statistical analysis on top of prepared data. The data engineer's output is infrastructure and reliable data flow; the analyst's and scientist's output is insight and models built using that flow.
fundamentalsExplain ETL vs. ELT and why the industry shifted toward ELT.
ETL transforms data in a separate processing layer before loading the result into the target system; ELT loads raw data first and transforms it inside the destination system afterward. The shift toward ELT tracks the rise of cheap, elastic cloud warehouse compute — once the warehouse itself could affordably do heavy transformation work, there was less reason to maintain a separate transformation layer before loading, and loading raw data first also preserves it for reprocessing if transformation logic needs to change later.
fundamentalsWhat is idempotency, and why does it matter so much in data pipelines specifically?
An idempotent operation produces the same result whether it runs once or many times with the same input. It matters in pipelines because retries after partial failures are routine at scale — a network blip, a timeout, an orchestrator restarting a task — and a non-idempotent load (a plain append with no dedup) will silently duplicate data the moment a safe-seeming retry happens. Idempotent design (upserts on a stable key, deterministic partition overwrites) is what makes "just rerun it" a safe instruction instead of a data-corruption risk.
fundamentalsWhat's the difference between a data lake, a data warehouse, and a lakehouse?
A data warehouse stores structured data in a schema-on-write system optimized for fast, reliable SQL analytics, historically at higher storage cost. A data lake stores data of any structure cheaply in object storage with schema applied at read time, historically lacking the transactional guarantees and query performance of a warehouse. A lakehouse combines both: cheap object storage plus an open table format (Iceberg, Delta, Hudi) that adds ACID transactions, schema enforcement, and warehouse-like query performance directly on lake storage — closing most of the historical gap between the two.
fundamentalsWhat is an orchestrator, and why isn't a cron job enough for most real pipelines?
An orchestrator (Airflow, Dagster, Prefect) schedules, sequences, retries, and monitors a graph of dependent tasks, and provides visibility into what ran, what failed, and why. A cron job can trigger a single script on a schedule but has no native concept of dependencies between tasks, no built-in retry/backoff logic, no lineage or historical run visibility, and no straightforward way to express "don't run step B until step A succeeds." Real pipelines almost always have real dependencies between steps, which is exactly what a plain scheduler doesn't model.
Intermediate
intermediateWalk through how you'd design a pipeline to safely handle a source system's schema changing without warning.
Decide deliberately, per source, whether the pipeline should be permissive (accept and pass through new/changed columns automatically, appropriate for exploratory or low-stakes sources) or strict (fail loudly and alert a human on any unexpected schema drift, appropriate wherever downstream logic depends on a specific structure). Either way, capture schema at ingestion time as its own tracked artifact so a change is detectable and diffable rather than only discovered when a downstream transformation breaks mysteriously. Where the relationship with the source team allows it, a data contract that requires advance notice of breaking changes is a stronger fix than any purely technical safeguard, because it prevents the problem rather than just detecting it faster.
intermediateWhen would you choose streaming over batch, concretely?
Choose streaming when there's a genuine business requirement for low latency that batch cannot meet — fraud detection that needs to block a transaction before it completes, operational alerting, real-time personalization — not because streaming feels more modern. The honest diagnostic question is "what specifically breaks if this data is 15 minutes stale instead of instant," and if the answer is "nothing, really," batch is almost always the simpler, cheaper, easier-to-operate choice.
intermediateWhat is Change Data Capture, and what problem does it solve that a nightly full extract doesn't?
CDC reads row-level insert/update/delete events directly from a source database's transaction log and streams them as they happen, rather than periodically re-querying the entire table. This solves two problems a nightly full extract has: load on the source system (a full extract of a huge table competes with live production traffic) and latency (a nightly extract is, by definition, up to nearly 24 hours stale). CDC trades some implementation complexity (a CDC connector, typically a Kafka-based event backbone) for dramatically lower source load and much fresher downstream data.
intermediateHow would you design monitoring and alerting for a critical daily pipeline?
Layer it: task-level success/failure alerts from the orchestrator for the mechanical "did it run" question; data-level freshness and volume checks (did the expected row count roughly match, did the table actually update within its SLA) to catch the case where a job reports success but produced wrong or incomplete data; and schema/distribution anomaly detection to catch problems nobody wrote an explicit test for. Alert routing matters as much as detection — a critical pipeline failure should page someone, while a minor anomaly in a low-stakes dataset shouldn't wake anyone up; alert fatigue from over-broad paging is one of the most common ways real incidents get missed.
Advanced / scenario
advancedA critical pipeline has been silently producing 5% low counts for two weeks before anyone noticed. How do you both fix it and prevent a recurrence?
First isolate where the loss is happening — check each stage's row counts against the prior stage's to bisect the pipeline rather than guessing; a 5% loss pattern often points at something like a join silently dropping unmatched rows, a filter condition that's too aggressive, or a partial partition overwrite that isn't capturing late-arriving data. Fix the specific defect, then backfill the affected date range using the pipeline's (ideally already-idempotent) reprocessing path. The prevention side is the more important half of the answer: this class of bug is exactly what row-count/volume anomaly detection catches that correctness-only tests miss, so the durable fix is adding that monitoring layer, not just patching the one bug found this time.
advancedDesign a pipeline architecture for an e-commerce company that needs both real-time inventory updates and nightly financial reporting from the same order events.
Use a single durable event stream (Kafka/CDC off the orders system) as the one source of truth, then fan out two independent consumers with deliberately different designs for their deliberately different requirements: a low-latency stream-processing consumer (Flink or similar) updating inventory counts in near-real-time with simple, fast aggregation logic, and a separate batch consumer landing the same events into the lakehouse for dbt to build the full dimensional financial reporting model overnight, where correctness and auditability matter more than speed. The key architectural decision is not building one pipeline that tries to serve both needs — the latency and complexity trade-offs are different enough that forcing one design to serve both would compromise both.
advancedHow would you decide whether to migrate a batch ELT pipeline to CDC-based streaming, given it would cost significant engineering time?
Start from the actual business cost of current staleness, not from CDC's technical appeal — quantify what's genuinely blocked or degraded by the current batch latency (a real decision being delayed, a real customer-facing feature that needs freshness), and estimate the engineering and ongoing operational cost of streaming infrastructure (a Kafka/Debezium stack is real infrastructure to run and monitor, not a one-time build). If nothing concrete is actually blocked by current latency, the honest recommendation is usually to not migrate — the a classic overengineering trap is optimizing infrastructure sophistication for its own sake rather than a genuine, quantified business need, and being willing to say "batch is fine here" is a stronger signal than defaulting to the more sophisticated-sounding architecture.
Behavioral / judgment
judgmentA stakeholder wants a pipeline shipped by Friday; doing it with proper tests and idempotent design will take an extra three days. How do you handle it?
Make the trade-off explicit rather than silently cutting corners or silently missing the deadline: a version shipped Friday without idempotent design and full test coverage carries real risk (a bad retry duplicating data, an undetected data quality issue reaching a dashboard) that a slightly later, properly built version doesn't. Present the actual risk in concrete terms specific to this pipeline, offer the fastest version that still includes the cheapest, highest-value safeguards (a uniqueness test on the grain, a basic idempotent merge instead of a blind append), and let the stakeholder make an informed call on the remaining risk rather than deciding unilaterally that the deadline matters more without them knowing what they're trading away.
judgmentHow do you approach inheriting a pipeline you didn't build, with no documentation and the original author gone?
Resist the urge to rewrite it immediately — first understand what it actually does and why it might be built the way it is (an odd-looking design choice is sometimes a scar from a real production incident, not just bad judgment), by reading the code, checking its run history and past incidents if available, and tracing its actual inputs and outputs rather than assuming the documentation gap means nothing is known. Add the missing tests and documentation as you go, incrementally, prioritized by what you're actually touching, rather than a big-bang rewrite that risks reintroducing bugs the original version had already quietly worked around. The judgment being tested is respecting unknown context before assuming past work was simply wrong.
Cheat Sheet
Fast comparisons worth having memorized.
ETL vs. ELT
| ETL | ELT | |
|---|---|---|
| Transform happens | Before loading, in a separate engine | After loading, inside the target system |
| Raw data preserved? | Not necessarily | Yes, by default |
| Best fit | Compliance/masking before data lands, legacy warehouses | Modern cloud warehouses/lakehouses with cheap elastic compute |
Batch vs. streaming
| Batch | Streaming | |
|---|---|---|
| Latency | Minutes to hours (or more) | Sub-second to seconds |
| Complexity | Lower — simpler to build, test, reprocess | Higher — windowing, watermarks, ordering, delivery semantics |
| Choose when | No genuine low-latency requirement | A specific business need can't tolerate batch latency |
Open table formats at a glance
| Format | Originated at | Notable strength |
|---|---|---|
| Apache Iceberg | Netflix | Strong multi-engine interoperability (Snowflake, Databricks, Spark, Trino all read/write it); increasingly the cross-vendor default |
| Delta Lake | Databricks | Deepest native integration with Databricks/Spark tooling |
| Apache Hudi | Uber | Strong upsert/incremental-ingestion performance, historically popular for CDC-heavy pipelines |
Orchestrator at a glance
| Tool | Model | Notable strength |
|---|---|---|
| Airflow | Task/DAG-centric | Largest ecosystem and community; the default enterprise choice |
| Dagster | Asset-centric | Unified lineage across ingestion, transformation, and ML as data assets, not just tasks |
| Prefect | Task/flow-centric | Lighter-weight, more Pythonic authoring experience |
Glossary
Every term used in this guide, in one place.
- Backfill
- Reprocessing historical data through a pipeline, typically after a bug fix or a new pipeline's first run.
- CDC
- Change Data Capture — capturing row-level insert/update/delete events directly from a source database's transaction log.
- DAG
- Directed acyclic graph — the dependency structure an orchestrator schedules and sequences tasks through.
- Data contract
- A versioned, agreed interface between a data producer and consumer describing schema, semantics, and change-notification guarantees.
- Data observability
- Automated monitoring of data volume, freshness, schema, and distribution to detect anomalies beyond explicit hand-written tests.
- DataOps
- Applying DevOps discipline — version control, CI/CD, automated testing, monitoring — to data pipelines.
- ELT
- Extract, Load, Transform — loading raw data into the target system first, then transforming it there.
- ETL
- Extract, Transform, Load — transforming data in a separate layer before loading the result into the target system.
- Idempotency
- The property that running an operation multiple times with the same input produces the same result as running it once.
- Lakehouse
- An architecture combining cheap object storage with an open table format to get warehouse-like transactional guarantees and query performance directly on lake storage.
- Open table format
- A specification (Apache Iceberg, Delta Lake, Apache Hudi) adding ACID transactions, schema evolution, and time travel on top of files in object storage.
- Orchestrator
- A system (Airflow, Dagster, Prefect) that schedules, sequences, retries, and monitors dependent tasks across a pipeline.
- Schema evolution
- How a pipeline or storage system handles a source's schema changing over time — permissively or strictly.
- Stream processing
- Processing data continuously as it arrives, rather than in scheduled batches.
- Watermark
- In stream processing, a marker indicating how far behind real time a stream's processing is willing to wait for late-arriving events before finalizing a window.
- Windowing
- Grouping streaming events into time-bounded chunks (tumbling, sliding, or session windows) for aggregation.