0
0
HLDsystem_design~10 mins

Back-of-the-envelope estimation in HLD - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to estimate the number of requests per second for a system.

HLD
requests_per_second = total_requests [1] total_seconds
Drag options to blanks, or click blank then click option'
A+
B*
C-
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using multiplication instead of division.
Adding or subtracting instead of dividing.
2fill in blank
medium

Complete the code to estimate the total storage needed for user data.

HLD
total_storage_gb = number_of_users [1] average_data_per_user_gb
Drag options to blanks, or click blank then click option'
A-
B+
C*
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Dividing instead of multiplying.
Adding instead of multiplying.
3fill in blank
hard

Fix the error in the code estimating peak traffic per hour.

HLD
peak_traffic_per_hour = average_traffic_per_minute [1] 60
Drag options to blanks, or click blank then click option'
A*
B/
C+
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Dividing by 60 instead of multiplying.
Adding or subtracting 60.
4fill in blank
hard

Fill both blanks to estimate total bandwidth needed for video streaming.

HLD
total_bandwidth_mbps = number_of_streams [1] average_bandwidth_per_stream_mbps [2] overhead_factor
Drag options to blanks, or click blank then click option'
A*
B+
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Adding instead of multiplying.
Subtracting overhead factor.
5fill in blank
hard

Fill all three blanks to estimate the number of servers needed.

HLD
servers_needed = (total_requests_per_second [1] requests_per_server_capacity) [2] safety_margin [3] 1
Drag options to blanks, or click blank then click option'
A/
B*
C+
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Multiplying instead of dividing for base servers.
Adding safety margin instead of multiplying.
Not adding buffer server.