LLM Fundamentals interview questions
100 Machine Learning practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise LLM Fundamentals questionsBeginner
- Assistant goes off-topic
- Avoiding dependence on one LLM provider
- Chatbot inventing company policies
- Choosing an LLM for a new feature
- Common limitations of LLMs
- Demo works but production doesn't
- Document too long for the model
- Embedding models vs generative models
- Estimating the monthly cost of an LLM feature
- Getting structured output from LLMs
- Hitting API rate limits
- How LLM costs work
- How LLMs are trained: the main stages
- How LLMs generate text
- Inconsistent outputs for the same input
- Knowing if a prompt change made things better
- Knowledge cutoff
- LLM latency: time to first token and throughput
- LLM makes calculation errors
- LLM output breaks your JSON parser
- Multimodal LLMs
- Open-weight vs closed models
- Sending customer data to an LLM API
- Supporting users in multiple languages
- System, user and assistant messages
- Temperature, top-p and top-k
- Tokens and context windows
- User tricks the bot into ignoring instructions
- Users asking about recent events
- Users complain the assistant feels slow
- What are hallucinations
- What is a large language model
- What model parameters and size mean
- Zero-shot and few-shot learning
Intermediate
- Basic guardrails in LLM applications
- Chain-of-thought prompting
- Continuous batching
- Deciding whether to self-host an open model
- Decoder-only transformers
- Developers want to use LLMs on sensitive code
- Function calling and tool use
- Grouped-query attention
- How tokenizers affect LLM behavior
- LLM bill growing too fast
- LLM provider outage takes down your product
- LLM serving engines
- Long context and "lost in the middle"
- Long conversations getting expensive and slow
- Many teams using LLMs inconsistently
- Model calls the wrong tool or wrong arguments
- Model misses information in long prompts
- Model refuses legitimate requests
- Model routing and cascades
- Processing millions of documents with an LLM
- Prompt caching
- Quantization for LLM inference
- Quantized model gives worse answers
- Reasoning models and test-time compute
- Responses are too long and verbose
- Restructuring prompts to benefit from caching
- Running LLMs locally
- Scaling quality checks with an LLM judge
- Serving an open model for many users
- Speculative decoding
- The KV cache
- When to use a reasoning model
- Why in-context learning works
Experienced
- Auditing LLM decisions in a regulated business
- Benchmark contamination
- Building a model strategy for a company
- Building a trustworthy internal benchmark
- Capacity planning for LLM serving
- Comparing two models fairly
- Constrained decoding
- Debugging bad answers in production
- Distilling large models into small LLMs
- Emergent abilities debate
- Estimating GPU memory for an LLM
- Extending context length
- Hardware for LLM inference
- Limited GPU budget for growing demand
- LLM features in a multi-tenant SaaS product
- LLM for a high-stakes domain
- Long context or retrieval for a knowledge assistant
- Managing memory in LLM applications
- Managing prompts across a growing team
- Mechanistic interpretability
- Migrating to a new model version
- Model merging
- Multi-token prediction
- PagedAttention
- Prefill vs decode phases
- Preventing data leakage across users
- Prompting, RAG or fine-tuning?
- Reducing latency of a self-hosted LLM
- Role of data quality in LLM pretraining
- Running an LLM on mobile devices
- Scaling an LLM feature to millions of users
- Throughput vs latency trade-offs in serving
- Why LLMs hallucinate from a training perspective