Interview practice question
Replacing a Spark cluster with DuckDB
Data Engineering · Python · Experienced
A daily job spins up a Spark cluster to aggregate about 20 GB of Parquet files, costing a lot for a 5-minute workload. What would you consider?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- 20 GB is small enough for a single machine.
- DuckDB or Polars can query Parquet directly with SQL or DataFrames.
- Cluster startup and cost often exceed the actual work.
- Run on a container or serverless job with enough memory.
- Benchmark and keep Spark only if data grows a lot.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.