DP-300 study notes · 20–25% of the exam

Plan and configure a high availability and disaster recovery (HA/DR) environment

First draft for review. Check details against Microsoft Learn before relying on them.

What this area covers

Planning HA/DR from RPO and RTO, backing up and restoring databases, and configuring HA/DR features.

Planning

  • RPO is the data you can lose. RTO is how long recovery may take.
  • Azure SQL Database: built-in HA, zone redundancy, active geo-replication and failover groups.
  • SQL Server on VMs: Always On availability groups, failover cluster instances and log shipping.
  • Hybrid: Managed Instance link, AGs spanning sites, and free passive replicas with Software Assurance.
  • Test with planned failovers and measure the results.

Backup and restore

  • Azure SQL takes full, differential and log backups. PITR retention is 7 days by default (1 to 35). LTR keeps backups up to 10 years.
  • Restores create new databases. Geo-restore uses geo-redundant backups (RPO up to an hour).
  • Deleted databases can be restored within the retention period, unless the server is deleted.
  • SQL Server: BACKUP DATABASE ... TO URL with a SAS credential, COPY_ONLY for ad hoc backups, RESTORE ... WITH STOPAT for point in time.
  • Managed Instance supports COPY_ONLY native backups to URL.

Configuring HA/DR

  • Active geo-replication: up to four readable secondaries, manual per-database failover.
  • Failover groups: listener endpoints and group failover for SQL Database and Managed Instance.
  • AGs on VMs: synchronous commit for automatic failover, asynchronous for DR. Use a load balancer or multi-subnet listener. Contained AGs carry logins and jobs.
  • FCIs need WSFC and shared storage such as Azure shared disks.
  • Log shipping needs the full or bulk-logged recovery model.
  • Monitor with sys.dm_hadr_database_replica_states and sys.dm_geo_replication_link_status. Apps should use the listener and retry logic.