0
0
HLDsystem_design~10 mins

Data replication strategies 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 identify the primary replication type used for high availability.

HLD
ReplicationType = "[1]"  # Commonly used for synchronous data copying
Drag options to blanks, or click blank then click option'
AAsynchronous
BEventual
CSynchronous
DSnapshot
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing asynchronous which delays data copying.
2fill in blank
medium

Complete the code to select the replication strategy that allows replicas to lag behind the primary.

HLD
ReplicationStrategy = "[1]"  # Replicas update after some delay
Drag options to blanks, or click blank then click option'
AAsynchronous
BQuorum-based
CSynchronous
DMulti-master
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing with synchronous replication which waits for confirmation.
3fill in blank
hard

Fix the error in the replication mode assignment to correctly represent multi-master replication.

HLD
replication_mode = "[1]"  # Allows multiple nodes to accept writes
Drag options to blanks, or click blank then click option'
AMulti-master
BSingle-master
CPrimary-secondary
DRead-only
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing single-master which restricts writes to one node.
4fill in blank
hard

Fill both blanks to complete the code for a quorum-based replication read and write strategy.

HLD
write_quorum = "[1]"  # Minimum nodes to confirm write
read_quorum = "[2]"   # Minimum nodes to confirm read
Drag options to blanks, or click blank then click option'
Amajority
Ball
Cone
Dnone
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'all' which is stricter and less available.
5fill in blank
hard

Fill all three blanks to complete the code for a replication setup with primary, secondary, and failover nodes.

HLD
primary_node = "[1]"
secondary_node = "[2]"
failover_node = "[3]"
Drag options to blanks, or click blank then click option'
Aaccepts writes
Breplicates data
Ctakes over if primary fails
Dmonitors health
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing failover with monitoring role.