Method checkpoint

Method checkpoint

Every question from this chapter’s lessons, grouped by the lesson that teaches it. Answer each one right to finish; you can try again whenever you like.

0 of 16 answered right

Method 1 Step 1: Use cases, constraints and estimates

0 of 4 answered right
Open the lesson
Question 1
A service expects 1 billion reads a month. Taking a month as 2.5 million seconds, how many reads a second is that on average?
RPS

Answers within 2% count.

Question 2
Each paste is about 1.27 KB and there are 10 million new pastes a month. How much new paste content is that per month?

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

Question 3
You are asked to “design a photo-sharing service”. What should you do first?

Question 4
Your estimate gives 40 reads a second on average, and you have assumed traffic is not evenly distributed. What does the primer’s Pastebin solution say about the peak?

Method 2 Step 2: A high level design

0 of 4 answered right
Open the lesson
Question 5
You trace each use case through your sketch, and “view a paste” has no path to where the paste text is kept. What does that tell you?

Question 6
Put the primer’s four steps in order.
  1. 1
    Scale the design
  2. 2
    Create a high level design
  3. 3
    Design core components
  4. 4
    Outline use cases, constraints, and assumptions

Question 7
Why does the primer’s first Pastebin design have no cache and no read replicas?

Question 8
Match each part of the first Pastebin design to the reason for it.

Method 3 Step 3: Core components

0 of 4 answered right
Open the lesson
Question 9
Pastebin expects 360 million links over three years. Are 7 Base62 characters enough?

Question 10
Why does the primer’s solution encode the link in Base62 rather than Base64?

Question 11
In the Pastebin design, what stops two pastes from getting the same short link?

Question 12
You have ten minutes for step 3 of the Pastebin question. Where should you spend them?

Method 4 Step 4: Scale the design

0 of 4 answered right
Open the lesson
Question 13
Put the primer’s scaling loop in order.
  1. 1
    Benchmark or load test
  2. 2
    Address the bottleneck, weighing alternatives and trade-offs
  3. 3
    Profile for bottlenecks
  4. 4
    Repeat

Question 14
Pastebin averages 4 writes a second. What does the primer’s solution do about writes when scaling?

Question 15
In the scaled Pastebin design, what handles reads of popular pastes, and what handles the misses?

Question 16
An interviewer asks why you added read replicas. Which answer follows the method?