Machine Learning Engineer · interview questions
Machine Learning Engineer interview questions: comparison
From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.
Machine Learning Fundamentals Core 8
- Most asked What is the difference between supervised, unsupervised and reinforcement learning?
- Most asked Compare decision trees, random forests and gradient boosting.
- What is regularisation, and how do L1 and L2 differ?
- What is the difference between parameters and hyperparameters, and how do you tune hyperparameters?
- What are data drift and concept drift, and how do you monitor for them?
- What is the difference between bagging and boosting?
- When would you choose a simple model over a deep learning model?
- What is the difference between online and batch inference, and how do you choose?
pandas Core 2
Fine-tuning Core 4
Evaluation Core 3
Python Developer Recommended 37
- Most asked Explain mutable vs immutable in Python.
- Most asked Explain is vs == in Python.
- Most asked Explain threading vs multiprocessing vs asyncio in Python.
- Most asked Backend Python interview: explain authN vs authZ.
- Most asked Explain deepcopy vs copy in Python.
- When do you use the `asyncio` module/package?
- When do you use the `logging` module/package?
- When do you use the `unittest / pytest` module/package?
- When do you use the `venv` module/package?
- Which pytest features do you use most?
- When do you use the `pathlib` module/package?
- When do you use the `collections` module/package?
- When do you use the `itertools` module/package?
- When do you use the `functools` module/package?
- When do you use the `json` module/package?
- When do you use the `concurrent.futures` module/package?
- When do you use the `secrets` module/package?
- Python packaging: requirements.txt vs pyproject.toml?
- Backend Python interview: explain Django ORM vs SQLAlchemy.
- When do you use `TypedDict`, `Literal`, `Protocol` and `@overload`?
- Compare dataclasses, attrs and Pydantic models.
- Explain the iterator protocol and the difference between iterables and iterators.
- What's the difference between `__new__` and `__init__`?
- What's the difference between `str` and `bytes`, and how do you handle encodings?
- Why is `pickle` dangerous, and what should you use instead?
- What is the difference between WSGI and ASGI, and how does it affect how a Python web app handles concurrent requests?
- When do you use the `argparse` module/package?
- When do you use the `dataclasses.asdict` module/package?
- When do you use the `enum` module/package?
- When do you use the `hashlib` module/package?
- Python packaging: wheels vs sdist?
- Why can floating-point math surprise you, and when should you use `Decimal` or `Fraction`?
- Which `contextlib` utilities are worth knowing?
- Compare f-strings, `str.format` and `%` formatting.
- Which built-ins make Python loops cleaner?
- How do Django, Flask and FastAPI compare for a new backend project?
- What is the difference between a list and a tuple in Python?
Data Structures Recommended 6
Algorithms Recommended 19
- Most asked Memoization vs tabulation?
- Most asked BFS vs DFS on trees—when each?
- Explain average-case vs worst-case for hash tables.
- When does binary search apply beyond sorted arrays?
- Linked list vs array tradeoffs?
- Balanced BST vs skewed BST complexity?
- Adjacency list vs matrix?
- When is BFS preferred for shortest path?
- 0/1 knapsack vs unbounded knapsack difference?
- Greedy vs DP—how do you choose?
- Difference between Big-O, Big-Theta, and Big-Omega?
- When is O(n log n) preferable to O(n²)?
- When is a stack the right tool?
- Bellman-Ford vs Dijkstra?
- Merge sort vs quicksort tradeoffs?
- When is backtracking preferred over DP?
- What is the lower bound for comparison-based sorting?
- Chaining vs open addressing?
- When can you sort in O(n)?
Data Engineering Recommended 6
- Most asked What is the difference between ETL and ELT, and when would you choose each?
- Most asked Batch or streaming: how do you decide?
- Most asked Why use an orchestrator like Airflow or Dagster instead of cron?
- Most asked Which data quality checks would you put on a critical pipeline?
- What is the difference between append, overwrite and merge (upsert) load strategies?
- What is the difference between a view, a table and a materialised view in a warehouse?