Skip to content

Quiz: Keeping Costs Under Control

Test your understanding of usage-based pricing, cost per scan, the single price table, daily caps, spend alerts, spend circuit breakers and agent budgets with these review questions.


1. What is a spend circuit breaker?

  1. Code that keeps a running total of money spent and stops every paid call when the total reaches a limit
  2. A message sent to a person when spending crosses a set amount
  3. A limit on how many scans one member can run in a day
  4. A vendor dashboard setting that emails you a monthly bill
Show Answer

The correct answer is A. A spend breaker counts money, not actions, and stops paid calls until a person resets it or the period ends. It fails closed on purpose. Option B is a spend alert, which tells a person but stops nothing. Option C is a daily cap. The dating-safety app had a daily scan cap and vendor-credit alerts, but no spend-based breaker.

Concept Tested: Spend Circuit Breaker

See: The Spend Circuit Breaker


2. What is a single price table?

  1. A vendor's public page listing its prices
  2. A monthly invoice from each vendor
  3. One file or table that holds the price of every paid service and model the app uses, with the date each was checked
  4. A chart on the cost dashboard
Show Answer

The correct answer is C. The single price table is the single source of truth for costs. Every piece of code that logs a cost, shows a dashboard or enforces a limit reads prices from it. The checked date matters, since a price nobody has looked at in six months is a guess. A vendor's page (A) is where the numbers come from, not where your code reads them.

Concept Tested: Single Price Table

See: The Same Price in Ten Places


3. In the dating-safety app, model prices were copied into ten files. What goes wrong when a price changes?

  1. The vendor refuses calls until all ten files match
  2. The app crashes at start-up
  3. Nothing, since the vendor bills from its own price list anyway
  4. Someone updates the file in front of them, and the other copies keep the old price, so cost logs, dashboards and limits disagree
Show Answer

The correct answer is D. The vendor bills the new price, but some of your code still uses the old one. The dashboard says one thing, the cost log another, and a spend limit built on a stale copy lets more money through than you meant. Nothing crashes (B) and the vendor doesn't check your files (A). Option C is half right about the bill but misses that your own guards now give wrong answers.

Concept Tested: Single Source of Truth

See: The Same Price in Ten Places


  1. Caps reset at midnight, before the price change shows
  2. The cap counts scans, so the same number of scans now costs much more and the cap never fires
  3. Caps only apply to free-tier members
  4. The vendor ignores your cap
Show Answer

The correct answer is B. A daily cap counts actions and trusts that each action costs what it used to. When the price quadruples, members run the same number of scans and the bill climbs with no limit reached. A spend alert or a spend breaker counts dollars, so it catches the rise once the price table has the new price. If the table is stale too, only the vendor's own billing alert sees it. The cap's reset time (A) and member tier (C) aren't the issue.

Concept Tested: Daily Cap

See: The Daily Cap


5. Why do failed vendor calls still matter for cost?

  1. Some vendors bill for a search that found nothing, or for a request that timed out on your side but finished on theirs
  2. Failed calls are always free, so they never matter
  3. Failed calls cost double by law
  4. Failed calls are billed only on the free tier
Show Answer

The correct answer is A. A timeout on your side doesn't stop the vendor's servers from finishing the work and billing you for it. When retries kick in, one failing check is billed once for every try. That's how a retry storm turns a vendor's bad night into a large bill while the app looks normal. Option B is the assumption that leads to surprises. Options C and D aren't true.

Concept Tested: Per-Call Cost

See: How a Pay-as-You-Go Bill Adds Up


6. When a member hits the daily scan cap, where should the app refuse the scan?

  1. After the checks run, by hiding the results
  2. After the cheap checks run, before the expensive ones
  3. Before any paid call starts, with a clear message to the member
  4. In the browser, by graying out the button
Show Answer

The correct answer is C. The refusal is only useful if it saves money, so it has to happen before the first paid call. Running the checks and hiding results (A) pays for work nobody sees. Running some checks (B) still spends money and may produce a partial score. A check only in the browser (D) can be skipped, since anyone can send requests to the server directly.

Concept Tested: Daily Cap

See: The Daily Cap


7. A normal day costs about $100. Where should you set the first spend alert?

  1. $20, so you hear about every day's spending
  2. Around $150, a line that means something unusual happened
  3. $10,000, so it only fires in a disaster
  4. No threshold, since spend alerts cause alert fatigue
Show Answer

The correct answer is B. Set thresholds from what a normal day costs. At $150, an alert means something is off and is worth reading. At $20 (A), it fires every day, gets ignored, and becomes alert fatigue. At $10,000 (C), the damage is done before you hear. Alongside totals, alert on cost per scan, since a total can rise just because the app is popular.

Concept Tested: Spend Alert

See: Spend Alerts


8. You are about to ask an agent to fix a tangle of failing tests overnight. What should you set first?

  1. Nothing, since agents stop on their own when stuck
  2. A faster model so it finishes sooner
  3. A larger context window so it can read more files
  4. A budget limit on money, tokens, steps or time, plus a monthly cap on the AI vendor account
Show Answer

The correct answer is D. Runaway agent cost happens when an agent loops on a failing test or rereads large files on every step, and nothing tells it to stop. A budget limit set before it starts puts a ceiling on that. A monthly cap on the vendor account and a separate key per project limit the damage further. Agents don't reliably stop on their own (A), and a bigger window (C) makes each step cost more.

Concept Tested: Budget Limit for Agents

See: When the Agent Is the One Spending


9. One scan costs $0.25, and the people search is $0.15 of it. What does that tell you about where to look for savings?

  1. One check is 60 percent of the bill, so its price and how often it runs matter more than all the others together
  2. All eight checks cost about the same, so cut one at random
  3. The AI model checks are the main cost
  4. Costs don't depend on what members upload
Show Answer

The correct answer is A. Writing down the cost per user action shows where the money goes. Here one check is 60 percent of each scan, so a cheaper vendor, a cache or running it only when needed would save more than trimming the other seven. Option B ignores the numbers. Option C is wrong for these made-up prices. Option D is wrong because six photos instead of three raise the photo checks' cost.

Concept Tested: Cost per User Action

See: A Worked Example: Adding Up a Scan


10. The people-search vendor bills each request and then times out, so every scan retries it up to ten times all night. Which guard stops the damage at a number you chose ahead of time?

  1. The daily scan cap, since scans stop at 1,000
  2. A spend alert at $150, since it emails you
  3. A spend circuit breaker, since it counts dollars and stops paid calls at the limit without waiting for a person
  4. The vendor's free tier, since it runs out
Show Answer

The correct answer is C. In the retry storm, each scan costs several times what it should, so the scan count stays normal and the cap (A) never fires. A spend alert (B) depends on someone reading it at three in the morning. Only the breaker acts on its own, at a dollar amount set ahead of time. It fails closed, and the checks it stops show "not checked," so members still get a truthful answer.

Concept Tested: Spend Circuit Breaker

See: A Worked Example: The Retry Storm