Claude認定 対策ノート

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

2.4 コンテキストの構成とトークンの経済性

配点 2.4%Context Composition and Token Economics

トークンの予算と呼び出し量に対して、文脈の構成とキャッシュの動きを分析し、必要な情報を失わずに消費を減らせる所を見つける。

未読

文脈は多いほど良いわけではない

図解:文脈は多いほど良いわけではない

トークンが増えると、正確さと再現率は下がります。文脈の設計の目標は、望む結果の可能性を最大にする、最小限の、情報価値の高いトークンの集合を見つけることです。

出典:Context windows
As token count grows, accuracy and recall degrade, a phenomenon known as *context rot*.
https://platform.claude.com/docs/en/build-with-claude/context-windows.…(取得 2026-11-23)
出典:Effective context engineering for AI agents
good context engineering means finding the smallest possible set of high-signal tokens that maximize the likelihood of some desired outcome.
https://www.anthropic.com/research/effective-context-engineering-for-a…(取得 2026-11-23)

キャッシュの費用の構造

図解:キャッシュの費用の構造

キャッシュの読み出しは基本の入力価格の0.1倍で、5分のキャッシュの書き込みは1.25倍です。つまり、同じ入力を繰り返す呼び出しが多いほど、元が取れます。呼び出しの量に対して、書き込みの費用を上回る読み出しの回数があるかが、判断の分かれ目です。

出典:Prompt caching
Cache read tokens are 0.1 times the base input tokens price
https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)
出典:Prompt caching
Cache write tokens with a 5-minute TTL are 1.25 times the base input tokens price.
https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)
出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Analyzing context composition and caching behavior against a token budget and a defined call volume to determine where token consumption can be reduced without loss of task-relevant information.
https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)

効いているかを数字で確かめる

図解:効いているかを数字で確かめる

応答の使用量の項目で、キャッシュの作成と読み出しがどちらも0なら、キャッシュされていません。原因は、最小の長さに届かない、有効期間の5分を過ぎる、呼び出しの間で条件が変わる、などです。事前の数え上げは無料で使えます。

出典:Prompt caching
if both `cache_creation_input_tokens` and `cache_read_input_tokens` are 0, the prompt was not cached (likely because it did not meet the minimum length requirement).
https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)
出典:Prompt caching
Check that calls are made within the cache lifetime (5 minutes by default).
https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)
出典:Prompt caching
Verify that `tool_choice`, image usage, the thinking configuration, and `output_config.effort` remain consistent between calls.
https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)
出典:Token counting
Token counting is **free to use** but subject to requests per minute rate limits based on your
https://platform.claude.com/docs/en/build-with-claude/token-counting.m…(取得 2026-11-23)
試験のポイント