Pidoku

The Principal-Level Interview

Module 31 Lesson 31.l 1h Difficulty 4/5

Prerequisites 31.a–31.k, 23.k


Before you start: words you need#

WordPlain meaning
Interview loopThe set of interviews (often 5–8) a candidate goes through for one role, each testing something different.
RubricThe written criteria interviewers score against. At principal level, it scores scope and judgement more than knowledge.
ScopeThe size of the problems a person owns: one feature, one system, an organisation’s direction.
Deep diveAn interview that picks one project from your past and digs until it reaches what you decided and why.
JudgementChoosing well with incomplete information: which trade-off, which risk, which thing not to do.
CalibrationComparing a candidate with the bar for the level, not with other candidates that week.
SignalEvidence an interviewer can write down: a specific thing the candidate said or did.

1. What is it?#

The principal-level interview checks whether a candidate can do the job described in 31.a: own the direction of inference for an organisation, make one-way-door decisions well, and raise the people around them. It is not a harder version of the senior interview. A senior candidate who answers every question correctly but never asks about the business, never names a trade-off and never says what they would not do will not pass.

This lesson describes the usual loop, what each interview looks for, how to answer the design and strategy questions, a bank of questions mapped to the lessons that teach their answers, and the napkin drill every candidate should be able to do quickly.

Interview processes vary widely between companies; the shape below is a common pattern, not a standard.


2. Why does it matter?#

  • The role is rare and expensive to get wrong. A principal’s bad call on hardware or architecture costs millions (31.d); a principal who cannot influence leaves a strategy nobody follows.
  • Knowledge is necessary but not distinguishing. Most principal candidates know PagedAttention and disaggregation. What separates them is whether they reach a decision, with numbers, under uncertainty, and explain it so others can act.
  • The same skills run the job. Preparing for this interview is preparing for design reviews, strategy documents and the conversation with finance.

3. Simple analogy#

Hiring a head chef is not a cooking test. Every candidate can cook. The owners want to know whether they can design a menu that makes money, run a kitchen of twenty through a Saturday rush, decide what to take off the menu, choose suppliers, and train the line cooks to cook the way they would. So they ask about menus they designed, kitchens they ran, and what went wrong.


4. Tiny example: the same question, three levels#

“Our inference costs doubled this quarter. What do you do?”

SENIOR     "Profile the main model, check batch sizes, try FP8 and speculative decoding."

STAFF      "First find where the cost went: per model, per tenant, per token kind. Then fix the
            biggest item: if it is prefill on the agent tier, prefix-aware routing; if it is
            utilization, consolidate. Measure before and after."

PRINCIPAL  "Is doubling a problem? If usage doubled and margin held, it is success, and the question
            is the capacity plan. If cost per task doubled, I want the unit chain (31.e): tokens per
            task, model mix, cache hit rate, $/GPU-hour. My guess is reasoning tokens or a prompt
            change, because those move fastest. I'd fix the immediate cause in days, then put in
            place what makes this visible within a day next time: cost anomaly alerts per feature,
            and a cost line in launch reviews."

The principal answer questions the premise, ties it to the business, uses a framework with numbers, makes a guess and says how to check it, and fixes the system that let it happen.


5. Technical explanation#

The usual loop#

InterviewWhat it looks forPrepare with
System design (often two)an end-to-end design with numbers, trade-offs and failure modes23.k, 31.i–31.k
Technical deep divedepth in one area of your choice: kernels, schedulers, distributed servingModules 13–19, 25
Past project deep diveyour scope, your decisions, what went wrong, what you would changeyour own work
Strategy and judgementbuild vs buy, hardware, technique adoption, roadmap31.c, 31.d, 31.h, 21.m
Leadership and influencedisagreement, mentoring, leading without authority31.a, 31.b
Coding or napkin mathsquick, correct reasoning about numbers; sometimes a small programsection 6

What the rubric scores#

DimensionStrong signalWeak signal
Scopeowned outcomes across teams; “the fleet”, “the platform”owned tasks inside one system
Judgementnames trade-offs, picks one, says what would change their mindlists options without choosing
Numbersestimates before designing; checks claims with arithmetic“it depends” without numbers
Depthcan go three levels down on something realstays at slogans
Business sensecost per task, margin, risk, reversibilityperformance for its own sake
Influencechanged other teams’ decisions through writing and evidence“I told them to”
Humilitysays what they got wrong and what they learnedevery project was a success

Answering a design question#

Use the order of a good design doc (31.b), out loud:

  1. Clarify the workload: users, traffic shape, prompt and output lengths, latency, quality, budget, constraints. Write the numbers down.
  2. Napkin maths before boxes: tokens per second, KV memory, GPUs, cost (12.q, section 6).
  3. Options, including buy (31.c). Choose one and say why.
  4. The design: request path, data path, the one or two components that make it work.
  5. Failure modes and overload (31.g).
  6. Rollout, quality gate, observability (23.g, Module 28).
  7. Cost, and what you would revisit when volume or prices change.

Spend the time where the problem is hard. In 31.i that is the KV cache and the cache hit rate; in 31.j it is the latency budget and barge-in; in 31.k it is fairness, isolation and migration.

Answering a past-project deep dive#

Prepare two or three stories, each with:

  • The situation in numbers: fleet size, cost, latency, users.
  • What you decided, what the alternatives were, and why you chose.
  • How you got others to agree: the doc, the benchmark, the meeting.
  • What happened, with numbers, including what went wrong.
  • What you would do differently. Interviewers trust a candidate who has one.

Say “I” for your decisions and “we” for the team’s work. Interviewers listen for the difference.

Questions bank#

Each maps to the lesson that teaches its answer.

QuestionLessons
Design inference for a coding agent used by a million developers.31.i, 24.h
Design a voice agent with sub-second response.31.j, 26.f
Consolidate 120 teams’ model deployments onto one platform.31.k, Module 21
A 70B model, 10,000 concurrent users, fixed GPU budget.23.k
Should we self-host or use an API?31.c, 23.c
Should we sign a 3-year reservation for 2,000 B200s?31.d, 7.l
Our gross margin on the pro plan is negative. Why, and what do you do?31.e
How would you run a performance programme for 5,000 GPUs?31.f, Module 22
Where does our error budget go? What would you fund?31.g, Module 23
A paper claims 3x faster decoding. Do we adopt it?31.h, 24.a
Why is decode memory-bound, and what changes that?2.f, 12.c, 22.c
Explain disaggregated serving and when it does not pay.14.j
How would you detect a silent quality regression in production?28.e, 28.f, 31.g
How do reasoning models change capacity planning?27.a, 31.e

Questions to ask them#

A principal candidate is also evaluating the role. Ask:

  • What is the inference spend, and who owns the number?
  • Which decisions would I own, and which would I advise on?
  • What was the last big inference decision, and how was it made?
  • What would make you say, in a year, that this hire worked?

6. Under the hood: the napkin drill#

Every principal loop includes quick estimates, often inside the design interview. Each of these six should take under a minute, out loud, with the formula stated. The program checks the answers.

Go
// drill.go — six napkin estimates a principal candidate should do in under a minute each.
package main

import "fmt"

func main() {
	// H100 SXM: 3.35 TB/s HBM3, ~989 TFLOP/s dense BF16 (4.b, 7.b).
	const hbmTBs, bf16TF = 3.35, 989.0

	// 1. Single-user decode ceiling: every token reads all weights once.
	weightsGB := 70.0 // 70B at FP8
	fmt.Printf("1. 70B FP8, one user, one H100: ≤ %.0f tok/s (bandwidth ÷ bytes per token)\n",
		hbmTBs*1000/weightsGB)

	// 2. KV per token: layers × KV heads × head dim × 2 (K and V) × bytes.
	kv := 80.0 * 8 * 128 * 2 * 2 // Llama-3-70B, BF16
	fmt.Printf("2. Llama-3-70B KV: %.0f KB per token in BF16 → %.1f GB for a 32k context\n",
		kv/1024, kv*32768/1e9)

	// 3. Prefill time: ~2 × parameters FLOPs per token, at 50% of peak.
	flops := 2 * 70e9 * 100000.0
	fmt.Printf("3. 100k-token prefill, 70B BF16: %.0f s of one H100's compute, %.1f s on eight (50%% MFU, attention ignored)\n",
		flops/(bf16TF*1e12*0.5), flops/(8*bf16TF*1e12*0.5))

	// 4. Little's law: in flight = rate × time in system.
	fmt.Printf("4. 300 req/s × 12 s each = %.0f requests in flight\n", 300.0*12)

	// 5. Raw $/M output tokens from a GPU-hour price and throughput.
	fmt.Printf("5. $2.50/GPU-h at 1,000 output tok/s per GPU: $%.2f per million (before the 23.c waterfall)\n",
		2.50/(1000*3600)*1e6)

	// 6. Fleet size for a token rate.
	fmt.Printf("6. 1M output tok/s at 8,136 per 8-GPU node and 70%% peak busy: %.0f nodes\n",
		1e6/8136/0.7)
}

Output:

1. 70B FP8, one user, one H100: ≤ 48 tok/s (bandwidth ÷ bytes per token)
2. Llama-3-70B KV: 320 KB per token in BF16 → 10.7 GB for a 32k context
3. 100k-token prefill, 70B BF16: 28 s of one H100's compute, 3.5 s on eight (50% MFU, attention ignored)
4. 300 req/s × 12 s each = 3600 requests in flight
5. $2.50/GPU-h at 1,000 output tok/s per GPU: $0.69 per million (before the 23.c waterfall)
6. 1M output tok/s at 8,136 per 8-GPU node and 70% peak busy: 176 nodes

How to read it:

  • State the formula first, then the numbers. An interviewer can follow a correct method with a slipped digit; they cannot follow a number pulled from memory.
  • Round aggressively. 3.35 TB/s ÷ 70 GB ≈ 50 tok/s is the right speed of thought; the program’s 48 is a check, not the expectation.
  • Say what the estimate ignores. Estimate 3 ignores attention, which at 100k tokens adds a large share of the FLOPs (11.f); estimate 5 is before the waterfall that makes it about four times higher (23.c). Naming the omission is a strong signal.
  • These numbers come from 2.f, 12.c, 12.f, 12.q and 23.c. If any felt slow, reread those first.

7. Performance implications#

In the interview, performance answers are judged on whether they connect to outcomes:

  • Name the bottleneck before the fix: memory bandwidth, compute, network, CPU, queueing (22.c).
  • Measure at the SLO: throughput without latency is not an answer (22.g).
  • Size the gain on the fleet, not the kernel (Amdahl, 31.f).

8. Production implications#

Principal answers always include the production half: rollout and rollback (23.g), the quality gate (Module 28), observability (23.h), the failure mode and the degraded mode (31.g), and the cost line (23.c). A design without them is a prototype.


9. Common mistakes#

  1. Designing before clarifying. The first five minutes decide the interview.
  2. No numbers. “It depends” without an estimate is a weak signal at every level, fatal at this one.
  3. Listing options without choosing.
  4. Only building. Never considering buy, wait or stop.
  5. Deep on one component, silent on failure, rollout and cost.
  6. “We” for everything in the past-project deep dive, so the interviewer cannot find your part.
  7. No mistakes in your stories.
  8. Reciting this material instead of reasoning from it. Interviewers change the numbers to check.

10. Hands-on exercise#

  1. Run drill.go, then do all six estimates on paper without it, in under six minutes total.
  2. Change the drill to Rubin (about 22 TB/s, 7.e) and a 400B FP4 model. Redo estimates 1 and 3.
  3. Pick one question from the bank. Answer it out loud in 35 minutes, recording yourself, following the seven steps. Then score yourself against the rubric.
  4. Write your three past-project stories in the five-part format. Have a colleague dig into one until they find a decision you cannot explain.
  5. Answer the section 4 question (“costs doubled”) at principal level, in writing, in one page.

11. Interview questions#

These are about the interview itself; the questions bank in section 5 holds the technical ones.

  1. What distinguishes a principal answer to a design question from a staff one?
  2. How do you show judgement when you do not know the answer?
  3. Tell me about a technical decision you made that turned out wrong. What did you change afterwards?
  4. How have you changed another team’s direction without authority over them?
  5. What would you do in your first 90 days as the principal inference engineer here?
  6. What would you stop doing, and why?

12. Further reading#

Checked on 13 November 2026.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in