0
0
HLDsystem_design~20 mins

ACID properties in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ACID Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Which ACID property ensures that a transaction is completed fully or not at all?
In database systems, transactions must be reliable. Which ACID property guarantees that either all steps of a transaction happen or none do, preventing partial updates?
ADurability
BAtomicity
CConsistency
DIsolation
Attempts:
2 left
💡 Hint
Think about the property that treats the transaction as a single unit.
Architecture
intermediate
1:30remaining
Which ACID property prevents transactions from interfering with each other?
When multiple users access a database at the same time, which ACID property ensures their transactions do not affect each other's results?
AAtomicity
BDurability
CIsolation
DConsistency
Attempts:
2 left
💡 Hint
Think about how transactions are kept separate during execution.
scaling
advanced
2:00remaining
In a distributed database, which ACID property is hardest to maintain when scaling horizontally?
When a database is spread across many servers to handle more users, which ACID property becomes most challenging to guarantee?
ADurability
BAtomicity
CIsolation
DConsistency
Attempts:
2 left
💡 Hint
Consider the difficulty of keeping data the same everywhere at the same time.
tradeoff
advanced
2:00remaining
Which ACID property can be relaxed to improve database performance but risks reading uncommitted data?
To speed up database operations, sometimes one ACID property is weakened. Which one is it, and what risk does this introduce?
AIsolation; risk of dirty reads
BAtomicity; risk of partial transactions
CDurability; risk of losing committed data
DConsistency; risk of invalid data
Attempts:
2 left
💡 Hint
Think about concurrency and seeing changes before they are finalized.
estimation
expert
2:30remaining
Estimate the minimum number of replicas needed to ensure Durability in a distributed database with potential node failures.
You want to guarantee that committed data is never lost even if some servers fail. What is the minimum number of replicas you need to store the data safely?
A3 replicas, to tolerate one server failure and maintain quorum
B2 replicas, to tolerate one server failure
C1 replica, because one copy is enough if the server is reliable
D4 replicas, to tolerate two server failures
Attempts:
2 left
💡 Hint
Think about how many copies are needed to survive one failure and still agree on data.