PrepGenAICerts

Evaluation Metrics: Accuracy, Latency, Cost, Safety, Security

Core

Define evaluation metrics across accuracy, latency, cost, safety, and security · Difficulty 2/5

0%
evaluationmetricssuccess-criteriaaccuracysafety

Explanation

You can't improve what you don't measure. Before building an eval, define success criteria across every dimension the business cares about -- not just whether the output is correct.

The Five Metric Categories

MetricWhat it captures
Accuracy / qualityCorrectness against a reference or rubric (exact match, semantic match, or graded score)
LatencyTime-to-first-token and end-to-end response time vs. SLA
CostTokens and dollars per request / per task
SafetyRate of harmful, policy-violating, or unsafe outputs
SecurityResistance to prompt injection / jailbreak, data-leakage rate

Writing Good Success Criteria

Good criteria are specific, measurable, and tied to the use case:

  • "95% of extracted fields match the reference on the held-out set" -- specific and measurable
  • "The model should be accurate" -- not a usable success criterion

Metrics should reflect the Business Value Pillars established during solution design, not be chosen in isolation from what the business actually needs the system to do.

Common exam traps

  • Measuring only accuracy. A production eval also tracks latency, cost, safety, and security -- a design that's accurate but too slow, too expensive, or unsafe still fails its requirement. The exam will present a scenario where accuracy looks fine but the system fails on one of the other four dimensions; the correct diagnosis is that the eval was incomplete, not that accuracy measurement failed.

Key Takeaways

  • A production eval measures five dimensions: accuracy, latency, cost, safety, and security
  • Good success criteria are specific, measurable, and tied to the use case
  • Eval metrics must trace back to the business value pillars defined during solution design
  • An accurate-but-slow, -expensive, or -unsafe design still fails its requirement
  • Define success criteria before building the eval, not after

Glossary Terms

Related Concepts

PrepGenAICerts.com is an independent third-party exam-prep platform for the Claude Certified Architect (CCA-F) certification. We are not affiliated with, endorsed by, or acting on behalf of Anthropic PBC.

Note: New premium upgrades are temporarily paused while we resolve an issue with our payment provider. Existing premium members retain full access.