FjellSystem Design Lab
Chapter 1 checkpoint

Chapter 1 checkpoint: system design foundations

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 17 answered0 right on the first attempt
Question 1 of 17
A product page takes four seconds to load even late at night, when nobody else is using the site. What kind of problem is this?

Question 2 of 17
Four identical web servers together handle 2,000 requests per second. If the service scales perfectly in Vogels’ sense, how many requests per second will ten of them handle?
RPS

Answers within 2% count.

Question 3 of 17
Your web servers keep each user’s session in their own memory. What has to change before you can run several of them behind a load balancer?

Question 4 of 17
You double the number of web servers, but total throughput does not change and the database’s CPU sits at 100%. What is the most likely explanation?

Question 5 of 17
An API receives 5,000 requests per second, and each request spends 40 ms in the system. On average, how many requests are in flight at once?
requests

Answers within 5% count.

Question 6 of 17
In the M/M/1 model, a server needs 10 ms of work per request and runs at 90% utilization. What is the average time a request spends in the system?

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

Question 7 of 17
A page load calls 40 backend services in parallel, and each is independently slow 1% of the time. What percentage of page loads hit at least one slow response?
%

Answers within 5% count.

Question 8 of 17
Match each term to its meaning.

Question 9 of 17
In the CAP theorem, what does consistency mean?

Question 10 of 17
A network partition separates two groups of Cassandra nodes running with default settings. What happens while it lasts?

Question 11 of 17
Match each system to how the lesson classifies it.

Question 12 of 17
PACELC adds a trade-off that applies when there is no partition. What is it?

Question 13 of 17
Put the stages of the primer’s walkthrough in the order it introduces them.
  1. Add a load balancer, redundant web servers and a CDN
  2. Add autoscaling
  3. Add a cache and read replicas
  4. Move the database and static content off the web server
  5. Run everything on a single box
  6. Move slow work to queues, and data to NoSQL and a warehouse

Question 14 of 17
A catalog service is 85% reads and 15% writes, and its single primary database is at 95% CPU. What is the most cost-effective first step?

Question 15 of 17
Sending a confirmation email takes two seconds, and the sign-up request waits for it. What should the sign-up endpoint do instead?

Question 16 of 17
A payment service runs one load balancer, four application servers and one primary database. Which parts would take the whole service down if a single machine failed?

Question 17 of 17
A service takes 6,000 requests a second, 90% of them reads. Reads try the cache first, which answers 80% of them; misses and all writes go to the database. Which component saturates first?