MCQs on Backup and Restore | SQL Server

Explore these 30 MCQs on SQL Server Backup and Restore, covering essential topics like full, differential, and transaction log backups, restoring databases, point-in-time recovery, backup strategies, and automated scheduling. Perfect for SQL enthusiasts and IT professionals!

Full, Differential, and Transaction Log Backups

  1. What does a full backup in SQL Server include?
    • A) Data files only
    • B) Transaction log only
    • C) Entire database and transaction log
    • D) Configuration settings
  2. Which backup type includes only the changes made since the last full backup?
    • A) Full Backup
    • B) Differential Backup
    • C) Transaction Log Backup
    • D) Copy-Only Backup
  3. What is the primary purpose of a transaction log backup?
    • A) Capture all data in the database
    • B) Back up only the database schema
    • C) Back up changes since the last log backup
    • D) Replicate the database
  4. Which type of backup does not impact the existing sequence of SQL Server backups?
    • A) Full Backup
    • B) Copy-Only Backup
    • C) Differential Backup
    • D) Log Backup
  5. When performing a differential backup, it is based on:
    • A) The last log backup
    • B) The last differential backup
    • C) The last full backup
    • D) Any backup
  6. Which type of backup is most suitable for minimizing data loss in high transaction environments?
    • A) Full Backup
    • B) Differential Backup
    • C) Transaction Log Backup
    • D) Copy-Only Backup
  7. Can a differential backup be restored without the original full backup?
    • A) Yes
    • B) No
  8. What does the tail-log backup ensure in SQL Server?
    • A) Database performance monitoring
    • B) Recovery of active transactions during failure
    • C) Shrinking log files
    • D) Encryption of backups

Restoring Databases (Point-in-Time Recovery)

  1. Which recovery model is required for point-in-time recovery in SQL Server?
    • A) Simple
    • B) Bulk-Logged
    • C) Full
    • D) No Recovery
  2. What is the purpose of the NORECOVERY option during database restoration?
    • A) Allows further transaction log backups
    • B) Restores and closes the database
    • C) Verifies database consistency
    • D) Logs restore errors
  3. When using STOPAT during recovery, what does it specify?
    • A) The type of recovery
    • B) The time to stop the restoration
    • C) The size of the backup
    • D) The recovery model
  4. Which command can be used to restore a database from a backup file?
    • A) BACKUP DATABASE
    • B) RESTORE DATABASE
    • C) DATABASE RECOVERY
    • D) RESTORE TRANSACTION LOG
  5. In SQL Server, the sequence of restoration when using differential and transaction log backups is:
    • A) Differential, Full, Transaction Log
    • B) Full, Transaction Log, Differential
    • C) Full, Differential, Transaction Log
    • D) Transaction Log, Differential, Full
  6. What must you do after the final restore in a sequence of backups?
    • A) Apply the WITH NORECOVERY option
    • B) Use the WITH RECOVERY option
    • C) Rebuild the database index
    • D) Reconfigure the recovery model
  7. Point-in-time recovery is possible with:
    • A) Full Recovery Model
    • B) Simple Recovery Model
    • C) Differential Recovery Model
    • D) Log-Free Model
  8. A database marked as “Restoring” can be accessed for queries.
    • A) True
    • B) False

Backup Strategies and Best Practices

  1. What is the recommended frequency of full backups in critical production environments?
    • A) Daily
    • B) Weekly
    • C) Monthly
    • D) Annually
  2. Which backup type should be taken frequently in high-transaction environments?
    • A) Full Backup
    • B) Differential Backup
    • C) Transaction Log Backup
    • D) Copy-Only Backup
  3. What is the main purpose of offsite backup storage?
    • A) Speed up restoration
    • B) Disaster recovery
    • C) Backup testing
    • D) Save storage costs
  4. Which SQL Server feature encrypts backup files?
    • A) Transparent Data Encryption (TDE)
    • B) Database Mirroring
    • C) Always On Availability Groups
    • D) Backup Compression
  5. Backup verification ensures:
    • A) Backups are taken frequently
    • B) The backup file is consistent and usable
    • C) The database is encrypted
    • D) Logs are cleared
  6. What is a common best practice for retaining backup files?
    • A) Keep backups indefinitely
    • B) Retain backups according to compliance requirements
    • C) Overwrite backups weekly
    • D) Only store full backups
  7. Which tool can be used to monitor and verify backup jobs in SQL Server?
    • A) SQL Server Management Studio (SSMS)
    • B) SQL Profiler
    • C) Windows Task Manager
    • D) Database Tuning Advisor
  8. What is the purpose of backup compression in SQL Server?
    • A) Reduce backup time and storage space
    • B) Encrypt backup files
    • C) Improve query performance
    • D) Enable point-in-time recovery

Using SQL Server Agent for Scheduling Backups

  1. What is SQL Server Agent primarily used for?
    • A) Managing database security
    • B) Automating database tasks
    • C) Enforcing backup encryption
    • D) Monitoring database performance
  2. Which type of job step in SQL Server Agent is used to execute a database backup?
    • A) PowerShell Script
    • B) T-SQL Script
    • C) Maintenance Plan
    • D) Replication
  3. How do you ensure a backup job runs at regular intervals using SQL Server Agent?
    • A) Create a schedule for the job
    • B) Use the WITH RECOVERY option
    • C) Configure a database alert
    • D) Enable database snapshots
  4. Which SQL Server feature allows you to define a series of backup tasks as a Maintenance Plan?
    • A) SQL Server Agent
    • B) Query Editor
    • C) Management Plan Designer
    • D) Always On
  5. SQL Server Agent allows for email notifications on backup job status. What feature supports this?
    • A) Database Mail
    • B) Windows Notifications
    • C) Task Scheduler Alerts
    • D) Email Encryption
  6. Which system database stores SQL Server Agent job information?
    • A) Master
    • B) Model
    • C) MSDB
    • D) TempDB

Answer Key

QnoAnswer
1C) Entire database and transaction log
2B) Differential Backup
3C) Back up changes since the last log backup
4B) Copy-Only Backup
5C) The last full backup
6C) Transaction Log Backup
7B) No
8B) Recovery of active transactions during failure
9C) Full
10A) Allows further transaction log backups
11B) The time to stop the restoration
12B) RESTORE DATABASE
13C) Full, Differential, Transaction Log
14B) Use the WITH RECOVERY option
15A) Full Recovery Model
16B) False
17A) Daily
18C) Transaction Log Backup
19B) Disaster recovery
20A) Transparent Data Encryption (TDE)
21B) The backup file is consistent and usable
22B) Retain backups according to compliance requirements
23A) SQL Server Management Studio (SSMS)
24A) Reduce backup time and storage space
25B) Automating database tasks
26B) T-SQL Script
27A) Create a schedule for the job
28A) SQL Server Agent
29A) Database Mail
30C) MSDB

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top