Ensure your PostgreSQL database is safeguarded with effective backup and disaster recovery strategies. Learn essential concepts like pg_dump, pg_basebackup, PITR, and replication for high availability.
| Qno | Answer |
|---|---|
| 1 | B) To create a backup of the database |
| 2 | B) pg_dump |
| 3 | D) Binary |
| 4 | C) To create a physical backup of the entire cluster |
| 5 | A) -D |
| 6 | B) It supports parallel backups |
| 7 | B) No, it can only back up individual databases |
| 8 | C) Logical backup |
| 9 | A) Larger than other formats |
| 10 | B) Using pg_restore |
| 11 | A) To restore the database to the state at a specific point in time |
| 12 | A) A backup taken with pg_basebackup and WAL (Write-Ahead Logging) files |
| 13 | A) Recovering from accidental data deletion |
| 14 | A) recovery.conf |
| 15 | C) It ensures WAL files are archived for PITR |
| 16 | A) Set archive_mode to ‘on’ in postgresql.conf |
| 17 | B) A marker indicating when the PITR process should start |
| 18 | D) All of the above |
| 19 | B) The ability to restore to any specific time |
| 20 | D) All of the above |
| 21 | C) Regularly test your backup and recovery strategy |
| 22 | A) A backup that includes all data since the last full backup |
| 23 | D) All of the above |
| 24 | A) Use a consistent snapshot during backup |
| 25 | C) Use incremental backups and periodically take full backups |
| 26 | C) pg_stat_archiver |
| 27 | D) All of the above |
| 28 | A) They can be scheduled using tools like cron or pgAgent |
| 29 | C) Based on the frequency of database changes |
| 30 | D) All of the above |