講座 › 分野4 評価、テスト、最適化
4.6 コストとレイテンシの最適化
配点 2.5%Cost and Latency Optimization
キャッシュのヒット率を含む費用と遅延の計測から、集中している箇所を見つけ、品質の下限を割らずに減らす手を選ぶ。
未読
まず、どこに集中しているかを見る 読了

利用量と費用の集計で、モデル、ワークスペース、キャッシュされていない入力などの単位に分けて、費用が集中している箇所を見つけます。集計は、総トークンのほか、出力トークン、キャッシュされていない入力、リクエスト数、時間で並べ替えられます。
出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Analyzing cost and latency telemetry, including cache hit rates, to determine where spend or latency is concentrated, and specifying the optimization that reduces it without violating the stated quality floor.https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)
出典:Usage and Cost Analytics API
`order_by` accepts `total_tokens` (the default), `output_tokens`, `uncached_input_tokens`, `requests`, or `time`.https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics…(取得 2026-11-23)
集中している箇所に合う手段 読了

長い指示や資料を繰り返し使う会話は、キャッシュで費用と遅延を下げます。急がない大量処理は、バッチで50パーセント安くなります。遅延は、速いモデル、プロンプトと出力のトークンの削減、ストリーミングで下げます。
出典:Prompt caching
Conversational agents: Reduce cost and latency for extended conversations, especially those with long instructions or uploaded documents.https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)
出典:Batch processing
The Message Batches API offers a 50 percent discount on all usage compared to standard API prices.https://platform.claude.com/docs/en/build-with-claude/batch-processing…(取得 2026-11-23)
出典:Reducing latency
Reduce Claude's response latency by choosing a faster model such as Claude Haiku 5.5, trimming prompt and output tokens, and streaming responses.https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guard…(取得 2026-11-23)
品質の下限と、上限の設定 読了

どの手段も、品質の下限を割らないことが条件で、変更の前後に評価で確かめます。暴走に備えて、Managed Agentsのセッションには、予算の上限を設定できます。
出典:Session budgets
A session budget is an optional hard spend ceiling you set when youhttps://platform.claude.com/docs/en/managed-agents/budgets.md(取得 2026-11-23)
出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Analyzing cost and latency telemetry, including cache hit rates, to determine where spend or latency is concentrated, and specifying the optimization that reduces it without violating the stated quality floor.https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)
試験のポイント
- 費用と遅延の集中箇所を、集計で特定してから手を打つ。
出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Analyzing cost and latency telemetry, including cache hit rates, to determine where spend or latency is concentrated, and specifying the optimization that reduces it without violating the stated quality floor.
https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23) - 繰り返す入力はキャッシュ、急がない処理はバッチ、遅延は短縮とストリーミング。
出典:Batch processing
The Message Batches API offers a 50 percent discount on all usage compared to standard API prices.
https://platform.claude.com/docs/en/build-with-claude/batch-processing…(取得 2026-11-23) - 品質の下限を、評価で確かめる。
出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Analyzing cost and latency telemetry, including cache hit rates, to determine where spend or latency is concentrated, and specifying the optimization that reduces it without violating the stated quality floor.
https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)