"AI engineer" and "ML engineer" now cover a wide range of jobs. Some roles train models from scratch. Others build products on top of large language model APIs. Many sit in between, fine tuning models, building retrieval systems, and running evaluation pipelines. The interview loop depends heavily on which kind of role it is, so the first step is to figure that out.
This guide explains the main types of AI and ML roles, the topics each one tests, and a preparation plan that covers the common ground.
Identify which kind of AI role it is
Read the posting and sort it into one of these groups:
- Applied AI or LLM engineer: builds features with foundation models. Keywords: prompts, retrieval augmented generation, agents, evaluation, vector databases, API integration.
- Machine learning engineer: trains, deploys, and maintains models in production. Keywords: feature pipelines, training, serving, monitoring, MLOps.
- Research or modeling focused: develops new models or methods. Keywords: papers, architectures, experiments, PyTorch internals.
- ML platform or infrastructure: builds tools for other ML engineers. Keywords: GPUs, distributed training, orchestration, model registries.
Each group shares fundamentals, but the depth expected in each area changes. If you are unsure, ask the recruiter which interview rounds to expect.
Machine learning fundamentals
Almost every AI and ML loop checks the basics. Be ready to explain these clearly, with examples:
- Supervised versus unsupervised learning, and examples of each.
- Bias and variance, overfitting and underfitting, and how to detect them.
- Regularization: L1, L2, dropout, early stopping.
- Evaluation metrics: accuracy, precision, recall, F1, ROC AUC, and when each is misleading. For regression: MAE, RMSE.
- Train, validation, and test splits, cross validation, and data leakage.
- Class imbalance and how to handle it.
- Gradient descent and common optimizers.
- Feature engineering and feature importance.
A common question is "you trained a model and it performs well offline but poorly in production. What could be wrong?" Strong answers mention data drift, training and serving skew, leakage in the offline evaluation, and differences between the evaluation set and real traffic.
Deep learning topics
- How backpropagation works at a high level.
- Activation functions and why nonlinearity matters.
- Convolutional networks for images and why they work.
- The transformer architecture: attention, positional information, encoder versus decoder.
- Embeddings: what they represent and how they are used for search and recommendations.
- Batch size, learning rate, and their effect on training.
You do not need to derive every equation, but you should explain each concept in plain language and know when it matters in practice.
LLM and generative AI questions
For applied AI roles, these questions are now standard:
- How does retrieval augmented generation work, and when is it better than fine tuning?
- How do you chunk documents for retrieval, and what tradeoffs affect chunk size?
- How do you evaluate an LLM feature? What metrics or test sets would you build?
- How do you reduce hallucinations?
- What are the cost and latency tradeoffs between model sizes?
- How do you handle prompt injection and other security risks?
- When would you fine tune a model, and what data would you need?
- How would you design an agent that calls tools, and how do you stop it from looping or taking unsafe actions?
What interviewers want to hear: a clear description of the system, an evaluation plan, and attention to failure modes. "It works on my examples" is not an evaluation plan. A small labeled test set, automatic checks, and human review of a sample are a strong baseline.
ML system design
Many loops include a design round such as:
- Design a recommendation system for a content feed.
- Design a fraud detection system for payments.
- Design a search ranking system.
- Design a support assistant that answers questions from company documents.
Use a structure similar to general system design interviews, adapted for ML:
- Clarify the goal and the metric. What business outcome matters, and what offline metric approximates it?
- Data: what data exists, how labels are created, and how fresh they need to be.
- Features and model: start with a simple baseline, then explain what a more complex model would add.
- Training pipeline: how often you retrain and how you validate.
- Serving: batch or real time, latency limits, and caching.
- Monitoring: data drift, model quality, and alerts.
- Experiments: how you would A/B test the change safely.
Starting with a simple baseline is a strong signal. Interviewers like candidates who do not jump to the most complex model first.
Coding rounds
AI and ML loops usually include one or two coding rounds:
- General coding: similar to software engineering loops. Review the main coding interview patterns.
- ML coding: implement a simple algorithm from scratch, such as k-means, logistic regression, or a small neural network layer with NumPy.
- Data manipulation: pandas or SQL tasks on a messy dataset.
Practice writing clean Python without a notebook full of helper cells, because many interviews use a plain editor.
Talking about your projects
Project discussions carry a lot of weight in AI interviews because the field changes quickly and interviewers want to see real judgment. For each project, be ready to explain:
- The problem and why ML or an LLM was the right tool.
- The data, including how you cleaned and labeled it.
- The baseline you started with.
- How you evaluated the system, and what the results showed.
- What failed, and what you changed.
- How it ran in production, if it did.
If your work is under NDA, describe the approach and decisions without confidential details. If you are moving into AI from another field, a well documented personal project with a clear evaluation is more convincing than a list of courses.
A four-week preparation plan
| Week | Focus |
|---|---|
| 1 | ML fundamentals and metrics, explained out loud |
| 2 | Deep learning, transformers, and LLM topics for the role type |
| 3 | ML system design: practice three problems end to end |
| 4 | Coding practice, project stories, and review |
For free question banks and handbooks, see our list of GitHub repositories for AI and ML interview questions.
FAQ
Do I need a PhD to become an ML engineer?
No. Many ML engineering and applied AI roles focus on building reliable systems, and practical experience matters more than degrees. Research roles are more likely to prefer advanced degrees.
How much math is in an AI interview?
It depends on the role. Applied AI roles need intuition about probability, statistics, and linear algebra. Research roles may ask you to work through derivations.
What is the most common mistake in ML interviews?
Skipping evaluation. Candidates describe models and architectures in detail but cannot say how they would know whether the system works. Always include a measurement plan.
Should I learn a specific framework?
PyTorch is the most common framework in postings, and familiarity with at least one LLM API and one vector store helps for applied roles. Check the posting and match it.
Find AI roles and prepare for them
Interviews lists AI engineering jobs, AI and ML roles, and AI industry jobs. When an interview is booked, the prep plan builds quizzes and topics from the posting's stack. Create a free profile to start.