70-465 · Question #91
You work as a Database Administrator (DBA) for a company named ABC.com. The company uses a Microsoft SQL Server 2012 infrastructure. You have a database named CorpDB. A full backup of CorpDB is…
The correct answer is C. Take a snapshot of the database before deploying the changes. F. Revert the database to the snapshot. This question tests knowledge of SQL Server database snapshots as a rapid rollback mechanism during deployments while preserving the existing backup chain.
Question
Options
- ATake a full backup of the database before deploying the changes.
- BTake a copy-only backup of the database before deploying the changes.
- CTake a snapshot of the database before deploying the changes.
- DRestore the database from the backup.
- ERestore the snapshot to another server and recover the required objects from the snapshot.
- FRevert the database to the snapshot.
How the community answered
(52 responses)- A2% (1)
- B2% (1)
- C79% (41)
- D12% (6)
- E6% (3)
Why each option
This question tests knowledge of SQL Server database snapshots as a rapid rollback mechanism during deployments while preserving the existing backup chain.
Taking a full backup before deployment would reset the differential base, causing the next scheduled differential backup to capture all changes since this new full backup rather than the weekly full backup, thereby disrupting the regular backup schedule.
While a copy-only backup avoids disrupting the differential backup chain, restoring from it would still require a lengthy restore process involving the copy-only full backup plus subsequent log backups, making it much slower than reverting a snapshot.
A database snapshot captures the state of the database at a specific point in time using sparse files and copy-on-write technology, without disrupting the existing backup schedule since it is not a traditional backup and does not affect the LSN chain or differential base. It also prevents user changes during the deployment window because the snapshot serves as a read-only reference point while the source database can be restricted.
Restoring the database from a standard backup (weekly full + nightly differential + log backups) would be time-consuming and complex, requiring multiple restore steps, which does not meet the requirement of undoing changes 'quickly'.
Restoring a snapshot to another server to recover objects is a complex, time-consuming process involving object-level recovery, and does not provide the fast, simple rollback of the entire database that reverting the snapshot directly achieves.
Reverting a database to a snapshot using the RESTORE DATABASE ... FROM DATABASE_SNAPSHOT statement is near-instantaneous compared to a full restore, allowing the DBA to quickly undo failed deployment changes by returning the database to its pre-deployment state without needing to replay transaction logs or restore multiple backup sets.
Concept tested: SQL Server database snapshots for deployment rollback
Source: https://learn.microsoft.com/en-us/sql/relational-databases/databases/database-snapshots-sql-server
Topics
Community Discussion
No community discussion yet for this question.