Interview Prep
AI & Machine Learning Interview Questions
The concepts behind machine learning and applied-AI interview questions, from fundamentals to building with LLMs.
10 of 10 AI & Machine Learning questions shown. Answers are hidden by default — try each one before revealing it.
1.A model is trained on a dataset of emails, each already labeled 'spam' or 'not spam', to predict the label for new emails. What type of learning is this?
Easymachine-learningfundamentals
2.A model reaches 99% accuracy on its training data but only 60% on held-out test data. What does this most likely indicate?
Easymachine-learningoverfittingfundamentals
3.In machine learning, what is an embedding?
Mediumembeddingsllmfundamentals
4.What problem does Retrieval-Augmented Generation (RAG) primarily address?
Mediumragllmapplied-ai
5.An LLM has a context window of 128,000 tokens. What does this number limit?
Mediumllmcontext-windowfundamentals
6.Explain what an embedding is and why it's useful.
Mediumembeddingsllmapplied-ai
7.What is RAG (Retrieval-Augmented Generation), and what problem does it solve?
Mediumragllmapplied-ai
8.Explain overfitting, and describe one way to reduce it.
Mediummachine-learningoverfittingfundamentals
9.What are the trade-offs of using a model with a much larger context window?
Mediumllmcontext-windowapplied-ai
10.When would you choose to fine-tune a model instead of improving your prompt or adding retrieval (RAG)?
Hardfine-tuningragapplied-aillm