Practiced one out loud? Paste your answer into the free self-check and get a score in 30 seconds
What the interviewer is testing
Whether you can distinguish prompt-based learning from weight updates, compare their costs and deployment needs, and choose retrieval for frequently changing facts.
Answer framework
- In-context learning puts instructions and examples into the prompt without changing the model weights.
- In-context learning supports immediate iteration, but each request pays for the extra prompt tokens and behavior remains bounded by the context window.
- Fine-tuning trains on examples and updates model parameters, potentially making formats, tone or narrow-task behavior more consistent.
- Fine-tuning can make a smaller model perform as well as a larger prompted model, but it requires data, training, evaluation and redeployment.
- Use retrieval rather than fine-tuning for facts that change frequently, because retrieval lets the source of truth be updated without retraining.
Sample answer
I would start by separating what changes. With in-context learning, I put the instructions and any examples directly into the prompt. The model parameters do not change, so I can iterate immediately by editing the prompt. The tradeoff is that every request carries and processes the extra prompt tokens, and the behavior I can obtain is constrained by the context window. It is a good fit when the task is quick to prototype, the instructions change often, or I want temporary behavior without a training run.
Fine-tuning is different because I train the model on examples and update model parameters. That can make the desired format, tone or narrow task behavior more consistent and can make a smaller model perform as well as a larger model that only receives examples in its prompt. These benefits require evaluation. Learned behavior can reduce how much instruction I need to supply on every call.
I would also be explicit about the cost. Fine-tuning requires curating data, running training and evaluating whether the result improved. After deployment, a changed model normally means redeployment. I would not use fine-tuning as my default way to teach frequently changing facts; retrieval is better because it lets me update the source of truth without retraining. So I choose based on whether I need durable behavior changes or current information, and whether the per-request prompt cost matters.
Likely follow-ups
Common mistakes
- Treating in-context learning as a training step that changes model weights.
- Claiming prompt examples are permanently learned and no longer consume context tokens on each request.
- Using fine-tuning as the default solution for frequently changing facts.
- Comparing the approaches only on answer quality while ignoring prompt cost, context limits, training data, evaluation and redeployment.
The 0 to 1 AI Engineer Interview Playbook covers the answer frameworks, system-design walkthroughs and an 8-week plan.
Get the playbookSmaller start: Score your answers against 50 rubrics, $9. 50 AI engineer questions, one rubric each, PDF on Gumroad.
Interviewing for PM or TPM? See the full PM package, $59 on Gumroad: a resume system, a PM, TPM and PGM interview handbook, a 1:1 cheat sheet and a PM playbook. PM and TPM content, not AI engineer prep.
Related questions
Based on question #9 in the full question bank.