nerdexam
Microsoft

DP-300 · Question #420

Hotspot Question You have a SQL Server on Azure Virtual Machines instance named SQLVM1 that contains two databases named DB1 and DB2. The database and log files for DB1 and DB2 are hosted on managed…

The correct answer is ALTER ... CONFIGURATION: SERVER; WITH ..., FORMAT;: FILE_SNAPSHOT. To perform a snapshot backup of SQL Server databases on Azure managed disks, you must alter the database configuration to suspend writes for snapshot backup and then execute a BACKUP command with the FILE_SNAPSHOT option.

Submitted by amina.ke· Mar 6, 2026Perform administration by using T-SQL

Question

Hotspot Question You have a SQL Server on Azure Virtual Machines instance named SQLVM1 that contains two databases named DB1 and DB2. The database and log files for DB1 and DB2 are hosted on managed disks. You need to perform a snapshot backup of DB1 and DB2. How should you complete the T-SQL statements? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibit

DP-300 question #420 exhibit

Answer Area

  • ALTER ... CONFIGURATIONSERVER
    DATABASESERVERWORKLOAD GROUP
  • WITH ..., FORMAT;FILE_SNAPSHOT
    COPY_ONLYFILE_SNAPSHOTMETADATA_ONLY

Explanation

To perform a snapshot backup of SQL Server databases on Azure managed disks, you must alter the database configuration to suspend writes for snapshot backup and then execute a BACKUP command with the FILE_SNAPSHOT option.

Approach. The correct interaction is to select 'DATABASE' for the first dropdown and 'FILE_SNAPSHOT' for the second dropdown.

  1. First Dropdown: ALTER DATABASE CONFIGURATION The SUSPEND_FOR_SNAPSHOT_BACKUP option is a database-level setting in SQL Server. It is used to temporarily suspend I/O operations for a specific database or a group of databases to ensure a consistent state before an underlying disk snapshot is taken by the host operating system or virtualization platform (in this case, Azure managed disks). Therefore, the correct keyword to complete ALTER ___ CONFIGURATION is DATABASE.

  2. Second Dropdown: WITH FILE_SNAPSHOT When performing a SQL Server File-Snapshot Backup against Azure managed disks, the BACKUP command needs to use the FILE_SNAPSHOT option. This option tells SQL Server to register the metadata of the underlying storage snapshot (which contains the actual database files) as a backup. The actual .bkm file created by this command is very small and only contains the metadata necessary to reconstruct the database from the disk snapshot, not the full database content. The problem statement explicitly asks for a 'snapshot backup', making FILE_SNAPSHOT the only appropriate choice.

Common mistakes.

  • common_mistake. 1. Choosing 'SERVER' or 'WORKLOAD GROUP' for the first dropdown: The SUSPEND_FOR_SNAPSHOT_BACKUP setting is specifically applied at the database level to ensure transaction consistency for the chosen databases, not at the server level or for workload groups.
  1. Choosing 'COPY_ONLY' for the second dropdown: COPY_ONLY is an option for standard SQL Server backups (full, differential, log) that ensures the backup does not break the normal backup chain. It is not related to performing a file-snapshot backup that leverages underlying storage snapshots.
  2. Choosing 'METADATA_ONLY' for the second dropdown: While a file-snapshot backup essentially produces a metadata-only backup file from SQL Server's perspective, the specific T-SQL keyword to enable this feature for Azure managed disk snapshots is FILE_SNAPSHOT. The METADATA_ONLY option for BACKUP is not the correct syntax for initiating a file-snapshot backup. METADATA_ONLY is more commonly seen with RESTORE commands to view backup set information without actually restoring data.

Concept tested. SQL Server File-Snapshot Backups on Azure Virtual Machines using managed disks. This includes understanding the ALTER DATABASE ... SET SUSPEND_FOR_SNAPSHOT_BACKUP command and the BACKUP DATABASE ... WITH FILE_SNAPSHOT option for creating application-consistent backups leveraging underlying cloud platform disk snapshot capabilities.

Reference. https://learn.microsoft.com/en-us/sql/relational-databases/backup-restore/file-snapshot-backups-for-database-files-in-azure?view=sql-server-ver16

Topics

#snapshot backup#FILE_SNAPSHOT#ALTER SERVER CONFIGURATION#managed disks

Community Discussion

No community discussion yet for this question.

Full DP-300 Practice