InterviewStack.io LogoInterviewStack.io

Storage Formats and Partitioning for Analytics Questions

Addresses choices and trade offs for storage formats and physical partitioning in analytical and large scale storage systems. Topics include columnar file formats such as parquet and orc and table formats such as delta lake; compression and encoding techniques; partitioning schemes that enable data pruning and efficient predicate push down; file sizing and layout for scan performance; cost and performance trade offs in cloud object storage; and coordination between logical partitioning and physical storage format to optimize query throughput and storage cost.

MediumTechnical
36 practiced
Provide a safe rollout strategy for changing the default compression codec from snappy to zstd in a large Parquet data lake. Include steps for backward compatibility, consumer support, validation tests, staged rollout, and rollback plan.
MediumTechnical
71 practiced
Analysts perform heavy ad-hoc queries that read large partitions but select only a few columns. What storage format and physical layout choices (rowgroup sizing, compression, column order, partition depth) would you recommend to reduce read amplification and cost? Explain why each recommendation helps for ad-hoc workloads.
MediumTechnical
54 practiced
Explain how Parquet and ORC collect and store column statistics such as min, max, null count, and distinct-count approximations. How do query engines use those statistics for pruning rowgroups or stripes, and under what circumstances might statistics be missing or misleading?
MediumTechnical
47 practiced
Explain how format-level features such as Parquet dictionary encoding and ORC stripe indexes interact with sort order and file layout to enable faster scans. Describe how sorting data before write can improve both compression and predicate pruning and what ingestion throughput trade-offs that causes.
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.

Unlock Full Question Bank

Get access to hundreds of Storage Formats and Partitioning for Analytics interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.