AI Engineering
/
LLM Foundations
/

Select a model under quality, cost, and latency limits

LLM Foundations · 3 to 4 hours

Select a model under quality, cost, and latency limits

Recommend a model or routing policy from measured quality, cost, and latency, say what evidence is still missing, and revise the decision when the traffic mix changes.

Hard
System Design

4 h

Premium

Used in interview rounds:

Technical Screen (Hard)

Overview

Select and defend a model configuration under quality, latency, context, and cost constraints. The goal is a decision with measurable acceptance criteria, stated uncertainty, and a validation plan. GPU serving, retrieval architecture, and rollout have their own topics.

Study time: 3 to 4 hours

Interview format: System design discussion with calculations

By the end you can

  • Turn a product task into mandatory gates and preferences with an explicit success definition
  • Compute weighted quality and token cost per request and per month
  • Explain why a point estimate at a threshold is not a reliable pass
  • Evaluate a routing policy, including router errors and combined latency
  • Revise a decision when the workload mix changes, and record what would reverse it

Prerequisites

Helpful background: Comfort with percentiles, weighted averages, and experimental design helps.

In this guide

  1. Translate a product task into constraints
  2. Compare capabilities on representative work
  3. Context capacity versus effective use
  4. Quality and uncertainty
  5. Latency and token economics
  6. Routing and fallback trade-offs
  7. Selection scenario
  8. Work the scenario at today's traffic mix
  9. Evaluation and decision record

Hard questions are part of Premium: the study guide, reference answer, rubric, and exercises unlock with Premium.

Practice the interview question

Answer it in your own words before you look at the reference answer.