DP-300 · Question #45
Your environment contains a Microsoft Azure virtual machine and an Azure SQL database. The virtual machine has Microsoft SQL Server installed and contains several applications. You need to recommend…
The correct answer is B. Implement transactional replication. To migrate an application's database from SQL Server on an Azure VM to an Azure SQL Database with minimal downtime, transactional replication is the most suitable solution.
Question
Options
- AImplement log shipping.
- BImplement transactional replication.
- CRestore a BACPAC of the database.
- DRestore a backup of the database.
How the community answered
(23 responses)- A4% (1)
- B83% (19)
- C4% (1)
- D9% (2)
Why each option
To migrate an application's database from SQL Server on an Azure VM to an Azure SQL Database with minimal downtime, transactional replication is the most suitable solution.
Log shipping involves restoring transaction log backups, making the secondary database read-only during restores and typically requiring a manual failover sequence which often results in more downtime compared to transactional replication for continuous synchronization and cutover.
Transactional replication allows the source database on SQL Server to be continuously synchronized with an Azure SQL Database as a subscriber. This keeps the target database up-to-date in near real-time while the source application remains online, enabling a quick cutover by simply redirecting the application to the synchronized Azure SQL Database with minimal downtime.
Restoring a BACPAC requires taking the source database offline or creating a point-in-time snapshot, leading to significant downtime while the BACPAC is generated and then imported into Azure SQL Database.
Restoring a backup of the database involves a period of downtime where the source cannot accept new writes and does not provide a continuous synchronization mechanism for a minimal downtime cutover.
Concept tested: Minimal downtime SQL database migration to Azure SQL Database
Source: https://learn.microsoft.com/en-us/azure/azure-sql/database/replication-to-sql-database
Community Discussion
No community discussion yet for this question.