Method checkpoint
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
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 of 16
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 of 16
You are asked to “design a photo-sharing service”. What should you do first?
Question 4 of 16
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?
Question 5 of 16
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 of 16
Put the primer’s four steps in order.
- Design core components
- Scale the design
- Create a high level design
- Outline use cases, constraints, and assumptions
Question 7 of 16
Why does the primer’s first Pastebin design have no cache and no read replicas?
Question 8 of 16
Match each part of the first Pastebin design to the reason for it.
Question 9 of 16
Pastebin expects 360 million links over three years. Are 7 Base62 characters enough?
Question 10 of 16
Why does the primer’s solution encode the link in Base62 rather than Base64?
Question 11 of 16
In the Pastebin design, what stops two pastes from getting the same short link?
Question 12 of 16
You have ten minutes for step 3 of the Pastebin question. Where should you spend them?
Question 13 of 16
Put the primer’s scaling loop in order.
- Profile for bottlenecks
- Address the bottleneck, weighing alternatives and trade-offs
- Repeat
- Benchmark or load test
Question 14 of 16
Pastebin averages 4 writes a second. What does the primer’s solution do about writes when scaling?
Question 15 of 16
In the scaled Pastebin design, what handles reads of popular pastes, and what handles the misses?
Question 16 of 16
An interviewer asks why you added read replicas. Which answer follows the method?