Prompt Engineering: Concepts
Questions covered
- What makes a good prompt?
- Zero-shot vs few-shot prompting, and how do you choose examples?
- Explain chain-of-thought prompting and when it helps.
- What is self-consistency?
- How do you get reliable structured (JSON) output?
- What is prompt chaining?
- System prompt vs user prompt — what goes where?
- How do you evaluate and iterate on prompts systematically?
- What is prompt injection and how do you defend against it?
- What are common prompt anti-patterns?
This lesson is part of AI & ML Interview Prep. Unlock the full course to read it, take the quiz and track your progress.