Claude認定 対策ノート

講座 › 分野2 Claudeモデル、プロンプト作成、コンテキストエンジニアリング

2.3 プロンプト手法の選択

配点 2.4%Prompting Technique Selection

観察された失敗の型に合う手法を選ぶ。例を示さない方法、例を示す方法、プロンプトで促す推論、ネイティブの思考、構造化出力のうち、余計なトークンをかけずに効くものを使う。

未読

失敗の型から手法を選ぶ

図解:失敗の型から手法を選ぶ

選び方の軸は、観察された失敗の型と、タスクの複雑さです。余計なトークン費用をかけずに効く手法を選びます。形式やトーンのばらつきなら例、段階的な推論が足りないなら思考、形式の保証なら構造化出力が候補です。

出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Applying the prompting technique (zero-shot, few-shot, prompted reasoning versus native thinking, structured output) that addresses an observed failure pattern for a task of stated complexity without unnecessary token cost.
https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)

few-shot:例で一貫性を上げる

図解:few-shot:例で一貫性を上げる

よく選んだ少数の例は、正確さと一貫性を上げます。例は3〜5個が、良い結果の目安です。zero-shotで足りる単純な作業に、例を足すと、トークンが増えるだけです。

出典:Prompting best practices
A few well-crafted examples (known as few-shot or multishot prompting) improve accuracy and consistency.
https://platform.claude.com/docs/en/build-with-claude/prompt-engineeri…(取得 2026-11-23)
出典:Prompting best practices
Include 3–5 examples for best results.
https://platform.claude.com/docs/en/build-with-claude/prompt-engineeri…(取得 2026-11-23)

プロンプトの推論とネイティブの思考

図解:プロンプトの推論とネイティブの思考

思考が使えない時は、答える前に考えるよう頼む、プロンプトでの段階的な推論が代わりになります。思考の機能を使える時は、必要に応じて、どの程度考えるかをClaudeが決めます。単純な質問では、思考を省きます。

出典:Prompting best practices
When thinking is off, you can still encourage step-by-step reasoning by asking Claude to think through the problem before it answers.
https://platform.claude.com/docs/en/build-with-claude/prompt-engineeri…(取得 2026-11-23)
出典:Thinking
which lets Claude determine when and how deeply to think based on the request.
https://platform.claude.com/docs/en/build-with-claude/thinking.md(取得 2026-11-23)
出典:Steering thinking
A simple factual question might get a direct response with no thinking block at all; a multistep math problem or a tricky debugging task triggers deeper reasoning.
https://platform.claude.com/docs/en/build-with-claude/thinking-steerin…(取得 2026-11-23)

形式の保証:構造化出力

図解:形式の保証:構造化出力

スキーマに沿った出力を必ず得たいときは、制約つきの生成による、構造化出力を使います。プロンプトで頼むだけでは、保証になりません。

出典:Structured outputs
Structured outputs guarantee schema-compliant responses through constrained decoding:
https://platform.claude.com/docs/en/build-with-claude/structured-outpu…(取得 2026-11-23)
出典:Increase output consistency
If you need Claude to always output valid JSON that conforms to a specific schema, use
https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guard…(取得 2026-11-23)
試験のポイント