0
0
DBMS Theoryknowledge~20 mins

Replication strategies in DBMS Theory - Practice Problems & Coding Challenges

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

In a master-slave replication setup, what is the primary role of the slave database?

ATo accept write operations and replicate changes to the master
BTo act as a backup without any replication
CTo accept both read and write operations independently
DTo accept read operations and replicate changes from the master
Attempts:
2 left
💡 Hint

Think about which database handles writes and which handles reads in this setup.

📋 Factual
intermediate
2:00remaining
Types of Replication Consistency

Which replication strategy ensures that all replicas have the exact same data at the same time before any transaction is considered committed?

ASynchronous replication
BEventual consistency replication
CSemi-synchronous replication
DAsynchronous replication
Attempts:
2 left
💡 Hint

Consider which method waits for all replicas to confirm before completing a transaction.

🔍 Analysis
advanced
2:00remaining
Impact of Replication Lag

What is the most likely consequence of replication lag in an asynchronous replication system?

AData on replicas is always up to date with the master
BWrite operations are blocked until replicas confirm
CRead queries on replicas may return stale data
DThe master database becomes read-only
Attempts:
2 left
💡 Hint

Think about what happens when replicas receive updates later than the master.

Comparison
advanced
2:00remaining
Comparing Multi-Master and Master-Slave Replication

Which of the following is a key difference between multi-master and master-slave replication?

AMaster-slave replication supports conflict resolution; multi-master does not
BMulti-master allows writes on multiple nodes; master-slave allows writes only on the master
CMulti-master replication does not replicate data; master-slave replicates data
DMaster-slave replication requires all nodes to be writable
Attempts:
2 left
💡 Hint

Consider which replication type allows multiple nodes to accept write operations.

Reasoning
expert
2:00remaining
Choosing Replication Strategy for High Availability

You need a replication strategy that minimizes downtime and data loss during a master failure in a distributed database. Which strategy best fits this requirement?

ASynchronous multi-master replication
BAsynchronous master-slave replication
CAsynchronous multi-master replication
DSingle master with no replication
Attempts:
2 left
💡 Hint

Think about which strategy ensures data consistency and availability even if one master fails.