All jobs / Data engineer / Data Warehousing
Data engineer interview question · 3–5 years
At 09:00 hundreds of small BI queries queue for minutes. The nightly transform, one heavy query, also takes too long.
Bigger compute, more compute, or both?
The strongest answer
Different levers: the queue is concurrency, so add clusters or a separate BI compute; the heavy transform is one query, so give it a larger compute for its window and stop it afterwards
Why it works
Exactly — concurrency wants more parallel compute; a single heavy query wants a bigger one; isolate the workloads.
What a good answer covers
- Concurrency: scale out. Heavy: scale up.
- Separate BI from transform compute.
- Size per workload window.
- Do not make users move.
Answers that fall short
- Close, but not the strongest: Scale up to a bigger warehouse for everyone — it will clear the queue and run the transform faster
A larger size helps the transform, but a queue of small queries wants parallel capacity, not a bigger single engine. - Weak: Buy the biggest size and leave it on; compute is cheap compared with engineers waiting
Leaving the largest size on all day is the classic warehouse bill; size per workload and stop what is idle. - Red flag: Ask BI to schedule their dashboards outside business hours so they stop queueing
Business hours are when the business uses dashboards; moving the users is not a capacity plan.
Who gets asked this
More Data Warehousing questions
- Ad-hoc exploration starves the 06:00 SLA job. What do you change?
- A warehouse vendor wants you all-in on their runtime. What do you keep portable?
- Give the one-sentence residual you would say at a warehouse cutover.
- A job burned a month of budget in a weekend. How do you learn?
- A fact table is queried by event_date. How do you store it?
- A cloud warehouse such as Snowflake or BigQuery does not rely on B-tree indexes on fact tables the way an…
- A teammate points the app’s primary key lookups at the warehouse. What do you say?
- Snowflake, BigQuery and Databricks all separate storage from compute. What does that actually buy a data team?