Storage Formats, Partitioning, and Serialization Questions

Physical storage layout for analytics data. Covers columnar and row format internals and their trade-offs (Parquet row groups and column chunks, ORC stripes, Avro), serialization choices, compression codec and column-encoding selection, partitioning and clustering or bucketing strategy including partition-key choice and pruning, the small-file problem and compaction, file-size and row-group tuning, and open table formats (Iceberg, Delta Lake, Hudi) at the layout and metadata level: ACID commits, snapshots and time travel, manifest and metadata-tree structure, schema and partition evolution, and the catalog that tracks them. The scope is how data is laid out on disk and what that layout makes cheap or expensive. Tuning the queries that read it, and choosing which managed platform to run it on, are covered separately.

MediumTechnical
37 practiced

A Spark job scanning a Parquet table is slow but the same cluster reads other tables quickly. List practical performance checks and optimizations you would perform: consider column projection, predicate pushdown, rowgroup settings, compression codec, dictionary encoding settings, file sizes, and executor memory. Describe how each change impacts scan performance.

HardSystem Design
44 practiced

Design a metadata service to avoid expensive S3 list operations for a table with millions of partitions and billions of files. Specify APIs (list partitions, lookup files for partition predicate), caching, consistency model with writers, how the service integrates with Hive metastore or Iceberg, and how it scales horizontally.

EasyTechnical
53 practiced

Differentiate predicate pushdown from projection pushdown in a SQL engine reading Parquet files. Provide concise examples (SQL or pseudo SQL) demonstrating each and explain how they reduce IO and memory footprint during query execution.

EasyTechnical
41 practiced

List up to five practical rules of thumb for choosing partition keys for analytics tables. For each rule briefly explain why it matters and give an example of a good or bad partition key for event logs or sales data.

MediumTechnical
37 practiced

Explain dictionary encoding, run-length encoding (RLE), delta encoding, and bit-packing as column encoding techniques. For each encoding describe which data distributions and data types benefit most, and provide a short example for strings, integers, and timestamps.

Unlock Full Question Bank

Get access to all Storage Formats, Partitioning, and Serialization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.