Layoffs & Hires

Layoffs & Hires: who is laying off, who is hiring, and posts from job seekers. About

AI Engineer Interview Questions Asked at Top Companies

by petemakes19h

191 views

1. Microsoft – Machine Learning Engineer

Interview focus: ML fundamentals, coding, LLMs, and mathematical reasoning.

Questions asked:

  1. Implement a 2D convolution (Conv2D) from scratch.
  2. Design an end-to-end machine learning system.
  3. Explain transformer architecture in depth.
  4. How do LLMs work internally?
  5. Prove why MSE is non-convex for logistic regression.
  6. Why is the mean used in K-Means clustering? Derive it mathematically.

2. JPMorgan Chase – ML / GenAI Engineer

Interview focus: DSA, ML fundamentals, LLMs, and system design.

Questions asked:

  1. Solve data structures and algorithms problems.
  2. Explain the fundamentals of machine learning.
  3. Explain transformer architecture.
  4. Explain how LLMs work internally.
  5. Implement ML-related coding problems.
  6. Design a machine learning system.
  7. Explain the trade-offs involved in building LLM-based applications.

3. Zomato – Machine Learning Engineer

Interview focus: DSA, SQL, machine learning, and NLP.

Questions asked:

  1. Solve DSA problems.
  2. Write SQL queries.
  3. Explain machine learning algorithms in depth.
  4. Explain NLP fundamentals.
  5. What are the differences between traditional NLP approaches and modern transformer-based models?
  6. Explain different machine learning techniques and their applications.

4. Anthropic – Machine Learning Engineer / Prompt Engineer

Interview focus: LLM applications, memory, reliability, tooling, and AI safety.

Questions asked:

  1. Why Anthropic, and why are you interested in this ML Engineer / Prompt Engineer role?
  2. What other AI platforms and models do you use?
  3. What challenges have you faced while working with different models?
  4. Given a PDF-based workflow with long context windows, how would you improve reliability and performance?
  5. How would you store memory and chat history?
  6. How would you prevent timeouts in an LLM application?
  7. How would you maintain consistent outputs without rewriting the entire code path?
  8. How would you implement guardrails in an AI system?
  9. How do you decide whether a problem needs AI/ML or a traditional software solution?

5. Apple – Machine Learning Engineer

Interview focus: Python, SQL, ML fundamentals, data pipelines, and deep learning.

Questions asked:

  1. Find the missing element in an array.
  2. Find the longest consecutive sequence in an array.
  3. Write SQL queries.
  4. How would you fit a machine learning model?
  5. Explain the data flow in a machine learning pipeline.
  6. What is the difference between batch and streaming data processing?
  7. When would you use LSTM, RNN, or ANN?
  8. How would you use these architectures in a multimodal system?
  9. How would you monitor a machine learning pipeline?
  10. Why would you use MongoDB? What makes it suitable for your use case?
  11. Why use cloud services instead of running everything locally?

6. Reddit – Staff Machine Learning Engineer

Interview focus: ML system design, model deployment, experimentation, and fundamentals.

Questions asked:

  1. Design a product recommendation system.
  2. Explain the differences between L1 and L2 regression.
  3. What is overfitting and underfitting?
  4. Which machine learning models are most likely to experience overfitting, and why?
  5. How would you deploy a machine learning model into production?
  6. How would you design feature pipelines?
  7. How would you reduce inference latency?
  8. How would you design an A/B testing framework for a machine learning model?

7. Scale AI – Senior Machine Learning Engineer

Interview focus: LLM fundamentals, NumPy coding, and transformer internals.

Questions asked:

  1. Why is tokenization necessary?
  2. Could a language model tokenize using only the 26 letters of the alphabet?
  3. Can KL divergence be incorporated during supervised fine-tuning (SFT)?
  4. Implement multi-head attention using NumPy.
  5. Implement top-p (nucleus) sampling using NumPy.
  6. Explain tokenization strategies.
  7. Explain different LLM training and alignment approaches.

8. Accenture – AI/ML Engineer

Interview focus: LangChain, RAG, GenAI architecture, and ML fundamentals.

Questions asked:

  1. Introduce yourself and explain your AI/ML projects.
  2. What is LangChain?
  3. Explain different prompting techniques.
  4. What is RAG, and how does retrieval work?
  5. Design an architecture for a Generative AI application.
  6. What is PCA?
  7. Explain transformer architecture.
  8. Explain regression.
  9. Which evaluation metrics would you use for machine learning models?
  10. How would you evaluate a RAG application using a graph database?

What should you prepare?

Looking across these reported interviews, some recurring topics are:

  1. Python and ML coding
  2. Transformer architecture and attention mechanisms
  3. RAG architecture and retrieval strategies
  4. LLM fundamentals and decoding strategies
  5. Embeddings and vector databases
  6. ML and LLM system design
  7. Model evaluation and monitoring
  8. Production deployment, latency, and scalability
  9. AI safety, guardrails, and prompt injection