AI Interviews · Question

GenAI depth round: fine-tuning, and how you would estimate the ROI of a GenAI project, alongside the standard SDE bar.

Domain deep dive question reported at Amazon / AWS (2026). Sources, confidence and an answer card.

Researched · updated

eng-085 AI Engineer Fine-tuning vs RAG vs prompting Domain deep dive Senior Low confidence
On this page

What they’re really asking

If you only remember one thing, say this in the first minute: “Fine-tuning means training a model further on our own examples. I’d use it for behaviour, like a format or a label set, and only after better prompts and document lookup fail on a test set. For ROI I write one formula: volume times the measured success rate times the value of a success, minus the model cost, minus the cost of wrong answers, minus upkeep. Then I divide the one-time cost by that to get payback. The success rate comes from a pilot, not a guess, and the model bill is usually the smallest term.”

The rest of this page explains each part of that answer, so you can say it with understanding.

The round has two halves: go deep on fine-tuning, then put a dollar figure on a generative-AI (GenAI) project without inventing it. The second half is the one that separates candidates.

Here is what makes AI ROI (return on investment) different from the ROI of a normal backend project. A normal service either works or has a bug. A large language model (LLM), a program that reads and writes text, is right some share of the time and wrong the rest. So two numbers you’d normally ignore become the biggest terms in the formula:

  • The success rate. If the bot resolves 25% of tickets, you save a quarter of the cost, not all of it. Guess 60% instead of a measured 25% and your ROI is off by more than double.
  • The cost of being wrong. A wrong answer that promises a refund the policy doesn’t allow can wipe out what several successes save. In the example below, one harmful answer costs about as much as eight good ones save.

The model bill, which people focus on, is usually small next to these.

The question comes from a playbook that lists an Amazon GenAI L6 loop whose depth round covers “LLM/ViT architectures, fine-tuning, ROI estimation”; it names no specific candidate, so treat it as a low-confidence report dev.tosecondary · Jul 2026.

Clarify first

  • “What does the project replace or enable?” Human work (answering tickets, drafting), revenue (more sales), or reduced risk?
  • “What volume?” Tickets, documents or requests a month.
  • “What is one success worth, and what does a failure cost?” A wrong refund promise costs more than one answered ticket saves.
  • “Is there a pilot or test set?” The success rate must be measured.
  • “Over what horizon?” Payback in months, or value per year?

Answer

Fine-tuning, in two minutes

Fine-tuning is training a model further on your own examples so its internal numbers (its weights) change. Three variants are worth naming:

  • Supervised fine-tuning (SFT). Train on pairs of an input and the ideal output. The model is scored only on the output part, so it learns to answer, not to repeat your instructions.
  • Preference tuning. Train on pairs of answers where one is marked better. RLHF (reinforcement learning from human feedback) and DPO (direct preference optimization) are the two common forms.
  • LoRA (low-rank adaptation). Freeze the original model and train a small add-on: for each adapted weight matrix, two thin matrices B and A whose product B·A is added to it. For Llama-3.1-8B, an open 8-billion-parameter model, a rank-16 LoRA on the attention matrices is about 13.6 million parameters, about 27.3 MB. QLoRA does the same on top of a base model stored in compressed 4-bit numbers, so it fits on fewer GPUs.

The rule: fine-tune behaviour, not facts, and only after better prompts and retrieval (looking up documents at request time) fail on an eval. An eval is a set of real inputs with the right answers, run against the model to get a score: the AI version of a test suite.

ROI, with one example running through it

Take a support team that wants an AI assistant to answer tickets before a human sees them. When the assistant fully resolves a ticket, the team saves the cost of a human handling it. All the inputs below are assumptions you would state out loud.

InputValue (assumed)What to say in the interview
Volume V10,000 tickets a month”Volume sets the scale; everything else is per ticket.”
Success rate s25% fully resolved”This must come from a two-week pilot, not a hope.”
Value of a success u$6 (cost of a human-handled ticket)“Ask finance for the real number.”
Model cost per ticket c_run$0.03”Usually the smallest term.”
Harmful-answer rate f1%“Measure this separately from the success rate.”
Cost of a harmful answer c_fail$50”A wrong refund promise, a refund, an angry customer.”
Monthly upkeep c_fixed$2,430 (15% of an engineer)“Someone owns the eval, the prompts and the alerts.”

Walk through it as a running total:

  1. Successes save 10,000 × 25% × $6 = $15,000 a month.
  2. The model costs $300.
  3. Harmful answers cost $5,000. Notice this one term is a third of the value.
  4. Upkeep costs $2,430.
  5. Net: about $7,270 a month. With a one-time cost of $20,000 (assumed), payback is about 2.8 months.

Then say what moves it. The success rate dominates, so measure it. The failure term can wipe out the value, so measure harmful errors on their own. Model cost is usually the smallest line.

Say it like this: “The model bill is $300 here. The number that decides this project is the 25%, so I’d run a pilot before I’d promise anything.”

The arithmetic behind the numbers (for a Staff-level follow-up)
Monthly net value of a GenAI feature
net = V × s × u − V × c_run − V × f × c_fail − c_fixed;   payback = one-time cost ÷ net
V
monthly volume (tickets, documents, requests)
s
measured success rate from a pilot or eval
u
value of one success (for example the cost of a human-handled ticket)
c_run
model and infrastructure cost per item
f, c_fail
rate and cost of a harmful wrong answer
c_fixed
monthly upkeep: evals, monitoring, part of an engineer
Worked example

All assumed: V = 10,000 tickets, s = 0.25, u = $6, c_run = $0.03, f = 0.01, c_fail = $50, c_fixed = $2,430 (15% of an engineer at a loaded $194K/year). Net = 15,000 − 300 − 5,000 − 2,430 = $7,270 per month. One-time $20,000 → payback 2.8 months.

The $194K loaded cost is the BLS median software developer wage ($135,980) ÷ an assumed 0.70.

When the project depends on a fine-tune

The same thinking applies to a fine-tune. The family walkthrough prices one: a fine-tuned 8B model that replaces a frontier model (the largest, most expensive kind) in a ticket classifier. It pays back in about 4.5 months against the frontier model, and never against a cheaper API model that also passes the eval. The reason is the same as above: the training run costs $4, while serving on a dedicated H100 GPU costs about $4,010 a month (at a $5.49 per hour list price, fetched 2026-10-12) and upkeep about $2,430 a month.

Say it like this: “I’d compare the fine-tune with the cheapest model that passes, and I’d count the GPU and the people, not the training run.”

Senior vs Staff

Fine-tuning and ROI

Senior

  • Explains SFT, LoRA and preference tuning correctly and builds an ROI formula with labelled assumptions.

Staff

  • Makes the success and failure rates measured inputs, prices against the cheapest passing alternative, and defines the kill criterion if the pilot misses.

In plain words: a Senior answer has a correct formula with honest labels. A Staff answer also says which inputs must be measured, what it is compared against, and at what pilot result the project stops.

Small-team version

You will be asked “is this AI project worth it?” by the CEO, not by an interviewer. Answer it like this:

  1. Run a two-week pilot that produces the success rate s and the harmful-answer rate f.
  2. Use list prices for the model cost.
  3. Count your own time in upkeep. At 15% of an engineer, that is about $2,430 a month, often more than the model.
  4. Write the payback with the assumptions next to it, and a kill criterion: “if the pilot shows under X% resolved, we stop”.

If the number depends on a fine-tune, show the version without one first. It is usually close enough to ship sooner.

Pitfalls

  • Assuming the success rate. It is the biggest lever; guess it and the whole answer is a guess.
  • Leaving out the cost of wrong answers. In the example it is a third of the value.
  • Counting model spend but not people and serving. The model is usually the smallest line.
  • Comparing a fine-tune only with the expensive model you started with. Compare with the cheapest model that passes.

Go deeper

Family