Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using multiplication instead of division.
Adding or subtracting instead of dividing.
✗ Incorrect
To find requests per second, divide total requests by total seconds.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Dividing instead of multiplying.
Adding instead of multiplying.
✗ Incorrect
Total storage is the number of users multiplied by average data per user.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Dividing by 60 instead of multiplying.
Adding or subtracting 60.
✗ Incorrect
To get hourly traffic from per minute, multiply by 60 minutes.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Adding instead of multiplying.
Subtracting overhead factor.
✗ Incorrect
Total bandwidth is number of streams times average bandwidth per stream, multiplied by overhead factor.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Multiplying instead of dividing for base servers.
Adding safety margin instead of multiplying.
Not adding buffer server.
✗ Incorrect
Divide total requests by server capacity, multiply by safety margin, then add 1 for buffer.