Database_Backups_Recovery_Flashcards

1
Q

What is a database backup?

A

The process of creating a copy of the database information to safeguard against data loss or corruption.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why are backups important?

A
  1. Data Protection
  2. Business Continuity
  3. Compliance and Regulations
  4. Data Integrity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the types of backups?

A
  1. Full Backup
  2. Incremental Backup
  3. Differential Backup
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a full backup?

A

A full backup copies all data from the database, requiring more storage space and time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an incremental backup?

A

An incremental backup only backs up the data that has changed since the last backup, either full or incremental.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a differential backup?

A

A differential backup captures all changes made since the last full backup.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are key backup strategies?

A
  1. Regular Scheduling
  2. Storage Solutions
  3. Testing and Verification
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is database recovery?

A

The process of restoring database data from a backup after data loss or corruption.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why is recovery important?

A
  1. Disaster Recovery
  2. Operational Continuity
  3. Data Integrity
  4. Compliance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are common recovery scenarios?

A
  1. Hardware Failure
  2. Data Corruption
  3. Accidental Deletion
  4. Disaster Recovery
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the steps in the database recovery process?

A
  1. Assessment
  2. Choosing a Recovery Point
  3. Preparation
  4. Restoration
  5. Validation
  6. Review
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What features does PostgreSQL offer for backups and recovery?

A
  1. ACID Compliance
  2. Extensive Data Type Support
  3. Advanced Replication
  4. Point-in-Time Recovery (PITR)
  5. Robust Security Features
  6. Flexible Backup Options
  7. Efficient Disaster Recovery
  8. Tooling and Extensions
  9. Performance and Scalability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the command to backup a PostgreSQL database?

A

pg_dump -U username -d db_name > /path/to/folder/for/db_backup/db_backup.sql

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the command to restore a PostgreSQL database from a backup?

A

dropdb -U username db_name
createdb -U username db_name
psql -U username -d db_name -f /path/to/folder/for/db_backup/db_backup.sql

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are best practices for backup and recovery?

A
  1. Regular Backup Schedules
  2. Backup Types and Rotation
  3. Disaster Recovery Plan
  4. Backup Automation
  5. Automated Testing
  6. Monitoring and Alerts
  7. Data Encryption
  8. Access Controls
  9. Documentation and Training
  10. Offsite and Onsite Storage
  11. Backup Storage Management
  12. Test Restores
  13. Data Integrity Checks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly