演習 › 全問
問題 Q5-16
73 / 106分野5・コストとトークンの管理
まだ解いていません。
長い文書を送る前に、モデルのコンテキストと流量の上限に収まるか、費用はいくらかを見積もりたい。最も適した方法はどれか。
正解は A
- A正解です。トークンの数え上げを使うと、送る前にトークン数を数え、上限や費用の管理に使えます。
- B無駄な費用と待ち時間がかかります。
- C入力の量の見積もりにはなりません。
- D1トークンの文字数はモデルと言語で変わるので、正確ではありません。
考え方:送る前に数える。
出典:Token counting
Count the tokens in a message before you send it to Claude. Use token counts to manage rate limits and costs, make model routing decisionshttps://platform.claude.com/docs/en/build-with-claude/token-counting.m…(取得 2026-11-17)