Interview's MateData Engineer
Interview's Mate

Data Engineer

SQL · Spark · Lakehouse · Streaming

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Data Engineer topics
Lesson 50/ 160
03. Data Warehousing & Data Modeling

Data Vault 2.0 Modeling (Hubs, Links, Satellites)

Model auditable enterprise warehouses with hubs, links, and satellites that absorb source change.

AdvancedHubs · Links · Satellites3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

Hub key and source business rule. Next, links with explicit relationship grain. Finally, point-in-time marts and effectivity tables for BI.

Think of it like…

Hubs are identity cards, Links are signed relationship documents, and Satellites are dated observation folders attached to either without rewriting prior evidence.

Where you’ve seen it

Hub customer_h stores customer_hk and record source; Link customer_order_l relates customer and order hubs; sat_customer_address stores effective descriptive rows with load_date and hash diff.

Words you’ll hear

Hubs
Tables containing one stable enterprise business key, its deterministic hash, load metadata, and record source.
Links
Tables representing one relationship grain between two or more hubs, or a transaction, without duplicating descriptors.
Satellites
Timestamped descriptive payload tables attached to a Hub or Link with change-detection hash metadata.
Operational boundary
Creating a satellite for every timestamp produces a fragmented raw vault, relationships without transaction/business meaning blur grain, and exposing hub/link models directly gives BI users a join maze. Declare business keys and link grain first, assign canonical hash keys and load dates, split satellites by rate/PII/source ownership, and build an information-mart layer for consumption.

Visual diagram

Loading interactive diagram

Theory & deep dive

Hubs: the working mechanism

Data Vault 2.0 separates immutable enterprise business keys in Hubs, relationships in Links, and descriptive or temporal source payloads in Satellites to load sources in parallel with auditability.

Hub key and source business rule. Links with explicit relationship grain, then source-rated Satellites and hash diffs; this exposes the state governed by Satellites.

Data Vault 2.0 Modeling in one concrete design

Hub customer_h stores customer_hk and record source; Link customer_order_l relates customer and order hubs; sat_customer_address stores effective descriptive rows with load_date and hash diff.

Key takeaway: Data Vault 2

Data Vault 2.0 Modeling: failure mode and production response

Creating a satellite for every timestamp produces a fragmented raw vault, relationships without transaction/business meaning blur grain, and exposing hub/link models directly gives BI users a join maze.

Declare business keys and link grain first, assign canonical hash keys and load dates, split satellites by rate/PII/source ownership, and build an information-mart layer for consumption. Track Hash collision as "monitor and preserve original business key", and make Link grain visible to the dataset owner.

Key takeaway: Declare business keys and link grain first, assign canonical hash keys and load dates, split satellites by rate/PII/source ownership, and build an information-mart layer for consumption.

How it works, step by step

Step 1 of 4
Hubs

1. Identify business identity

Hub key and source business rule. Data Vault 2.0 separates immutable enterprise business keys in Hubs, relationships in Links, and descriptive or temporal source payloads in Satellites to load sources in parallel with auditability.

Hub key and source business rule
Key numbers at this step
Hash collision
monitor and preserve original business key
Links
Tables representing one relationship grain between two or more hubs, or a transaction, without duplicating descriptors.

When to use it & trade-offs

What it is

Data Vault 2.0 separates immutable enterprise business keys in Hubs, relationships in Links, and descriptive or temporal source payloads in Satellites to load sources in parallel with auditability. Hub customer_h stores customer_hk and record source; Link customer_order_l relates customer and order hubs; sat_customer_address stores effective descriptive rows with load_date and hash diff.

Why it matters: Creating a satellite for every timestamp produces a fragmented raw vault, relationships without transaction/business meaning blur grain, and exposing hub/link models directly gives BI users a join maze. Declare business keys and link grain first, assign canonical hash keys and load dates, split satellites by rate/PII/source ownership, and build an information-mart layer for consumption.

When to reach for it

  • Model auditable enterprise warehouses with hubs, links, and satellites that absorb source change.
  • Choose Hubs because it provides this capability: Tables containing one stable enterprise business key, its deterministic hash, load metadata, and record source.
  • Keep evidence for Hash collision at "monitor and preserve original business key" so the last production stage-Publish - point-in-time marts and effectivity tables for BI-remains testable.

When to avoid or be careful

  • Creating a satellite for every timestamp produces a fragmented raw vault, relationships without transaction/business meaning blur grain, and exposing hub/link models directly gives BI users a join maze.
  • Do not conflate Links with Hubs. The second concept contributes different behavior: Tables representing one relationship grain between two or more hubs, or a transaction, without duplicating descriptors.
  • Release only after this guardrail is in place: Declare business keys and link grain first, assign canonical hash keys and load dates, split satellites by rate/PII/source ownership, and build an information-mart layer for consumption.

Hubs / Links / Satellites - roles, limits, and operating cost

Hubs
Best for: Tables containing one stable enterprise business key, its deterministic hash, load metadata, and record source.

Strengths: Tables containing one stable enterprise business key, its deterministic hash, load metadata, and record source. Data Vault 2.

Watch out: Creating a satellite for every timestamp produces a fragmented raw vault, relationships without transaction/business meaning blur grain, and exposing hub/link models directly gives BI users a join maze.

Links
Best for: Tables representing one relationship grain between two or more hubs, or a transaction, without duplicating descriptors.

Strengths: Tables representing one relationship grain between two or more hubs, or a transaction, without duplicating descriptors. In this workflow it supports: Store descriptors - source-rated Satellites and hash diffs.

Watch out: The operating cost is real: one row per declared relationship or transaction identity.

Satellites
Best for: Timestamped descriptive payload tables attached to a Hub or Link with change-detection hash metadata.

Strengths: Timestamped descriptive payload tables attached to a Hub or Link with change-detection hash metadata. Its output can be checked with Vault history.

Watch out: Operating guardrail: Declare business keys and link grain first, assign canonical hash keys and load dates, split satellites by rate/PII/source ownership, and build an information-mart layer for consumption.

Interview signals & numbers to know

When this topic comes up

  • “Where is the failure boundary for Hubs, and how would Hash collision reveal it?”
  • “Why is Links distinct from this behavior: timestamped descriptive payload tables attached to a Hub or Link with change-detection hash metadata?”
  • Production clue: Creating a satellite for every timestamp produces a fragmented raw vault, relationships without transaction/business meaning blur grain, and exposing hub/link models directly gives BI users a join maze.
  • Design probe: Declare business keys and link grain first, assign canonical hash keys and load dates, split satellites by rate/PII/source ownership, and build an information-mart layer for consumption.

Benchmarks & rules of thumb

Hash collision -
monitor and preserve original business key
Link grain -
one row per declared relationship or transaction identity
Vault history -
append-only source evidence remains auditable

Common mistakes & follow-ups

Common interview mistakes

  • Creating a satellite for every timestamp produces a fragmented raw vault, relationships without transaction/business meaning blur grain, and exposing hub/link models directly gives BI users a join maze.
  • Reporting success from a job exit code without checking Hash collision and Link grain.
  • Treating this example as complete without replay, rollback, or access boundaries: Hub customer_h stores customer_hk and record source; Link customer_order_l relates customer and order hubs; sat_customer_address stores effective descriptive rows with load_date and hash diff.

Likely interviewer follow-ups

  • How would you prove this contract instead of only checking that the command ran: Tables containing one stable enterprise business key, its deterministic hash, load metadata, and record source.
  • What does the recovery plan do when this occurs? Creating a satellite for every timestamp produces a fragmented raw vault, relationships without transaction/business meaning blur grain, and exposing hub/link models directly gives BI users a join maze.
  • When is Hubs insufficient for Link grain, and what does adding Links cost in Hash collision?
Interview tip: Lead with the data path and failure boundary: Data Vault 2.0 separates immutable enterprise business keys in Hubs, relationships in Links, and descriptive or temporal source payloads in Satellites to load sources in parallel with auditability. Then make the answer operational: Declare business keys and link grain first, assign canonical hash keys and load dates, split satellites by rate/PII/source ownership, and build an information-mart layer for consumption.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Data Vault 2.0 Modeling (Hubs, Links, Satellites) with data engineer interview Q&A and hands-on practice.

Open Data Engineer Q&A →Machine Learning Q&A
Previous topic
Surrogate Keys vs Natural Keys & Hash Keys
Next topic
One Big Table (OBT) Modeling & Modern Columnar Trade-offs