InterviewStack.io LogoInterviewStack.io

Working with Large-Scale Datasets Questions

Analyzing data that does not fit comfortably in memory or a single query. Covers distributed processing concepts, partitioning and sampling strategies, query and pipeline performance, and trade-offs when scaling an analysis. Focuses on getting correct answers efficiently at scale.

EasyTechnical
71 practiced

You have a CSV with 10 million rows that does not fit into memory. Describe at least three Python-based strategies (using stdlib and pandas) to process it while minimizing memory: e.g., read in chunks with pd.read_csv(chunksize=...), stream with the csv module, or use generator-based processing. For each strategy list pros/cons and a short code sketch to compute per-user counts.

HardTechnical
96 practiced

Compare Polars, Pandas, and Dask from a Python data analysis perspective: API ergonomics, single-node performance, parallelism model (multithread vs multiprocessing), lazy evaluation, memory model (Arrow-based for Polars), and interoperability with existing Pandas code. Provide scenarios where a migration to Polars or Dask is justified and the expected migration costs.

MediumTechnical
96 practiced

An executive needs an urgent, accurate report that requires joining two very large tables. The production warehouse cannot run that join within the timeline without impacting other workloads. Propose pragmatic strategies to obtain accurate results quickly and safely (sampling, keyed sharding, pre-aggregations, temporary offload to a separate cluster), and describe validation steps and operational risks for each strategy.

That is every published Working with Large-Scale Datasets question for Data Engineer so far. Browse the other topics in this category, or practice this one interactively.