nerdexam
Microsoft

DP-300 · Question #370

Drag and Drop Question You have an Azure virtual machine named Server1 that contains an instance of Microsoft SQL Server 2022 named SQL1. SQL1 contains two databases named DB1 and DB2. You need to…

The correct answer is ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = ON (GROUP = (db1, db2), MODE = COPY_ONLY);; BACKUP GROUP db1, db2 TO DISK = 'd:\temp\db.bkm' WITH METADATA_ONLY, FORMAT;; ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = OFF. SQL Server Snapshot Backup - Sequence Explanation This question tests knowledge of SQL Server 2022's suspend-for-snapshot-backup feature, which allows coordinated storage-level snapshots without breaking the backup chain. --- Step 1: ALTER SERVER CONFIGURATION SET…

Submitted by yuki_2020· Mar 6, 2026Plan and configure a high availability and disaster recovery (HA/DR) environment

Question

Drag and Drop Question You have an Azure virtual machine named Server1 that contains an instance of Microsoft SQL Server 2022 named SQL1. SQL1 contains two databases named DB1 and DB2. You need to take a snapshot backup of DB1 and DB2. The backup must NOT disrupt the backup chain and must NOT affect other databases. Which three Transact-SQL commands should you run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order. Answer:

Exhibit

DP-300 question #370 exhibit

Answer Area

Drag items

BACKUP GROUP db1, db2 TO DISK = 'd:\temp\db.bkm' WITH METADATA_ONLY, FORMAT;BACKUP SERVER TO DISK = 'd:\temp\db.bkm' WITH METADATA_ONLY, FORMAT;ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = ON (GROUP = (db1, db2), MODE = COPY_ONLY);ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = ON (GROUP = (db1), (db2));ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = OFFALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = ON;

Correct arrangement

  • ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = ON (GROUP = (db1, db2), MODE = COPY_ONLY);
  • BACKUP GROUP db1, db2 TO DISK = 'd:\temp\db.bkm' WITH METADATA_ONLY, FORMAT;
  • ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = OFF

Explanation

SQL Server Snapshot Backup - Sequence Explanation

This question tests knowledge of SQL Server 2022's suspend-for-snapshot-backup feature, which allows coordinated storage-level snapshots without breaking the backup chain.


Step 1: ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = ON (GROUP = (db1, db2), MODE = COPY_ONLY)

Why first: You must freeze/suspend I/O on the target databases before taking the snapshot. This command tells SQL Server to flush dirty pages to disk and suspend all I/O writes, putting the databases in a consistent state ready for a snapshot.

Why this specific variant:

  • GROUP = (db1, db2) - suspends only db1 and db2, satisfying the "must NOT affect other databases" requirement.
  • MODE = COPY_ONLY - ensures the snapshot does not disrupt the backup chain (no LSN advancement, no differential base change). This satisfies "must NOT disrupt the backup chain."

Common mistakes:

  • Choosing SET SUSPEND_FOR_SNAPSHOT_BACKUP = ON; (no GROUP/MODE) - this suspends the entire server, affecting all databases.
  • Choosing the GROUP variant without MODE = COPY_ONLY - this would break the backup chain.

Step 2: BACKUP GROUP db1, db2 TO DISK = 'd:\temp\db.bkm' WITH METADATA_ONLY, FORMAT

Why second: Once I/O is suspended and the storage-layer snapshot is taken (by your backup software/hypervisor, implied between steps 1 and 2), SQL Server needs to record the backup metadata. METADATA_ONLY writes the backup record to the backup history without copying actual data pages - the actual data was captured by the storage snapshot. This also automatically resumes I/O on the suspended databases.

Why this variant over BACKUP SERVER:

  • BACKUP SERVER would back up all databases on the instance, violating the "must NOT affect other databases" constraint.
  • BACKUP GROUP db1, db2 scopes the metadata record to only the two specified databases.

Step 3: ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = OFF

Why third/last: This is a safety/cleanup command. If the BACKUP GROUP in step 2 completes successfully, suspension is already lifted automatically. However, if the backup fails, the databases remain suspended indefinitely - this command manually releases the suspension to restore normal database operation.

Common misconception: Many assume this is always required. It's actually only needed as an error-recovery measure; a successful BACKUP GROUP implicitly resumes I/O. It's included in the sequence as best practice.


Summary Table

StepCommandPurpose
1SUSPEND_FOR_SNAPSHOT_BACKUP = ON (GROUP=..., MODE=COPY_ONLY)Freeze I/O on db1+db2 only, copy-only mode
2BACKUP GROUP db1, db2 ... METADATA_ONLYRecord backup metadata, release suspension
3SUSPEND_FOR_SNAPSHOT_BACKUP = OFFFailsafe: force-release if step 2 failed

Topics

#SQL Server Backup#Snapshot Backup#T-SQL#High Availability / Disaster Recovery (HA/DR)

Community Discussion

No community discussion yet for this question.

Full DP-300 Practice