Data Lake and Data Warehouse 8 min read

Correctness Is the Product: A Field Guide to Incremental Ingestion on Snowflake and AWS

For the past decade, data leaders have been asked to pick a side. Warehouse or lake. Lake or lakehouse. Snowflake or Databricks. Batch or streaming. These debates consume a remarkable share of executive attention, and they matter less than they appear to.

Compute is becoming a commodity. Storage on S3 is cheap, durable and increasingly shared between engines through open table formats. Every major platform can now run large SQL workloads at scale. What has not become a commodity is trust: the confidence that the number on the dashboard is the number in the ledger, that it is current, and that it will still be right after the next failure, migration or re-platform.

Trust is not created by the platform you buy. It is created, or quietly destroyed, in the ingestion layer, the unglamorous code that decides which rows changed and how they arrive. In our experience, most “the warehouse is wrong” incidents, most runaway compute bills, and most stalled migrations can be traced back to that layer.

This series is a field guide to getting it right, using a pattern we deploy often: transactional SQL Server sources, an S3-based data lake, and Snowflake as the analytical engine, orchestrated on AWS. The specifics are concrete. The principles apply to almost any source and any engine.

What we believe

These principles shape every design decision in the series. They are also the standard we hold our own work to.

  1. Correctness first, then freshness, then cost, in that order. A fast, cheap pipeline that occasionally loses rows has negative value, because it teaches the business to stop trusting data. We design for provable completeness first, then reduce latency, then optimise spend. Teams that reverse this order spend the savings on reconciliation.
  2. Object storage is the system of record. Compute is disposable. Every extracted change lands in S3 as open-format files before any engine touches it. That landing zone is an immutable, replayable history of the business. Warehouses, clusters and models can be rebuilt from it, swapped out, or run side by side. This is what keeps architectural options open, and it is the foundation of any credible lakehouse strategy.
  3. Every step must be idempotent and replayable. Pipelines fail. Networks drop, credentials expire, sources spike. The question is not whether a run will fail but whether re-running it is safe. Watermarks advance only after data is durable; merges only apply newer versions; loads track which files they have consumed. Recovery becomes “run it again”, not an incident bridge.
  4. The source system is a customer too. Extraction that degrades the transactional database it reads from is a production incident waiting for a busy day. Index-backed, chunked, non-blocking reads are not an optimisation; they are a condition of being allowed to read from production at all, and they are what make hourly or near-real-time freshness possible.
  5. Transformation belongs where the data lives, in versioned code. Python and containers are excellent at moving bytes. Business logic belongs in set-based SQL running inside the engine, managed in dbt with code review, tests and lineage. Logic that lives in an ETL tool’s GUI or a sprawling script is logic nobody can audit.
  6. Security is identity, not secrets. No access keys in code, images or SQL. Workloads assume IAM roles; Snowflake reaches S3 through storage integrations; service users authenticate with key pairs; remaining secrets live in AWS Secrets Manager. A pipeline whose credentials can be copied out of a repository is not production-ready, however well it performs.
  7. Pay for work, not for waiting. Containers run on Fargate only for the minutes they work. Warehouses auto-suspend. Transformation runs only when extraction produced something new. Cost efficiency comes from the architecture, not from quarterly clean-up exercises.

The reference architecture

The pattern in this series maps cleanly to the layered (“medallion”) model most data organisations now use, and to native AWS and Snowflake services:

LayerPurposeImplementationArticle
SourceOperational truthSQL Server with rowversion change detection2
ExtractionGap-free, non-intrusive change capturePython on ECS Fargate; chunked, index-backed reads; MIN_ACTIVE_ROWVERSION() watermark2, 3, 5
Bronze: landing zoneImmutable, replayable history in an open formatCompressed Parquet in S3, partitioned by table and load time4
Silver: raw and conformedBulk-loaded, de-duplicated current stateSnowflake COPY INTO via storage integration; guarded MERGE / dbt incremental models4, 5
Gold: productsBusiness-ready, tested, documented modelsdbt models with tests and lineage5
Control planeSequencing, identity, secrets, costEventBridge, ECS task roles, Secrets Manager, auto-suspend warehouses6

Two properties of this design are deliberate. First, the bronze layer is engine-neutral: the same Parquet history can feed Snowflake today, other engines tomorrow, and machine learning workloads in parallel. Second, every arrow in the flow is idempotent, so any layer can be rebuilt from the one before it.

Build, buy, or both

A mature architecture practice starts by asking whether to build at all. The hand-built pattern in this series is the right choice in some situations and not in others.

Managed replication (AWS Database Migration Service, commercial ELT connectors, or SQL Server’s native Change Data Capture feeding a managed service) is often the better choice when you have many standard sources, a small engineering team, and need deletes and schema changes handled for you. You trade per-row or per-connector cost and some control for speed of delivery.

The pattern in this series earns its place when tables are very large and connector pricing scales badly, when you need precise control over load placed on fragile production databases, when regulatory or residency requirements demand that data never leaves your own AWS accounts, or when the team wants ingestion it fully understands and can debug at 2 a.m.

Most organisations end up with both: managed connectors for the long tail of SaaS and standard sources, and an engineered path for the handful of large, business-critical systems where correctness and cost matter most. The principles above apply to both. Whichever you choose, verify completeness yourself; a vendor’s green status light is not reconciliation.

How the series maps to the AWS Well-Architected Framework

PillarWhere the series addresses it
ReliabilityGap-free watermarks, idempotent loads, replay from the landing zone (Articles 2, 4, 5)
Performance efficiencyIndex-backed chunked extraction; bulk loading instead of row-by-row inserts (Articles 3, 4)
SecurityIAM task roles, storage integrations, Secrets Manager, key-pair authentication (Articles 4, 6)
Cost optimisationFargate, transient staging, auto-suspend, skip-if-empty orchestration (Articles 4, 6)
Operational excellenceFail-fast sequencing, dbt tests, alerting, reproducible container images (Articles 5, 6)
SustainabilityCompute that runs only when there is work to do (Article 6)

An ingestion maturity model

Most organisations we meet sit at level 2. The series is a path to level 4.

LevelCharacteristicsTypical symptom
1. ReloadFull truncate-and-load on fixed schedulesOvernight windows that keep growing; data a day old
2. TimestampIncremental loads on a LastModifiedDate column; separate cron schedulesUnexplained gaps between source and warehouse; empty runs that still cost money
3. EngineeredGap-free watermarks, chunked extraction, de-duplicating merges, defined delete strategyReliable data, but recovery and changes still depend on a few individuals
4. ProductisedReplayable lake, idempotent and event-driven runs, tested models, reconciliation and freshness monitoring, identity-based securityData teams spend their time on new data products, not on explaining old numbers

The series

  1. Your Data Warehouse Is Only as Good as Your Incremental Load — the business case, for the leaders who own the outcome.
  2. The Silent Data Loss Bug in Incremental ETL — why the obvious watermark loses data, and the precise fix.
  3. Extracting Changes from Billion-Row Tables Without Slowing Production — making extraction invisible to the source.
  4. Loading SQL Server Changes into Snowflake the Right Way — the landing zone, bulk loading and merges that cannot regress.
  5. Python Extracts, dbt Transforms — a clean division of labour between movement and modelling.
  6. From Cron Jobs to Containers: Running Data Pipelines on AWS — sequencing, packaging and secure, pay-per-use operation.

Leaders can read Article 1 and this introduction for the strategic picture. Architects and engineering leads will get the most from Articles 2 to 6, each of which includes working code.

Looking ahead

Two shifts make these foundations more valuable, not less. Open table formats such as Apache Iceberg are letting Snowflake and other engines share the same data in your own S3 buckets, which rewards organisations that already treat object storage as the system of record. And AI workloads raise the cost of untrustworthy data: a model or agent built on a feed that silently drops rows will be confidently wrong at scale. In both cases, the advantage goes to teams whose ingestion is already correct, replayable and engine-neutral.

Work with us

YenDigital designs and delivers data lake and warehouse platforms on Snowflake and AWS, from architecture reviews and ingestion assessments to full builds handed over to your team. If you want an honest view of where your platform sits on the maturity model, and what it would take to move up a level, we’d welcome the conversation.

Book an architecture review

Share this article

Our Partners

Built with leading
AI technologies

We build and integrate AI solutions using technologies from OpenAI, Google Gemini, Anthropic, DeepSeek and Perplexity, selected to suit each client’s needs.

Enterprise-Ready AI Solutions Built for Scale & Security

Secure, scalable AI solutions designed to integrate with your enterprise systems and accelerate business outcomes.

Get a Quote