Prompting Technique Selection: Quick Reference β Claude Models, Prompting, and Context Engineering (Claude Certified Architect - Professional)
Prompting Technique Selection β Quick Reference This quick reference guide summarizes the key facts, definitions, and rules for selecting appropriate...
Prompting Technique Selection β Quick Reference
This quick reference guide summarizes the key facts, definitions, and rules for selecting appropriate prompting techniques on Anthropic's Claude platform, aligned with Exam Domain 2 of the Claude Certified Architect - Professional exam.
1. Prompting Techniques Overview
Zero-shot prompting: Provide instructions or questions without examples; relies on the model's general knowledge.
Few-shot prompting: Include a few illustrative examples to guide the model's expected output format and style.
Prompted reasoning: Use explicit reasoning steps or chain-of-thought prompts to improve complex task performance.
Native extended thinking: Leverage Claudeβs built-in capabilities for multi-step reasoning without explicit stepwise prompts.
Structured output prompting: Guide the model to produce outputs in a defined format (e.g., JSON, tables) to facilitate downstream processing.
2. Selecting the Right Prompting Technique
Diagnose the failure mode: Identify whether the issue is lack of context, ambiguous instructions, or output format errors.
Fix underspecification: Choose a technique that constrains scope and behavior without over-constraining legitimate variation.
Token cost consideration: Prefer zero-shot or native extended thinking for simple tasks to minimize token usage.
Use few-shot prompting: When the model needs concrete examples to understand task nuances or output formatting.
Apply prompted reasoning: For tasks requiring logical deduction, multi-step problem solving, or explanation generation.
Structured output prompting: When output must be machine-readable or follow strict schemas.
3. Rules of Thumb
Start simple: Use zero-shot prompting first; escalate to few-shot or reasoning prompts if output quality is insufficient.
Avoid needless token cost: Do not add examples or reasoning prompts if the model performs well with simpler prompts.
Balance constraint and flexibility: Revise system prompts to constrain behavior without eliminating valid output diversity.
Consider latency and cost constraints: More complex prompting techniques may increase token usage and latency.
4. Common Scenario-Based Guidance
Inconsistent output format: Use few-shot or structured output prompting to enforce format.
Ambiguous or broad responses: Tighten system prompt scope or add examples to clarify expectations.
Logical errors or incomplete reasoning: Introduce prompted reasoning or leverage native extended thinking features.
High token consumption with marginal benefit: Revert to simpler prompting or optimize example selection.
5. Integration with Claude Platform Features
Use the Claude API/Messages API to implement chosen prompting techniques programmatically.
Leverage prompt caching to reuse stable prompt segments and reduce token costs.
Apply Agent Skills modular packaging to separate stable from dynamic content, optimizing prompt construction.
Summary
Effective prompting technique selection on Claude requires diagnosing the specific failure or requirement, balancing token cost and output quality, and choosing from zero-shot, few-shot, prompted reasoning, native extended thinking, or structured output approaches accordingly. This quick reference aids architects in making informed, scenario-driven decisions aligned with production-grade AI solution constraints.