0
0
LLDsystem_design~20 mins

Availability checking in LLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Availability Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Availability in Distributed Systems

Which of the following best describes the concept of availability in a distributed system?

AThe system's ability to process requests within a fixed time limit under all conditions.
BThe system's ability to remain operational and accessible for use when needed.
CThe system's capacity to store large amounts of data without failure.
DThe system's ability to prevent unauthorized access to data.
Attempts:
2 left
💡 Hint

Think about what it means for a system to be ready and usable at any time.

Architecture
intermediate
2:00remaining
Designing for High Availability

You are designing a web service that must be highly available. Which architectural choice most directly improves availability?

ADeploying multiple servers behind a load balancer with health checks.
BImplementing a caching layer that refreshes data every 24 hours.
CEncrypting all data stored in the database to prevent breaches.
DUsing a single powerful server with a large database to handle all requests.
Attempts:
2 left
💡 Hint

Consider how to avoid a single point of failure.

scaling
advanced
2:30remaining
Scaling Availability for Peak Traffic

Your service experiences sudden spikes in traffic. Which scaling strategy best maintains availability during these spikes?

AVertical scaling by upgrading the CPU and RAM of the existing server.
BReducing the number of servers to save costs during low traffic periods.
CHorizontal scaling by adding more servers dynamically based on traffic load.
DCaching all responses indefinitely to avoid hitting the backend.
Attempts:
2 left
💡 Hint

Think about adding capacity quickly and flexibly.

tradeoff
advanced
2:00remaining
Tradeoffs Between Consistency and Availability

In the context of the CAP theorem, which statement correctly describes the tradeoff between consistency and availability?

ADuring network partitions, a system must choose to sacrifice either consistency or availability.
BA system can guarantee both consistency and availability at all times during network partitions.
CConsistency and availability are unrelated and can be optimized independently.
DAvailability is always more important than consistency in distributed systems.
Attempts:
2 left
💡 Hint

Recall the CAP theorem's core principle about network partitions.

estimation
expert
3:00remaining
Estimating Required Server Capacity for 99.99% Availability

You operate a service with a target of 99.99% availability. Your current single server has an average downtime of 1 hour per month. How many identical servers with automatic failover do you need to deploy to meet the availability target?

Assume failures are independent and failover is instant.

A4 servers
B1 server
C3 servers
D2 servers
Attempts:
2 left
💡 Hint

Calculate availability per server and use the formula for combined availability with failover.