AIInterviewTraining logoAIInterview/Training

prompting

AI, ML & GenAI interview questions tagged prompting, across every topic.

14 questions · 1 unlocked for you

Concepts behind "prompting"

The curriculum that explains the ideas these questions test.

Foundational
🧠 Foundations of LLMs & GenAI
Prompt EngineeringPrompting is the cheapest, fastest way to steer an LLM: clear instructions, few-shot examples, explicit output format, and the right context. It is the first technique to try before reaching for RAG or fine-tuning, and in production it means versioned, tested prompt templates with instructions kept separate from untrusted data, not ad-hoc strings. AI, ML, and GenAI engineer interviews probe it because most LLM features ship on prompting alone, and because sloppy prompts are a top source of unreliability and injection risk.
Foundational
🧠 Foundations of LLMs & GenAI
Chain-of-Thought and In-Context LearningIn-context learning is the ability to perform a task from instructions or a few examples in the prompt, with no weight updates. Chain-of-thought prompting has the model reason step by step before answering, which markedly improves multi-step problems (math, logic, multi-hop questions). The catch is that the stated reasoning is not guaranteed to mirror the model's actual computation. AI, ML, and GenAI engineer interviews probe it because it is the cheapest accuracy boost on hard tasks, and because over-trusting the visible reasoning is a real pitfall.
Core
🧠 Foundations of LLMs & GenAISign in
Prompting vs RAG vs Fine-TuningGiven an LLM use case, the senior move is matching the technique to what is missing rather than defaulting to one. Need external or changing knowledge? RAG. Need a specific behavior, format, or skill? Fine-tuning. Need to take actions or use live systems? Tools/agents. Just need better instructions? Prompting. They combine, and you escalate from cheapest (prompting) to most involved (fine-tuning). AI, ML, and GenAI engineer interviews probe it because choosing wrong wastes months, fine-tuning to inject changing facts is the classic mistake.