Few-Shot Prompting
Claude Certified Architect – Foundations (CCAR-F) exam practice questions · 10 flashcards
Question
When are few-shot examples most effective?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Few-Shot Prompting practice questions and answers
- When are few-shot examples most effective?When detailed instructions alone still produce inconsistent formatting or judgment.
- What should few-shot examples focus on?Ambiguous scenarios, showing the reasoning for why one action was chosen over alternatives.
- How many examples are typical?Around 2–4 targeted examples.
- Why show reasoning in examples?It teaches Claude to generalize judgment to new cases, not just copy patterns.
- How do examples reduce false positives?Showing acceptable patterns vs genuine issues clarifies the boundary.
- How do examples help extraction?They show handling of varied document structures, like inline citations vs bibliographies.
- Why make examples cover different cases?So Claude doesn't overfit to one example's specifics.
- Example use: tool selection in ambiguous requests?Show a few ambiguous requests and which tool was chosen and why.
- Few-shot vs programmatic enforcement?Few-shot improves consistency; it doesn't guarantee behavior.
- Example use: handling missing data?Show the field set to null when information is absent, preventing fabrication.