Skip to content

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. 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?

    Easy

    machine-learningfundamentals

  2. 2.A model reaches 99% accuracy on its training data but only 60% on held-out test data. What does this most likely indicate?

    Easy

    machine-learningoverfittingfundamentals

  3. 3.In machine learning, what is an embedding?

    Medium

    embeddingsllmfundamentals

  4. 4.What problem does Retrieval-Augmented Generation (RAG) primarily address?

    Medium

    ragllmapplied-ai

  5. 5.An LLM has a context window of 128,000 tokens. What does this number limit?

    Medium

    llmcontext-windowfundamentals

  6. 6.Explain what an embedding is and why it's useful.

    Medium

    embeddingsllmapplied-ai

  7. 7.What is RAG (Retrieval-Augmented Generation), and what problem does it solve?

    Medium

    ragllmapplied-ai

  8. 8.Explain overfitting, and describe one way to reduce it.

    Medium

    machine-learningoverfittingfundamentals

  9. 9.What are the trade-offs of using a model with a much larger context window?

    Medium

    llmcontext-windowapplied-ai

  10. 10.When would you choose to fine-tune a model instead of improving your prompt or adding retrieval (RAG)?

    Hard

    fine-tuningragapplied-aillm

← All interview prep categories