InterviewStack.io LogoInterviewStack.io

AI and Machine Learning Background Questions

A synopsis of applied artificial intelligence and machine learning experience including models, frameworks, and pipelines used, datasets and scale, production deployment experience, evaluation metrics, and measurable business outcomes. Candidates should describe specific projects, roles played, research versus production distinctions, and technical choices and trade offs.

HardTechnical
83 practiced
Write an optimized ANSI SQL query (and describe the approach) to compute the 95th percentile of session durations per user over the past 90 days from a sessions table containing billions of records: sessions(session_id, user_id, start_ts, end_ts, region). Explain indexing, partitioning, and approximation algorithms (for example t-digest or approx_percentile) you would use to make this computation performant in production and how you'd handle late-arriving sessions.
MediumSystem Design
74 practiced
Design an ML training pipeline orchestration using Airflow (or an equivalent orchestrator) that retrains a model weekly: include tasks to materialize training features, run data/feature validations, start training with a locked dataset snapshot, compute validation metrics, register the model in a registry, and trigger a canary deployment if metrics meet thresholds. Describe DAG structure, idempotency, lineage capture, and failure/retry handling.
MediumTechnical
70 practiced
You must compute rolling model performance metrics (daily precision and recall) for multiple models across cohorts and publish them to dashboards. Explain the data modeling and aggregation pipelines you would implement, how you would handle late-arriving labels, and how you would compute accurate time-series metrics with lookback windows. Include how you would validate metric correctness.
HardSystem Design
110 practiced
Design a multi-region ML data pipeline where raw PII must remain in the user's home region but aggregated or anonymized models can be globally accessed. Explain data partitioning, federated training vs central training with differential privacy, feature aggregation across regions, and how to safely distribute global model artifacts while satisfying data residency and latency requirements.
MediumTechnical
77 practiced
Compare three model serving architectures for inference at scale: (1) single-model REST microservice per model, (2) multi-model server (e.g., TorchServe, Triton) hosting many models, and (3) serverless functions (e.g., AWS Lambda). For each approach, discuss cold-start behavior, autoscaling characteristics, model loading time, resource utilization, operational complexity, and the implications for a data engineer responsible for feature delivery and monitoring.

Unlock Full Question Bank

Get access to hundreds of AI and Machine Learning Background interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.