Prev Next

BigData / Apache Iceberg Interview questions

Explain the execution flow of building a streaming lakehouse pipeline with Iceberg and Flink?

A streaming pipeline using Flink and Iceberg continuously ingests events, periodically committing them as new snapshots, while downstream analytical queries read the same table concurrently — combining low-latency ingestion with the same consistent, ACID-compliant table other batch and interactive tools can also safely query.

flowchart TD A[Streaming source: Kafka topic] --> B[Flink job consumes events continuously] B --> C[Flink Iceberg sink buffers events in memory/checkpoint state] C --> D{Checkpoint interval reached?} D -- Yes --> E[Flink writes buffered events as new Iceberg data files] E --> F[New manifest and snapshot committed atomically to catalog] F --> G[New snapshot now visible to all readers] D -- No --> B G --> H[Downstream: Trino/Spark queries read latest committed snapshot] H --> I[Batch jobs run compaction periodically on accumulated small files]

Flink's Iceberg sink integrates with Flink's own checkpointing mechanism: events are buffered and, at each checkpoint interval, written out as new Iceberg data files and committed as a new snapshot, tying Iceberg's transactional commit boundary to Flink's own exactly-once processing guarantees rather than committing on some arbitrary, independent schedule.

Because each checkpoint-triggered commit tends to produce relatively small files (proportional to how much data arrived within that interval), streaming Iceberg pipelines are a classic source of the small-files problem discussed earlier, which is why a mature streaming-to-Iceberg architecture typically pairs the streaming ingestion job with a separate, periodic batch compaction job — keeping ingestion latency low while still maintaining an efficient, well-organized file layout for the downstream analytical queries that read the same table.

What triggers Flink's Iceberg sink to commit buffered events as a new snapshot?
What common problem does frequent small-batch streaming commits tend to create?

More Related questions...

What is Apache Iceberg? What is the purpose of Apache Iceberg? What is a table format, and how does it differ from a file format? What are the key features of Apache Iceberg? What is the architecture of an Iceberg table? What is a snapshot in Apache Iceberg? What is a manifest file? What is a manifest list? What is the table metadata file? What is an Iceberg catalog? What is hidden partitioning? What are partition transforms in Iceberg? What is schema evolution in Iceberg? What is time travel in Apache Iceberg? Which query engines support Apache Iceberg? What file formats does Iceberg use to store data? How do you create an Iceberg table? What is the difference between Iceberg and a Hive table? What are field IDs in Iceberg, and why do they matter? What is ACID compliance in the context of Apache Iceberg? What is the difference between Apache Iceberg and Delta Lake? What is the difference between Apache Iceberg and Apache Hudi? Explain how hidden partitioning differs from Hive-style partitioning? What is a lakehouse, and how does Iceberg enable it? What is partition evolution, and how does it work internally? What is the difference between copy-on-write and merge-on-read in Iceberg? What are positional deletes versus equality deletes? Explain the internal working of Iceberg's snapshot isolation mechanism? What is the REST catalog, and why has it become important? What is the difference between a Hive catalog and a REST catalog? Explain the execution flow of a query against an Iceberg table? How does Iceberg achieve schema evolution without rewriting data? Explain the internal working of manifest-level partition pruning? What is compaction in Iceberg, and why is it needed? How do you perform time travel queries in Iceberg? What is the difference between a snapshot rollback and time travel? Explain how Iceberg handles concurrent writes? What is the role of sequence numbers in Iceberg snapshots? Explain the lifecycle of a write operation (commit) in Apache Iceberg? What are branches and tags in Apache Iceberg? How does Iceberg support upserts via MERGE INTO? What is the small file problem, and how does Iceberg address it? Explain the internal working of column-level statistics in manifest files? What is the difference between Iceberg V1, V2, and V3 table specs? How do you migrate an existing Hive table to Iceberg? What are deletion vectors, and how do they improve on positional delete files? Explain how Iceberg integrates with Apache Spark for reading and writing? What is metadata table querying in Iceberg? How do you troubleshoot slow query planning on a large Iceberg table? Explain the execution flow of building a streaming lakehouse pipeline with Iceberg and Flink?
Show more question and Answers...

Web

Comments & Discussions