2027 Interview Question Bank • Page 2 of 4

Classic ML Debugging, Data Leakage, Metrics & Production Evals (30 Q&As + Code)

Target/temporal leakage, training-serving skew, NaN edge crashes, ROC-AUC vs PR-AUC under class imbalance, LLM-as-a-Judge bias calibration, Recall@k / MRR / nDCG, and trajectory CI gates.

Back to 20 Companies
Vault Answers Locked — Complete 4 More Company Interviews (0/4 Passed)

2 sample answers are open below to preview. Finish all 5 rounds + Final Loop Completion on any 4 companies to unlock all 120 Q&As & production code snippets!

Q31CoreAsked at: Meta · JPMC · DatabricksFree Sample

Your fraud model scores 0.99 ROC-AUC in offline validation yet fails completely in live checkout scoring. Name the #1 culprit and fastest diagnostic test.

Target leakage—including a post-event attribute (like chargeback_settled_30d, manual review outcome, or update timestamp) unavailable when checkout authorization happens. Fastest diagnostic ("Drop and Watch"): ablate suspicious columns one by one; if dropping 1 feature plunges AUC from 0.99 toward 0.52, that feature leaked the label.

Production Pattern
# BAD: post-event column unknown at real-time checkout
FEATURES = ["amount", "velocity_1h", "chargeback_settled_30d"]
# GOOD: strict point-in-time feature audit (available <= decision_ts)
SAFE_FEATURES = ["amount", "velocity_1h", "merchant_risk_30d_lag"]
Interviewer Rejection Signal: Tuning XGBoost hyperparameters blindly before auditing feature timestamps.
Q32SeniorAsked at: Databricks · NVIDIA · UberFree Sample

What is Training-Serving Skew and how do teams eliminate it permanently across Python/Spark pipelines?

Training-serving skew occurs whenever live inference computes feature values differently from offline training—such as duplicating z-score constants (STALE_MEAN = 950.0), using mismatched timezone cutoffs, or handling NaNs differently. Fix cleanly by fitting transforms strictly inside one sklearn.pipeline.Pipeline / ONNX / Feature Store artifact shared verbatim across offline and online endpoints.

Production Pattern
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.preprocessing import StandardScaler
# Freeze training statistics inside ONE versioned artifact
pipe = Pipeline([("impute", SimpleImputer(strategy="median")), ("scale", StandardScaler())])
pipe.fit(X_train) # Fit ONLY on X_train!
Interviewer Rejection Signal: Copying scaling means/constants manually into serving microservices.
Q33CoreAsked at: JPMC · Morgan Stanley

Why does random.shuffle() or standard random train_test_split invalidate time-series forecasting and fraud detection backtests?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q34CoreAsked at: Databricks · Meta

What hidden leakage breaks evaluation if you run StandardScaler().fit_transform(X) BEFORE calling train_test_split(X, y)?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q35SeniorAsked at: Stripe · Meta · PayPal

For a 0.1% fraud dataset (1 fraud per 1,000 transactions), why can ROC-AUC = 0.99 still ship a terrible model while PR-AUC exposes the flaw?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q36SeniorAsked at: Scale AI · OpenAI

How do you fix Position Bias and Verbosity Bias inside pairwise LLM-as-a-Judge A/B evaluations?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q37SeniorAsked at: Snowflake · Cognizant

In a RAG pipeline failing accuracy goals, what exact metric separates "Retriever failed" from "LLM hallucinated"?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q38CoreAsked at: Google · Morgan Stanley

Compare Recall@k, MRR (Mean Reciprocal Rank), and nDCG for search & RAG ranking.

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q39SeniorAsked at: Scale AI · Anthropic

Why are final-output unit tests alone inadequate for coding/support agents? What do Trajectory Evals measure?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q40StaffAsked at: Scale AI · Hugging Face

Why must every Frontier Eval Benchmark run N-gram & semantic decontamination checks before celebrating 95% eval scores?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q41SeniorAsked at: Wipro · Google · Microsoft

How do you safely upgrade a live production RAG system from Model A to Model B without blind regressions?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q42CoreAsked at: NVIDIA · Databricks

Why must production Python/JSON ML APIs explicitly guard against None, NaN, and Inf feature values?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q43SeniorAsked at: Wipro · Datadog

Why does DBSCAN crush K-Means when clustering live microservices crash logs into incident buckets?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q44CoreAsked at: Databricks · OpenAI

In Text-to-SQL benchmarks, why does String Exact-Match severely underrate working agents compared to Execution Accuracy (EX)?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q45SeniorAsked at: EY · Morgan Stanley

How do you test and monitor Demographic Fairness & Drift in hiring or credit-risk AI systems?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q46CoreAsked at: Meta · Amazon

When should predicted classifier outputs undergo Probability Calibration (Platt Scaling / Isotonic Regression)?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q47SeniorAsked at: TCS · AWS

What is Shadow Replay / Golden Equivalence Testing in legacy-to-modern AI code migration?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q48CoreAsked at: Google · NVIDIA

What is "Data Drift" vs "Concept Drift" and which alerts faster in production?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q49SeniorAsked at: Anthropic · Deloitte

How does an automated Faithfulness Verifier catch "Citation Hallucination" (citing a real policy tag while lying about its numbers)?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q50CoreAsked at: Meta · OpenAI

Explain why L1 (Lasso) promotes sparse weights while L2 (Ridge) shrinks weights evenly without exact zeros.

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q51StaffAsked at: Scale AI · OpenAI

Why do synthetic LLM-generated test datasets quickly create "Model Collapse" or echo-chamber eval blind spots?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q52CoreAsked at: Google · Databricks

When evaluating RAG chunks or recommendations, what is the difference between GBDT (XGBoost) and Deep Transformers on tabular data?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q53SeniorAsked at: Amazon · Netflix

How do you handle cold-start latency vs online feature freshness in a dual-model real-time CTR / risk recommender?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q54CoreAsked at: OpenAI · Meta

Why is Gradient Clipping (clip_grad_norm_) critical alongside Warmup LR schedules during Transformer training?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q55SeniorAsked at: JPMC · Morgan Stanley

What is "Lookahead Bias" inside Financial RAG & Backtesting Assistants, and how do metadata filters stop it?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q56CoreAsked at: Scale AI · Wipro

In a multi-label classifier or RAG eval pipeline, contrast Micro-F1 vs Macro-F1 when class counts differ 100x.

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q57SeniorAsked at: OpenAI · Scale AI

What makes "Pass@k" (k=1 vs k=5) essential when benchmarking AI coding agents?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q58CoreAsked at: Microsoft · Databricks

How does an Error Analysis Funnel speed up debugging a broken 62%-accurate RAG bot cleanly in 2 hours?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q59StaffAsked at: Meta · Netflix

When deploying an online Multi-Armed Bandit / Thompson Sampling router across 4 prompts, why preserve randomized exploration traffic?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →
Q60CoreAsked at: Wipro · Anthropic

What four attributes MUST appear on every OpenTelemetry LLM observability trace span in production?

Locked (0/4 Loops)
Answer & production code fix locked until 4 company interviews are passed (you have 0/4).Go Pass a Company Loop →