フリー問題

Prometheus Certified Associate のフリー問題 14 / 20 問目

問題文

A code path in the logistics pipeline is called more than a hundred thousand times per second. What does the instrumentation guidance say about adding metrics there?

選択肢

  1. Increase the scrape interval for that target, because the cost of instrumentation is dominated by the scrape rather than by the recording of each call.
  2. Move the metric updates into a background thread, because the guidance recommends decoupling recording from the hot path entirely.
  3. Limit the number of metrics updated in the inner loop and avoid labels or cache the label lookup, and benchmark to determine the actual impact.
  4. Do not instrument such code paths at all, because the overhead of any metric update is prohibitive at that call rate.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。