Skip to content
RED SAGSkills
easyPrompt Engineer interview question

When would you use zero-shot prompting and when would you add few-shot examples?

What the interviewer wants to hear

  • Zero-shot for simple, well-known tasks
  • Few-shot to teach a specific format, style or label rules
  • Examples should be diverse and balanced
  • Examples cost tokens; measure benefit

Model answer

I start zero-shot, with clear instructions only, because modern models handle many common tasks well that way, and it keeps prompts short and cheap. I add few-shot examples when the output must follow a specific pattern that is hard to describe in words, like our brand voice, a particular summary layout, or how to label borderline support tickets. Examples show rather than tell. I choose examples carefully: they should cover different types of input, include all labels in a balanced way, and include a tricky case or two. Otherwise the model may copy accidental patterns, such as always choosing the label from the last example. Since each example adds tokens to every request, I check on the eval set that the examples actually improve results enough to justify the cost.

Can you answer it under time pressure?

Take a timed easy round and get scored on every answer.

Start mock interview

More easy Prompt Engineer questions