Sample questions
Question 1Easy
1 million requests per day is roughly how many per second on average?
- About 120
- About 1
- About 12
- About 1,200
Answer: C. About 12
Explanation
10^6 / 86,400
≈ 11.6 requests per second.
Step-by-step solution
- 1,000,000 / 86,400.
- About 11.6.
- So about 12/s.
Why the other options are wrong
- A. 120 is 10x too high.
- B. 1 is too low.
- D. 1,200 is 100x too high.
Tip: 1M per day ~ 12 per second.
Question 2Easy
50 million daily users each send 40 chat messages of ~100 bytes. Daily message storage is about:
- 2 TB
- 20 GB
- 2 GB
- 200 GB
Answer: D. 200 GB
Explanation
5 × 10^7 × 40 × 100 B = 2 × 10^11 B
= 200 GB.
Step-by-step solution
- Messages per day = 50,000,000 x 40 = 2,000,000,000.
- Bytes = 2 x 10^9 x 100 = 2 x 10^11.
- 2 x 10^11 bytes = 200 GB.
Why the other options are wrong
- A. 2 TB is 10x too large.
- B. 20 GB is 10x too small.
- C. 2 GB is 100x too small.
Tip: Count the zeros: 10^9 = GB, 10^12 = TB.
Question 3Easy
10 million photos are uploaded per day, averaging 2 MB each. Daily new storage is about:
- 20 GB
- 2 TB
- 20 TB
- 200 TB
Answer: C. 20 TB
Explanation
10^7 × 2 × 10^6 B = 2 × 10^13 B
= 20 TB.
Step-by-step solution
- Daily upload size = 10 million photos × 2 MB = 20 million MB.
- 20 million MB = 2 × 10^13 bytes, using 1 MB = 10^6 bytes.
- 2 × 10^13 bytes = 20 TB.
- So the answer is option C, 20 TB.
Why the other options are wrong
- A. 20 GB is 1,000 times too small.
- B. 2 TB is ten times too small.
- D. 200 TB is ten times too large.
Tip: Multiply the count by the size per item, then convert units carefully: MB to GB divides by 1,000.
Question 4Easy
1 billion users × 1 KB of profile data each is about:
- 1 TB
- 1 PB
- 1 GB
- 100 GB
Answer: A. 1 TB
Explanation
10^9 × 10^3 B = 10^12 B
= 1 TB.
Step-by-step solution
- 1 billion users = 10^9 users.
- 1 KB = 10^3 bytes, so the total is 10^9 × 10^3 = 10^12 bytes.
- 10^12 bytes = 1 TB.
- So the answer is option A, 1 TB.
Why the other options are wrong
- B. 1 PB is 1,000 times too large.
- C. 1 GB is 1,000 times too small.
- D. 100 GB is ten times too small.
Tip: 1 KB × 1 billion = 1 TB; powers of ten make these estimates quick.
Question 5Medium
100 million daily active users each make 10 requests a day. Average QPS is roughly:
- About 12,000
- About 120,000
- About 1.2 million
- About 1,200
Answer: A. About 12,000
Explanation
10^9 requests / 86,400 s
≈ 11,574 per second.
Step-by-step solution
- 100 million users × 10 requests = 1 billion requests a day.
- Divide by 86,400 seconds: 1,000,000,000 ÷ 86,400 ≈ 11,574 per second.
- That rounds to about 12,000 requests per second.
- So the answer is option A.
Why the other options are wrong
- B. 120,000 is about ten times too high; the daily total is 1 billion, not 10 billion.
- C. 1.2 million is about 100 times too high.
- D. 1,200 is about ten times too low.
Tip: For average QPS, divide daily requests by 86,400 seconds.
Question 6Medium
Peak traffic is 60,000 QPS. Each server handles 2,000 QPS, and you plan to run servers at no more than 50% load. How many servers?
- 120
- 60
- 45
- 30
Answer: B. 60
Explanation
Usable capacity per server is 1,000 QPS, so 60,000 / 1,000 = 60 servers.
Step-by-step solution
- Each server can run at 50% of 2,000 QPS, so the usable load per server is 1,000 QPS.
- Servers needed = 60,000 ÷ 1,000 = 60.
- So the answer is option B, 60 servers.
Why the other options are wrong
- A. 120 servers would be twice as many as needed for the target load.
- C. 45 servers give 45,000 QPS at the usable limit, which is less than the peak of 60,000.
- D. 30 servers give 30,000 QPS at the usable limit, which is too few.
Tip: Apply the target utilisation first: usable capacity = capacity per server × target load, then divide the peak by it.
Question 7Medium
How many distinct codes can 7 base-62 characters (a–z, A–Z, 0–9) represent?
- About 3.5 trillion
- About 78 billion
- About 56.8 billion
- About 218 trillion
Answer: A. About 3.5 trillion
Explanation
62^7 = 3,521,614,606,208
≈ 3.5 × 10^12.
Step-by-step solution
- Each of the 7 characters has 62 choices, so the codes are 62^7.
- 62^7 = 3,521,614,606,208.
- That is about 3.5 × 10^12, which is about 3.5 trillion.
- So the answer is option A.
Why the other options are wrong
- B. 78 billion is far too small; 62^7 is about 3.5 trillion.
- C. 56.8 billion is far too small; it is about 62^6, one character short.
- D. 218 trillion is about 62^8, one character more than the question asks for.
Tip: Each extra base-62 character multiplies the number of codes by 62.
Question 8Medium
Which is the fastest operation, by orders of magnitude?
- Round trip between continents
- Reading from main memory
- Random read from an SSD
- Disk seek on a spinning HDD
Answer: B. Reading from main memory
Explanation
Memory is ~100 ns; SSD random reads are tens to hundreds of µs; HDD seeks ~10 ms; intercontinental RTT ~100+ ms.
Step-by-step solution
- Reading from main memory takes about 100 nanoseconds.
- A random SSD read takes tens to hundreds of microseconds.
- A spinning HDD seek takes about 10 milliseconds, and a continent-to-continent round trip takes over 100 milliseconds.
- So main memory is the fastest, and the answer is option B.
Why the other options are wrong
- A. A round trip between continents is in the hundreds of milliseconds, the slowest of these.
- C. A random SSD read is in microseconds, far slower than memory.
- D. A HDD seek is in milliseconds, which is the slowest local operation here.
Tip: Rough latency order: memory in nanoseconds, SSD in microseconds, HDD seek in milliseconds, network round trip across continents in over 100 milliseconds.
Question 9Hard
At 20 TB/day of uploads, the average incoming bandwidth is about:
- About 0.23 Gbps
- About 18.5 Gbps
- About 230 Mbps
- About 1.85 Gbps
Answer: D. About 1.85 Gbps
Explanation
2 × 10^13 B × 8 bits / 86,400 s
≈ 1.85 × 10^9 bits/s.
Step-by-step solution
- Daily volume = 2 × 10^13 bytes (20 TB).
- Bits per day = 2 × 10^13 × 8 = 1.6 × 10^14 bits.
- Per second = 1.6 × 10^14 ÷ 86,400 ≈ 1.85 × 10^9 bits per second, which is 1.85 Gbps.
- So the answer is option D.
Why the other options are wrong
- A. 0.23 Gbps is about one eighth of the answer, as if the bytes were not converted to bits.
- B. 18.5 Gbps is ten times too high.
- C. 230 Mbps is far too low; it is about one eighth of the answer.
Tip: Bandwidth: convert bytes to bits (× 8), then divide by seconds, and use Gbps for values above 1 billion bits per second.
Question 10Hard
200 million daily users open their feed 5 times a day, each load showing 20 posts. Average post reads per second?
- About 46,000
- About 2.3 million
- About 231,000
- About 23,000
Answer: C. About 231,000
Explanation
2 × 10^8 × 5 × 20 = 2 × 10^10 reads
/ 86,400 ≈ 231,000/s.
Step-by-step solution
- Reads per day = 200M x 5 x 20 = 2 x 10^10.
- Seconds per day = 86,400.
- 2 x 10^10 / 86,400 = about 231,000/s.
Why the other options are wrong
- A. 46,000 is 5x too low.
- B. 2.3 million is 10x too high.
- D. 23,000 is 10x too low.
Tip: 1 day is about 10^5 s, so 2x10^10 / 10^5 = 2x10^5.
Practise all 17 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →