AI Engineer Interview Questions Asked at Top Companies
by petemakes19h
1. Microsoft – Machine Learning Engineer
Interview focus: ML fundamentals, coding, LLMs, and mathematical reasoning.
Questions asked:
- Implement a 2D convolution (Conv2D) from scratch.
- Design an end-to-end machine learning system.
- Explain transformer architecture in depth.
- How do LLMs work internally?
- Prove why MSE is non-convex for logistic regression.
- 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:
- Solve data structures and algorithms problems.
- Explain the fundamentals of machine learning.
- Explain transformer architecture.
- Explain how LLMs work internally.
- Implement ML-related coding problems.
- Design a machine learning system.
- 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:
- Solve DSA problems.
- Write SQL queries.
- Explain machine learning algorithms in depth.
- Explain NLP fundamentals.
- What are the differences between traditional NLP approaches and modern transformer-based models?
- 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:
- Why Anthropic, and why are you interested in this ML Engineer / Prompt Engineer role?
- What other AI platforms and models do you use?
- What challenges have you faced while working with different models?
- Given a PDF-based workflow with long context windows, how would you improve reliability and performance?
- How would you store memory and chat history?
- How would you prevent timeouts in an LLM application?
- How would you maintain consistent outputs without rewriting the entire code path?
- How would you implement guardrails in an AI system?
- 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:
- Find the missing element in an array.
- Find the longest consecutive sequence in an array.
- Write SQL queries.
- How would you fit a machine learning model?
- Explain the data flow in a machine learning pipeline.
- What is the difference between batch and streaming data processing?
- When would you use LSTM, RNN, or ANN?
- How would you use these architectures in a multimodal system?
- How would you monitor a machine learning pipeline?
- Why would you use MongoDB? What makes it suitable for your use case?
- 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:
- Design a product recommendation system.
- Explain the differences between L1 and L2 regression.
- What is overfitting and underfitting?
- Which machine learning models are most likely to experience overfitting, and why?
- How would you deploy a machine learning model into production?
- How would you design feature pipelines?
- How would you reduce inference latency?
- 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:
- Why is tokenization necessary?
- Could a language model tokenize using only the 26 letters of the alphabet?
- Can KL divergence be incorporated during supervised fine-tuning (SFT)?
- Implement multi-head attention using NumPy.
- Implement top-p (nucleus) sampling using NumPy.
- Explain tokenization strategies.
- Explain different LLM training and alignment approaches.
8. Accenture – AI/ML Engineer
Interview focus: LangChain, RAG, GenAI architecture, and ML fundamentals.
Questions asked:
- Introduce yourself and explain your AI/ML projects.
- What is LangChain?
- Explain different prompting techniques.
- What is RAG, and how does retrieval work?
- Design an architecture for a Generative AI application.
- What is PCA?
- Explain transformer architecture.
- Explain regression.
- Which evaluation metrics would you use for machine learning models?
- How would you evaluate a RAG application using a graph database?
What should you prepare?
Looking across these reported interviews, some recurring topics are:
- Python and ML coding
- Transformer architecture and attention mechanisms
- RAG architecture and retrieval strategies
- LLM fundamentals and decoding strategies
- Embeddings and vector databases
- ML and LLM system design
- Model evaluation and monitoring
- Production deployment, latency, and scalability
- AI safety, guardrails, and prompt injection