LearnThatStack Ace your next interview
AI Engineering
AI Evals & Observability.
Change topic Change
Practice · Questions

All questions

Showing of 55
Beginner 12
01

What are AI evals, and why are they often called the core discipline of AI engineering?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

AI evals are systematic, repeatable measurements of an AI system's quality. Given a set of inputs, how well does the system produce acceptable outputs according to defined criteria? They matter disproportionately in AI engineering because LLM-based systems fail differently from traditional software.

There is no compiler error for a hallucination or stack trace for a subtly wrong answer. Model behavior also varies with prompt wording, model version, and retrieved context.

Without evals, teams rely on "vibe checks": trying a few inputs by hand and shipping when things look fine. That approach cannot detect regressions, cannot compare two prompts objectively, and collapses as the product grows.

With evals, every change (prompt edit, model swap, retrieval tweak) can be scored against a stable dataset before shipping, so iteration becomes fast and safe.

In practice, the quality of a team's eval suite is one of the strongest predictors of the quality of the product itself. Models are increasingly interchangeable; a well-curated eval set encoding what "good" means for your users is a durable, proprietary asset that competitors cannot copy.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

What are the main types of evals used for LLM applications?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Use several eval types, from cheap code checks to careful human review:

  • Unit-style assertions: deterministic code checks on outputs. Examples include "response is valid JSON," "contains the refund policy link," "under 200 tokens," and "no personal data regex matches."
  • Golden dataset evals: run the system on curated inputs with known reference outputs or labels. Compare via exact match, string similarity, embedding similarity, or a grader.
  • LLM-as-judge: a strong model grades outputs against criteria, either standalone (pointwise) or against a reference.
  • Pairwise or preference evals: a judge or human picks the better of two outputs (A vs B). Comparing is easier and more reliable than assigning absolute scores.
  • Rubric-based evals: scoring against explicit written criteria, one dimension at a time (accuracy, completeness, tone), rather than a single fuzzy "quality" score.
  • Human review: expert annotators label outputs. The gold standard for correctness, used to bootstrap datasets and calibrate automated judges.

Mature systems layer all of these: assertions everywhere, judges on samples, humans on a small calibrated slice.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

What is a golden dataset in the context of AI evals?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

A golden dataset is a curated set of test inputs paired with expected outputs, reference answers, or human-verified scoring criteria. It provides a stable basis for comparing system versions.

Good golden datasets share a few properties. They are representative: drawn largely from real production traffic rather than invented examples, so scores predict real-world behavior. They are diverse: covering common intents, edge cases, adversarial inputs, and known past failures.

They are trusted: every label has been reviewed by someone who understands the domain. A noisy golden set produces noisy scores that teams learn to ignore.

Version every change with a clear reason. This separates real system movement from a score change caused by different test data.

Teams typically start small, around 20 to 100 examples, and grow the set continuously by promoting interesting production failures into it. A small trustworthy set beats a large noisy one.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

Explain the LLM-as-judge pattern. Why is it so widely used?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

LLM-as-judge means using a capable language model to evaluate the outputs of an AI system, in place of (or alongside) human reviewers. The judge receives the input, the system's output, and optionally a reference answer and a rubric. It returns a verdict: pass/fail, a score, or a preference between two candidates.

It offers a practical middle ground. Human review is valuable but slow, while code assertions cannot judge qualities such as faithfulness, helpfulness, or tone. A model judge can score a larger sample at lower cost, though the exact speed and price depend on the chosen model.

The critical caveat: a judge is itself a model with biases (position, verbosity, self-preference) and error rates. It must be validated against human labels before its scores are trusted. An uncalibrated judge is just an opinion generator.

Treat the judge prompt as production code: version it, test it, and re-check its agreement with humans over time.

Judge input: user question + system answer + rubric
Judge output: {"verdict": "fail", "reason": "cites a price not present in context"}
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

What is the difference between offline and online evaluation?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Offline evaluation happens before deployment, against a fixed dataset in a controlled environment. You run the candidate system (new prompt, new model, new retrieval config) over a golden set. Score the outputs with assertions, judges, or humans, and compare against a baseline.

Offline evals are reproducible, cheap to repeat, and safe: no user sees a bad output.

Their weakness is coverage; a fixed dataset never fully matches the live input distribution.

Online evaluation happens in production on real traffic. It includes A/B tests comparing variants on business and quality metrics, plus LLM judges scoring sampled live traces asynchronously. It also covers guardrail metrics, user feedback (thumbs, regenerations), and drift monitoring.

Online signals reflect reality, including inputs you never anticipated, but they are noisy, slower to read, and mistakes have user-facing cost.

The two are complementary and form a loop. Offline evals gate releases, while online evaluation finds gaps in that suite. Label useful production failures and add them to the offline set for future releases.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

Public benchmarks like MMLU and HumanEval show strong model scores. Why can't you rely on them to evaluate your product?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Public benchmarks measure general model capability under standardized conditions; your product needs task-specific evaluation under your conditions. The gap shows up in several ways:

  • Distribution mismatch: MMLU (Massive Multitask Language Understanding) is multiple-choice academic knowledge; HumanEval is small self-contained Python functions; SWE-bench is GitHub issue fixing. None resembles your support bot answering questions about your refund policy with your retrieval pipeline and system prompt.
  • Contamination: benchmark questions leak into training data, inflating scores in ways that say nothing about generalization to your inputs.
  • Saturation: strong models can cluster near a benchmark's ceiling, so small score differences no longer separate them well.
  • System vs model: benchmarks test the raw model; your quality depends on the whole system: prompts, retrieval, tools, guardrails, and how they interact.
  • Metric mismatch: a model can top LMArena on style preference while being worse at your domain's factual accuracy.

Benchmarks are useful for a first shortlist of candidate models. The decision of which model actually ships should come from running your own eval suite against each candidate.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

07

What are traces and spans in LLM observability?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

A trace is the complete, structured record of one request's journey through your AI application. It captures the user input, every intermediate step, and the final output, with timing. A span is a single operation within that trace: one LLM call, one retrieval query, one tool execution, one guardrail check.

Spans nest, so a "handle_question" root span might contain a "retrieve_docs" span and two "llm_call" spans.

Each span carries attributes: model name, prompt and completion (or references to them), input/output token counts, cost, latency, and error status. Spans also carry custom metadata like user tier or feature flag. This structure makes LLM apps debuggable.

When a user reports a bad answer, the trace shows the retrieved documents and final prompt. It also shows what the model returned at each step.

Traces are also the raw material for everything else in the eval stack. Judges score traces, datasets are curated from traces, and cost/latency dashboards aggregate span attributes. Tools like LangSmith, Langfuse, Braintrust, and Arize Phoenix are all built around this trace/span model, increasingly using OpenTelemetry conventions.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

08

What basic operational metrics should you monitor for a production LLM feature?

Part of Pro
09

What are unit-style assertion evals, and what are they good for?

Part of Pro
10

When is human review necessary in an eval process, given that it's slow and expensive?

Part of Pro
11

How do thumbs up/down buttons work as an eval signal, and what are their limitations?

Part of Pro
12

What does it mean to regression test a prompt before shipping a change?

Part of Pro
Intermediate 22
13

Walk me through how you would build a golden dataset from production data.

Part of Pro
14

How do you think about coverage when curating an eval dataset?

Part of Pro
15

Why should eval datasets be versioned, and what does good dataset versioning look like?

Part of Pro
16

Compare pairwise (preference) evaluation with pointwise scoring. When would you use each?

Part of Pro
17

What is rubric-based evaluation, and why does it usually beat asking for a single quality score?

Part of Pro
18

What is position bias in LLM-as-judge setups, and how do you mitigate it?

Part of Pro
19

Explain verbosity bias and self-preference bias in LLM judges, and how to reduce them.

Part of Pro
20

How do you calibrate an LLM judge against human judgment?

Part of Pro
21

How would you A/B test an AI feature, and what is different compared to A/B testing normal product changes?

Part of Pro
22

What does CI for prompts look like in practice?

Part of Pro
23

What do faithfulness and relevance mean as RAG metrics, and how are they measured?

Part of Pro
24

What metrics are used to evaluate AI agents, as opposed to single-shot LLM calls?

Part of Pro
25

Compare the major LLM observability and eval platforms: LangSmith, Langfuse, Braintrust, and Arize Phoenix.

Part of Pro
26

What are the OpenTelemetry GenAI semantic conventions, and why do they matter?

Part of Pro
27

What kinds of drift affect LLM applications, and how do you detect them?

Part of Pro
28

What are guardrail metrics, and what should you track about guardrails in production?

Part of Pro
29

Beyond explicit thumbs ratings, what implicit user signals can feed your evals, and what are their pitfalls?

Part of Pro
30

You can only afford human review on a small fraction of production traffic. How do you choose what to sample?

Part of Pro
31

What do you do about sensitive user data in LLM traces - what should you log, redact, and retain?

Part of Pro
32

You are launching a new AI feature with no production traffic. How do you bootstrap an eval set, and what are the risks of synthetic test data?

Part of Pro
33

How would you red-team an LLM application, and how do adversarial safety evals differ from normal quality evals?

Part of Pro
34

How do you evaluate a multi-turn conversation, where quality depends on the whole session rather than any single response?

Part of Pro
Expert 21
35

Describe an eval-driven development lifecycle for shipping an AI feature.

Part of Pro
36

LLM outputs are non-deterministic. How do you get trustworthy eval results despite that?

Part of Pro
37

Walk me through a rigorous error analysis workflow for an LLM application.

Part of Pro
38

What makes a good LLM-as-judge prompt? Walk me through the key design decisions.

Part of Pro
39

How do you measure whether an LLM judge is actually any good?

Part of Pro
40

How would you run LLM-as-judge evaluation on live production traffic?

Part of Pro
41

A model you depend on is being deprecated and you must migrate to its successor. How do you manage the migration with evals?

Part of Pro
42

How do you evaluate the retrieval component of a RAG system separately from generation, and why bother?

Part of Pro
43

How do you evaluate an agent's trajectory, not just its final answer?

Part of Pro
44

How do you monitor latency and cost for LLM features in a way that actually supports decisions?

Part of Pro
45

Explain the data flywheel concept: turning production usage into continuously improving evals and product quality.

Part of Pro
46

What roles do shadow deployment and canary releases play when shipping AI system changes?

Part of Pro
47

What statistical pitfalls arise when A/B testing LLM features, and how do you handle them?

Part of Pro
48

How do production guardrails differ from evals, and how do the two interact?

Part of Pro
49

Design the eval and observability architecture for a multi-step AI agent product operating at significant scale. What are the key components and tradeoffs?

Part of Pro
50

Explain how LMArena works, and critically assess its methodology and limitations as of 2026.

Part of Pro
51

Providers can change model behavior underneath you, even without an announced release. How do you detect and respond to silent model drift?

Part of Pro
52

How do you keep an LLM judge calibrated over time, not just at creation?

Part of Pro
53

How do you evaluate an AI feature when there is no ground truth, such as open-ended generation or creative assistance?

Part of Pro
54

How do you decide how much to invest in evals, and where each marginal dollar should go?

Part of Pro
55

How do you avoid overfitting to your eval set as you iterate on prompts and models?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for AI Evals & Observability? Send them this set.
Pro · $10/mo

48 of 55 AI Evals & Observability answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git