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

  1. Most asked What is the difference between supervised, unsupervised and reinforcement learning?
  2. Most asked Compare decision trees, random forests and gradient boosting.
  3. What is regularisation, and how do L1 and L2 differ?
  4. What is the difference between parameters and hyperparameters, and how do you tune hyperparameters?
  5. What are data drift and concept drift, and how do you monitor for them?
  6. What is the difference between bagging and boosting?
  7. When would you choose a simple model over a deep learning model?
  8. What is the difference between online and batch inference, and how do you choose?

pandas Core 2

  1. What is the difference between loc and iloc in pandas, and what is the SettingWithCopyWarning?
  2. When would you use merge, join or concat in pandas?

Fine-tuning Core 4

  1. Most asked Fine-tuning leaf: Fine-tune vs RAG vs prompts-decision framework?
  2. Most asked Fine-tuning leaf: SFT vs DPO/RLHF briefly?
  3. Fine-tuning leaf: Full fine-tune vs PEFT cost tradeoffs?
  4. When should you fine-tune a model versus using RAG or prompt engineering?

Evaluation Core 3

  1. Most asked When do you use code graders, model graders or human graders?
  2. Most asked Evaluation leaf: Offline vs online evaluation tradeoffs?
  3. How do you roll out a prompt or model change safely?

Python Developer Recommended 37

  1. Most asked Explain mutable vs immutable in Python.
  2. Most asked Explain is vs == in Python.
  3. Most asked Explain threading vs multiprocessing vs asyncio in Python.
  4. Most asked Backend Python interview: explain authN vs authZ.
  5. Most asked Explain deepcopy vs copy in Python.
  6. When do you use the `asyncio` module/package?
  7. When do you use the `logging` module/package?
  8. When do you use the `unittest / pytest` module/package?
  9. When do you use the `venv` module/package?
  10. Which pytest features do you use most?
  11. When do you use the `pathlib` module/package?
  12. When do you use the `collections` module/package?
  13. When do you use the `itertools` module/package?
  14. When do you use the `functools` module/package?
  15. When do you use the `json` module/package?
  16. When do you use the `concurrent.futures` module/package?
  17. When do you use the `secrets` module/package?
  18. Python packaging: requirements.txt vs pyproject.toml?
  19. Backend Python interview: explain Django ORM vs SQLAlchemy.
  20. When do you use `TypedDict`, `Literal`, `Protocol` and `@overload`?
  21. Compare dataclasses, attrs and Pydantic models.
  22. Explain the iterator protocol and the difference between iterables and iterators.
  23. What's the difference between `__new__` and `__init__`?
  24. What's the difference between `str` and `bytes`, and how do you handle encodings?
  25. Why is `pickle` dangerous, and what should you use instead?
  26. What is the difference between WSGI and ASGI, and how does it affect how a Python web app handles concurrent requests?
  27. When do you use the `argparse` module/package?
  28. When do you use the `dataclasses.asdict` module/package?
  29. When do you use the `enum` module/package?
  30. When do you use the `hashlib` module/package?
  31. Python packaging: wheels vs sdist?
  32. Why can floating-point math surprise you, and when should you use `Decimal` or `Fraction`?
  33. Which `contextlib` utilities are worth knowing?
  34. Compare f-strings, `str.format` and `%` formatting.
  35. Which built-ins make Python loops cleaner?
  36. How do Django, Flask and FastAPI compare for a new backend project?
  37. What is the difference between a list and a tuple in Python?

Data Structures Recommended 6

  1. In Python DSA interviews, explain: list vs deque for queue.
  2. Big-Ω vs Big-Θ?
  3. Time vs space tradeoff?
  4. Stable vs unstable sort?
  5. In Python DSA interviews, explain: array vs list.
  6. What is the difference between a list and a tuple in Python?

Algorithms Recommended 19

  1. Most asked Memoization vs tabulation?
  2. Most asked BFS vs DFS on trees—when each?
  3. Explain average-case vs worst-case for hash tables.
  4. When does binary search apply beyond sorted arrays?
  5. Linked list vs array tradeoffs?
  6. Balanced BST vs skewed BST complexity?
  7. Adjacency list vs matrix?
  8. When is BFS preferred for shortest path?
  9. 0/1 knapsack vs unbounded knapsack difference?
  10. Greedy vs DP—how do you choose?
  11. Difference between Big-O, Big-Theta, and Big-Omega?
  12. When is O(n log n) preferable to O(n²)?
  13. When is a stack the right tool?
  14. Bellman-Ford vs Dijkstra?
  15. Merge sort vs quicksort tradeoffs?
  16. When is backtracking preferred over DP?
  17. What is the lower bound for comparison-based sorting?
  18. Chaining vs open addressing?
  19. When can you sort in O(n)?

Data Engineering Recommended 6

  1. Most asked What is the difference between ETL and ELT, and when would you choose each?
  2. Most asked Batch or streaming: how do you decide?
  3. Most asked Why use an orchestrator like Airflow or Dagster instead of cron?
  4. Most asked Which data quality checks would you put on a critical pipeline?
  5. What is the difference between append, overwrite and merge (upsert) load strategies?
  6. What is the difference between a view, a table and a materialised view in a warehouse?

Was this page helpful?

Report a mistake