FjellSystem Design Lab
Chapter 12 checkpoint

Chapter 12 checkpoint: Mint.com

Every question from this chapter’s lessons. Your first answer to each is the one that counts; afterward you can practice again as often as you like. Passing needs 75% right on the first attempt.

0 of 16 answered0 right on the first attempt
Question 1 of 16
Mint ingests 5 billion transactions a month. Using 400 requests per second ≈ 1 billion a month, how many transactions per second is that on average?
transactions/s

Answers within 5% count.

Question 2 of 16
Each transaction takes about 50 bytes, and 5 billion arrive each month. How much new transaction data is that per month, in GB?

Answers within 5% count, in any unit you choose.

Question 3 of 16
Unlike most systems in this course, Mint has a 10:1 write-to-read ratio. Why?

Question 4 of 16
How should transaction amounts be stored?

Question 5 of 16
Extraction is at-least-once, so the same transaction can arrive several times. What should the unique constraint be on?

Question 6 of 16
A hotel stay first appears as a pending charge of 320.00 USD and later posts as 345.82 USD. The user’s spending now counts both. What went wrong?

Question 7 of 16
The Budget Service must hear about each new transaction. How does the extraction service avoid a dual write?

Question 8 of 16
A posted transaction arrives from the bank. Put the steps of its ingestion in order.
  1. Begin a database transaction
  2. Commit
  3. Insert the posted row, doing nothing if it already exists
  4. Write an outbox event only if the row was inserted

Question 9 of 16
In envelope encryption, what do the data key and the root key each do?

Question 10 of 16
Why must an aggregator encrypt the credentials it uses to reach banks, rather than hash them?

Question 11 of 16
What does NIST SP 800-38D require of the IV used with AES-GCM?

Question 12 of 16
An audit log chains each entry’s hash to the previous one. An insider edits an old entry and recomputes every later hash, so the chain checks out. What would have exposed the edit?

Question 13 of 16
A seller-to-category map holds 50,000 sellers at about 240 bytes each. How much memory does it take, in MB?

Answers within 5% count, in any unit you choose.

Question 14 of 16
The budget template gives food 20% of income. For a user earning 5,000 USD a month, what food budget does it recommend, in USD?
USD

Answers within 1% count.

Question 15 of 16
A transaction’s seller is not in the seed map, but many users have overridden that seller’s category. What does the primer’s Category Service do?

Question 16 of 16
You want monthly spending to update as transactions arrive rather than in a batch. What does the lesson suggest?