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 88/ 160
05. Data Lakehouses & Open Table Formats

Apache Iceberg Architecture (Catalogs, Metadata Files, Manifest Lists, Manifest Files)

Trace Iceberg’s metadata tree from catalogs through manifests that enable snapshot isolation.

AdvancedCatalog · Manifests · Snapshots3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

Resolve table to current metadata. Next, manifest pruning from partition and column stats. Finally, new files and metadata with CAS/retry.

Think of it like…

The catalog is the current card in a library catalog, metadata JSON is the edition index, the manifest list is a table of contents, and manifests are the detailed shelf records for every file.

Where you’ve seen it

Catalog orders points to v18.metadata.json; its manifest list references manifests for new and inherited Parquet files. A reader pins snapshot 18 while a writer commits snapshot 19 without changing that reader's file set.

Words you’ll hear

Catalog
A service or REST/filesystem implementation that atomically maps a table name to its current metadata location.
Manifests
Snapshot records that enumerate manifest files and build a complete file-set view from one metadata version.
Snapshots
Small metadata files that list data/delete file paths, partition tuples, record counts, and bounds used for pruning.
Operational boundary
Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table. Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.

Visual diagram

Loading interactive diagram

Theory & deep dive

Catalog: the working mechanism

Iceberg identifies a table through a catalog, commits one metadata JSON per snapshot, and links a manifest list to manifest files that enumerate data/delete files, row counts, partition values, and statistics.

Resolve table to current metadata. Manifest pruning from partition and column stats, then fixed snapshot data/delete set; this exposes the state governed by Snapshots.

Apache Iceberg Architecture in one concrete design

Catalog orders points to v18.metadata.json; its manifest list references manifests for new and inherited Parquet files. A reader pins snapshot 18 while a writer commits snapshot 19 without changing that reader's file set.

Key takeaway: Iceberg identifies a table through a catalog, commits one metadata JSON per snapshot, and links a manifest list to manifest files that enumerate data/delete files, row counts, partition values, and statistics

Apache Iceberg Architecture: failure mode and production response

Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.

Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands. Track Metadata depth as "catalog → metadata → manifest list → manifests → files", and make Manifest pruning visible to the dataset owner.

Key takeaway: Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.

How it works, step by step

Step 1 of 4
Catalog

1. Catalog lookup

Resolve table to current metadata. Iceberg identifies a table through a catalog, commits one metadata JSON per snapshot, and links a manifest list to manifest files that enumerate data/delete files, row counts, partition values, and statistics.

resolve table to current metadata
Key numbers at this step
Metadata depth
catalog → metadata → manifest list → manifests → files
Manifests
Snapshot records that enumerate manifest files and build a complete file-set view from one metadata version.

When to use it & trade-offs

What it is

Iceberg identifies a table through a catalog, commits one metadata JSON per snapshot, and links a manifest list to manifest files that enumerate data/delete files, row counts, partition values, and statistics. Catalog orders points to v18.metadata.json; its manifest list references manifests for new and inherited Parquet files. A reader pins snapshot 18 while a writer commits snapshot 19 without changing that reader's file set.

Why it matters: Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table. Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.

When to reach for it

  • Trace Iceberg’s metadata tree from catalogs through manifests that enable snapshot isolation.
  • Choose Catalog because it provides this capability: A service or REST/filesystem implementation that atomically maps a table name to its current metadata location.
  • Keep evidence for Metadata depth at "catalog → metadata → manifest list → manifests → files" so the last production stage-Commit writer - new files and metadata with CAS/retry-remains testable.

When to avoid or be careful

  • Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.
  • Do not conflate Manifests with Catalog. The second concept contributes different behavior: Snapshot records that enumerate manifest files and build a complete file-set view from one metadata version.
  • Release only after this guardrail is in place: Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.

Catalog / Manifests / Snapshots - roles, limits, and operating cost

Catalog
Best for: A service or REST/filesystem implementation that atomically maps a table name to its current metadata location.

Strengths: A service or REST/filesystem implementation that atomically maps a table name to its current metadata location. Iceberg identifies a table through a catalog, commits one metadata JSON per snapshot, and links a manifest list to manifest files that enumerate data/delete files, row counts, partition values, and statistics.

Watch out: Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.

Manifests
Best for: Snapshot records that enumerate manifest files and build a complete file-set view from one metadata version.

Strengths: Snapshot records that enumerate manifest files and build a complete file-set view from one metadata version. In this workflow it supports: Read files - fixed snapshot data/delete set.

Watch out: The operating cost is real: skip files by partition and column bounds.

Snapshots
Best for: Small metadata files that list data/delete file paths, partition tuples, record counts, and bounds used for pruning.

Strengths: Small metadata files that list data/delete file paths, partition tuples, record counts, and bounds used for pruning. Its output can be checked with Snapshot conflict.

Watch out: Operating guardrail: Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.

Interview signals & numbers to know

When this topic comes up

  • “Where is the failure boundary for Catalog, and how would Metadata depth reveal it?”
  • “Why is Manifests distinct from this behavior: small metadata files that list data/delete file paths, partition tuples, record counts, and bounds used for pruning?”
  • Production clue: Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.
  • Design probe: Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.

Benchmarks & rules of thumb

Metadata depth -
catalog → metadata → manifest list → manifests → files
Manifest pruning -
skip files by partition and column bounds
Snapshot conflict -
retry based on base/current metadata comparison

Common mistakes & follow-ups

Common interview mistakes

  • Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.
  • Reporting success from a job exit code without checking Metadata depth and Manifest pruning.
  • Treating this example as complete without replay, rollback, or access boundaries: Catalog orders points to v18.metadata.json; its manifest list references manifests for new and inherited Parquet files. A reader pins snapshot 18 while a writer commits snapshot 19 without changing that reader's file set.

Likely interviewer follow-ups

  • How would you prove this contract instead of only checking that the command ran: A service or REST/filesystem implementation that atomically maps a table name to its current metadata location.
  • What does the recovery plan do when this occurs? Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.
  • When is Catalog insufficient for Manifest pruning, and what does adding Manifests cost in Metadata depth?
Interview tip: Lead with the data path and failure boundary: Iceberg identifies a table through a catalog, commits one metadata JSON per snapshot, and links a manifest list to manifest files that enumerate data/delete files, row counts, partition values, and statistics. Then make the answer operational: Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Apache Iceberg Architecture (Catalogs, Metadata Files, Manifest Lists, Manifest Files) with data engineer interview Q&A and hands-on practice.

Open Data Engineer Q&A →Machine Learning Q&A
Previous topic
Delta Lake Operations (MERGE INTO / Upserts, OPTIMIZE, Z-Ordering, VACUUM)
Next topic
Iceberg Features (Hidden Partitioning, Partition Evolution, Time Travel, Branching/Tagging)