Sample Exam Questions

From the objective of OSS-DB Exam Silver
- General Knowledge - Operation management - installation method (how to use database management command)

Sample Question


Please choose two statements that are true about the replication functionality of PostgreSQL.

  1. Individual databases may be specified for replication in a single PostgreSQL database cluster.
  2. Data updates may only occur against a master instance in a PostgreSQL replication architecture. 
  3. A maximum of eight slave instances may be specified in a PostgreSQL replication architecture.
  4. When the master instance fails, a read-only slave instance may be promoted to an updateable master instance.
  5. When all instance servers are down, data updates on the master instance also stops automatically.

※This sample exam is different from those that appear in the actual OSS-DB Exam.

Answer and Explanation

PostgreSQL has supported functionality called streaming replication since version 9.0, and is now a part of the core product. Replication is an important function in large-scale systems for a number of reasons.

PostgreSQL replication facilitates PITR, where the transaction log (WAL file) is used to restore from. For this reason, the entire database cluster needs to be replicated. It is not possible to replicate individual databases in a cluster.

In replication, only one master instance can be updated. There are no restrictions on the number of read-only slave instances.

When the master instance goes down, you can promote one of the slaves to a master instance and continue to work. Therefore not only is replication for facilitating load balancing scenarios, it is also useful in high availability architectures.

When the slave instance goes down, log transfer can not be performed, but the master instance continues to operate. When the slave server is restored, all data updates will be transferred to the slave.


Therefore, the correct answers are B and D.‍