Bird
0
0
LLDsystem_design~20 mins

Fine calculation in LLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Fine Calculation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Fine Calculation Components

Which of the following components is essential for designing a fine calculation system for a library?

AWeather API, book inventory, fine rules engine, payment gateway
BUser database, book inventory, fine rules engine, payment gateway
CUser database, book inventory, social media integration, payment gateway
DUser database, book inventory, fine rules engine, video streaming service
Attempts:
2 left
💡 Hint

Think about what is needed to calculate fines and collect payments.

Architecture
intermediate
2:00remaining
Designing a Scalable Fine Calculation System

Which architecture best supports a fine calculation system that must handle millions of users with low latency?

AMicroservices with separate services for user management, fine calculation, and payment processing
BSingle server with in-memory cache for all data
CMonolithic application with a single database
DPeer-to-peer network without centralized control
Attempts:
2 left
💡 Hint

Consider scalability and separation of concerns.

scaling
advanced
2:00remaining
Handling Peak Load in Fine Calculation System

During peak hours, the fine calculation system experiences high traffic. Which approach best ensures system availability and responsiveness?

AUse a load balancer with auto-scaling groups for fine calculation services
BIncrease the database size without changing the architecture
CDisable fine calculation temporarily during peak hours
DUse a single powerful server to handle all requests
Attempts:
2 left
💡 Hint

Think about distributing load and scaling dynamically.

tradeoff
advanced
2:00remaining
Choosing Between Real-Time and Batch Fine Calculation

What is the main tradeoff when choosing real-time fine calculation over batch processing?

AReal-time can only handle small data; batch can only handle large data
BReal-time is cheaper but less accurate; batch is expensive but always accurate
CReal-time requires no database; batch requires a database
DReal-time provides immediate feedback but requires more computing resources; batch is resource-efficient but delayed
Attempts:
2 left
💡 Hint

Consider speed versus resource usage.

estimation
expert
2:00remaining
Estimating Storage for Fine Calculation Logs

A fine calculation system logs each fine event with 1 KB of data. If the system expects 10 million fine events per month, what is the approximate storage needed per year?

A12 TB
B120 TB
C120 GB
D1.2 TB
Attempts:
2 left
💡 Hint

Calculate monthly data and multiply by 12 months.