← All tracks
Python & modeling
Quality checks, SCD, grain — the language plus the warehouse design
18 questions with hidden solutions
Drill this stack →- Q1Capital OneTargetHome DepotData modelingmedium
Type 1 vs Type 2 SCD — two sentences.
- Q2dbt LabsShopifyStripeData modelingmedium
What is the grain of a table, and why do they ask?
- Q3AirbnbNetflixInstacartData modelingmedium
Where do you put data-quality checks — in Python, in dbt, or in the orchestrator?
- Q4UberLyftDatabricksData modelingeasy
pandas vs Spark vs SQL for a 40 GB join. How do you choose?
- Q5WalmartCostcoBest BuyData modelingeasy
Kimball vs a wide big-table. When is the star actually worse?
- Q6AmazonWalmartInstacartData modelinghard
Late-arriving facts and a Type-2 dim. How do you still get the right attribute?
- Q7UberLyftInstacartData modelingmedium
apply vs a vectorized expression. Why is apply slow?
- Q8NetflixAirbnbDatabricksData modelingeasy
Pickle a 20 GB frame to S3. What do you say?
- Q9StripeShopifyBlockData modelingeasy
ThreadPoolExecutor on a CPU-heavy pandas groupby.
- Q10StripeSquareAdyenData modelingmedium
A webhook POST retried and created two customers.
- Q11StripeShopifyDatadogData modelingeasy
A pipeline uses df.iterrows() to call an API per row. What do you change before adding threads?
- Q12Two SigmaCitadelUberData modelinghard
You need a point-in-time join in pandas. What bug looks like a great backtest?
- Q13AirbnbNetflixLyftData modelingeasy
pickle vs parquet for a 20 GB frame between tasks. What do you store?
- Q14dbt LabsFivetranStripeData modelingmedium
Type 2 SCD in Python vs in SQL/dbt. When is Python acceptable?
- Q15AirbnbGitLabPrefectData modelingmedium
A unit test mocks datetime.now() but the DAG still uses the wrong partition. Why?
- Q16DatadogCloudflareNotionData modelingeasy
polars lazy vs pandas for a 15 GB join on a 32 GB laptop. What happens?
- Q17Capital OneUnitedHealthAppleData modelinghard
You hashed emails as a join key. Legal says stop. What was the modeling mistake?
- Q18InstacartShopifyStripeData modelingmedium
Hypothesis: “nulls in float columns become NaN and broke unique tests.” How do you talk about this in a DE interview?