Prompt Engineering interview questions
100 Machine Learning practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise Prompt Engineering questionsBeginner
- Anatomy of a good prompt
- Asking the model to think before answering
- Assigning a role or persona
- Assistant gives generic advice instead of personalized answers
- Assistant gives risky medical advice
- Assistant replies in the wrong language
- Being clear and specific in prompts
- Brainstorming outputs are repetitive
- Common prompting mistakes
- Explaining technical topics to beginners
- Getting better code from an LLM
- Getting output as a clean table
- Handling ambiguous requests
- Improving a vague email-writing prompt
- Iterative prompt development
- Model copies examples too closely
- Model guesses missing information
- Model invents links and references
- Model mislabels support tickets
- Prompt length trade-offs
- Prompt templates
- Prompt works for your examples but fails for users
- Prompting for good summaries
- Providing context in prompts
- Saying what to do instead of what not to do
- Specifying the output format
- Structuring prompts with delimiters
- Summaries are too long for executives
- Support replies sound robotic
- System prompt grew into a confusing mess
- Using examples in prompts
- What is prompt engineering
- Writing effective system prompts
- Wrong answers on multi-step questions
Intermediate
- Adapting prompts for Indian users
- Assistant asks too many questions
- Choosing between two prompt versions
- Choosing temperature for different tasks
- Controlling tone and length
- Extracting nested data from complex documents
- Fixed examples don't cover diverse inputs
- Grading essays consistently with an LLM
- Improving SQL generation prompts
- Inconsistent field values across a batch
- Keeping a consistent assistant personality
- Managing prompts in production
- One giant prompt doing too much
- Prompt breaks after switching models
- Prompt chaining
- Prompt injection explained
- Prompting for classification and extraction
- Prompting for grounded answers
- Prompting reasoning models vs standard models
- Prompting with images and documents
- Prompting with long documents
- RAG answers ignore retrieved documents
- ReAct prompting
- Reading charts from images
- Reducing output tokens to cut costs
- Self-consistency
- Template variables causing broken prompts
- Testing and evaluating prompts
- Users manipulating a summarization tool
- Users see too much reasoning text
- Using counter-examples in prompts
- Using LLMs to write and improve prompts
- Validating and recovering from bad outputs
Experienced
- A/B testing prompts in production
- Agent loses track during long tasks
- Automatic prompt optimization
- Automating prompt optimization for a pipeline
- Building a fact-checking step into generation
- Context engineering
- Defending against indirect prompt injection
- Designing prompts for a multi-agent system
- Designing prompts for cost efficiency
- Designing prompts for LLM judges
- Dynamic few-shot example selection
- Email assistant tricked by malicious emails
- Extracting obligations from long contracts
- Generating test cases for prompt evaluation
- Handling users in distress
- LLM judge favors longer answers
- Making prompts portable across models
- Model offers discounts it shouldn't
- Personalizing responses with user memory
- Prompt sensitivity and robustness
- Prompt standards across an organization
- Prompting for agents and tool use
- Prompting for synthetic data generation
- Prompting in multi-turn conversations
- Redesigning prompts for a high-volume feature
- Reducing hallucinations through prompting
- Self-critique and reflection prompting
- Setting up an evaluation-driven prompt workflow
- Structured prompts for complex business analysis
- Tree-of-thought and search-based prompting
- Understanding jailbreak techniques
- Users jailbreaking a customer-facing bot
- Using LLMs for consistent loan memo drafting