AI Engineer Interview Questions & Answers
40 questions for AI Engineer interviews — 3 easy, 31 medium, 6 hard.
About the AI Engineer role
An AI engineer builds applications on top of large language models and other foundation models: chatbots, RAG search, document extraction and agents. Interviews focus on LLM fundamentals, prompting, embeddings and vector search, evaluation of LLM outputs, cost and latency optimisation, and safety issues like prompt injection and data privacy. Solid Python and API skills are expected, plus at least one shipped GenAI project.
Pandas: merge vs join vs concat?
Show answer
What is an AI agent in the context of LLMs?
Show answer
A 10 million row DataFrame with a city column is using too much memory. How can the category dtype help?
Show answer
Why do we use activation functions? Why is ReLU popular?
Show answer
Why are NumPy arrays faster than Python lists?
Show answer
How would you build a churn prediction model end to end?
Show answer
How do you choose a learning rate for a neural network?
Show answer
How does dropout work?
Show answer
How do you evaluate and explain a model to business stakeholders?
Show answer
What are common ways to evaluate NLP models?
Show answer
What are guardrails in LLM applications?
Show answer
What is SVM and the kernel trick?
Show answer
Your neural network's training loss suddenly becomes NaN. What do you check?
Show answer
Your LLM gives different summaries for the same document on different runs, but auditors need consistent output. What do you do?
Show answer
How do list comprehensions work and why use them?
Show answer
Tell me about a GenAI project you built and what you learned from it.
Show answer
Your fraud model's true labels arrive 30 days late. How do you monitor it in production?
Show answer
What is BERT and how is it pretrained?
Show answer
What are shadow, canary and A/B deployments for models?
Show answer
Pandas: compute a 7-day rolling average of daily sales for each store.
Show answer
What is Bayesian A/B testing and how are its results reported?
Show answer
Your notebook runs on your laptop but fails on a colleague's machine. How do you make the work reproducible?
Show answer
Difference between a shallow copy and a deep copy?
Show answer
A deep network you built from scratch does not learn at all; the loss stays flat from the first epoch. Could weight initialisation be the reason?
Show answer
What is MLOps?
Show answer
Your random forest is accurate but too slow at prediction time for a real-time API. What do you do?
Show answer
Tell me about a time an experiment result changed a product decision.
Show answer
How do you deploy and monitor a machine learning model?
Show answer
What should you log for a production prediction service?
Show answer
What is function calling or tool use in LLMs?
Show answer
Write a basic PyTorch training loop for one epoch.
Show answer
Tell me about a time your model did not perform as expected after deployment.
Show answer
You must classify support messages into 40 categories, but some categories have only 20 examples. What do you do?
Show answer
What is the difference between apply, map and applymap in Pandas?
Show answer
How do you profile and speed up slow Python code?
Show answer
What are RNNs and why did LSTMs improve them?
Show answer
What are trend, seasonality and noise in a time series?
Show answer
What is transfer learning?
Show answer
Write Pandas code to read a large CSV in chunks and compute total sales per city.
Show answer
Frequently asked questions
What does a AI Engineer do?
An AI engineer builds applications on top of large language models and other foundation models: chatbots, RAG search, document extraction and agents. Interviews focus on LLM fundamentals, prompting, embeddings and vector search, evaluation of LLM outputs, cost and latency optimisation, and safety issues like prompt injection and data privacy. Solid Python and API skills are expected, plus at least one shipped GenAI project.
Which skills are tested in a AI Engineer interview?
Expect questions on Prompt design, RAG pipelines, Vector databases, LLM evaluation, Python APIs. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a AI Engineer interview?
Revise Generative AI and LLMs, Deep Learning and NLP, MLOps and Model Deployment, Python for Data Science first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.