# When should I use a rule, a model judge or an external service to evaluate AI output?

Exam: AI-300 — Operationalizing Machine Learning and Generative AI Solutions
Knowledge domain: Implement generative AI quality assurance and observability
Updated: 2026-11-25T04:35:42.510222+00:00
HTML: https://learningpathx.com/faq/AI-300/ai300-choose-custom-or-deterministic-evaluator.html

## Also asked as

- How do I choose a Foundry evaluation approach for a domain-specific rule?
- Should I check an AI requirement with a fixed rule, an LLM judge or my own scoring service?

Choose a deterministic rule for an exact contract, a model judge for a semantic or subjective criterion, and an external evaluator when scoring needs external data or infrastructure. Foundry lets you combine standard measures with application-specific checks.

A required field or allowed value can be checked directly. A rule can verify that an escalation code is present, while a judge can assess whether the answer applies the escalation policy correctly. Define the required evidence and expected decisions for each check.

For a Foundry implementation, a prompt-based judge can score a focused criterion. A code-based evaluator runs self-contained Python in a sandbox with no network access. An endpoint-based evaluator calls scoring infrastructure that you control, so check its authentication, reachability and handling of failures. Those three implementations are documented as preview. Microsoft documents separate rubric options with their own support status, including safety and task-level rubrics marked preview.

Give each check a defined output and record execution errors separately. The application release policy determines how to act on each result.

**Microsoft Learn**

* [Custom evaluators](https://learn.microsoft.com/en-us/azure/foundry/concepts/evaluation-evaluators/custom-evaluators)
* [Other custom evaluators (preview)](https://learn.microsoft.com/en-us/azure/foundry/concepts/evaluation-evaluators/other-custom-evaluators)
* [Rubric evaluators](https://learn.microsoft.com/en-us/azure/foundry/concepts/evaluation-evaluators/rubric-evaluators)

Source: [AI-300: Choosing Quality, Safety, and Custom Evaluation Gates](https://learningpathx.com/news/ai-300-choosing-quality-safety-and-custom-evaluation-gates.html)
