Complete the code to identify the role of the primary database in replication.
The primary database is also known as the [1] node in master-slave replication.
The primary database is called the master node because it handles all write operations and replicates data to slaves.
Complete the code to describe how slaves receive data updates.
Slaves receive data updates from the master through [1] replication.
In master-slave replication, slaves usually receive updates asynchronously to avoid slowing down the master.
Fix the error in the replication flow description.
The master sends write queries directly to the [1] databases to keep them updated.The master sends updates to slave databases, not clients or caches, to replicate data.
Fill both blanks to complete the replication consistency model.
In [1] replication, the master does not wait for slaves to confirm writes, which can cause [2] lag.
Asynchronous replication means the master proceeds without waiting for slaves, which can cause replication lag.
Fill all three blanks to complete the replication setup code snippet.
replication_config = { 'role': '[1]', 'sync_mode': '[2]', 'failover': '[3]' }The master role uses asynchronous sync mode and automatic failover for high availability.