Courseiva

DP-300 · topic practice

Plan and configure high availability and disaster recovery practice questions

This domain covers designing and implementing high availability and disaster recovery for Azure SQL Database, Azure SQL Managed Instance, and SQL Server on Azure VMs. Questions test failover groups, auto-failover groups, active geo-replication, zone-redundant and geo-redundant backups, Business Critical vs General Purpose tiers, Always On availability groups, and backup/restore retention and restore points.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Plan and configure high availability and disaster recovery

What the exam tests

What to know about Plan and configure high availability and disaster recovery

Be able to choose and configure the right HA/DR feature for Azure SQL Database, Managed Instance, and SQL Server on Azure VMs, including failover groups, geo-replication, and Always On. The most important thing is matching the feature to the required RPO, RTO, and failover automation.

Configuring auto-failover groups and active geo-replication for Azure SQL Database

Selecting Business Critical, General Purpose, or Hyperscale tiers for HA and local redundancy

Implementing Always On availability groups on SQL Server on Azure Virtual Machines

Configuring backup retention, long-term retention, and point-in-time restore for Azure SQL

Watch out for

Common Plan and configure high availability and disaster recovery exam traps

  • ▸Confusing auto-failover groups, which provide a listener endpoint and automatic failover, with active geo-replication, which requires manual failover and no listener.
  • ▸Assuming zone redundancy is available in all tiers and regions; it depends on the service tier and region support.
  • ▸Mixing up RPO and RTO when choosing between geo-redundant backups, failover groups, and Always On availability groups.

Practice set

Plan and configure high availability and disaster recovery questions

20 questions · select your answer, then reveal the explanation

A company runs a critical Azure SQL Database in the West US region. To meet a Recovery Point Objective (RPO) of 5 seconds and a Recovery Time Objective (RTO) of 30 seconds during a regional outage, which deployment option should be used?

A company has an Azure SQL Managed Instance in the East US region. They need to implement disaster recovery with automatic failover to a paired region. The solution must minimize data loss to less than 5 seconds. Which feature should they use?

A company uses Azure SQL Database Hyperscale tier for a large database. They need to perform a disaster recovery drill by failing over to a secondary region with minimal data loss. The secondary is in a paired region and is readable. Which approach should they use?

Which THREE factors should be considered when choosing between Azure SQL Database active geo-replication and auto-failover groups for disaster recovery?

You are troubleshooting an Always On Availability Group named AG1. The exhibit shows the current state. The primary replica shows PENDING_FAILOVER. The secondary replica is DISCONNECTED with error 35202. What is the most likely cause of this issue?

Exhibit

Refer to the exhibit.

```
-- Current state of the availability group
SELECT ag.name AS ag_name, 
       replica_server_name, 
       role_desc, 
       operational_state_desc, 
       connected_state_desc, 
       synchronization_health_desc, 
       last_connect_error_number, 
       last_connect_error_time
FROM sys.dm_hadr_availability_replica_states rs
JOIN sys.availability_groups ag ON rs.group_id = ag.group_id
WHERE ag.name = 'AG1';
```

Output:
ag_name | replica_server_name | role_desc | operational_state_desc | connected_state_desc | synchronization_health_desc | last_connect_error_number | last_connect_error_time
AG1     | SQLVM-Primary        | PRIMARY   | PENDING_FAILOVER       | CONNECTED            | HEALTHY                     | 0                         | NULL
AG1     | SQLVM-Secondary      | SECONDARY | ONLINE                 | DISCONNECTED         | NOT_HEALTHY                 | 35202                     | 2024-03-15 10:30:00.000
Question 6hardmultiple choice
Review the full routing breakdown →

You are the database administrator for a global e-commerce company. They run a mission-critical application on Azure SQL Database in the Business Critical tier. The database is 2 TB and experiences high write throughput. The current setup uses an auto-failover group with a secondary in the same region (West US) for high availability. The client application uses the auto-failover group listener with ReadScale=1 to route read-only queries to the secondary. Recently, during a regional outage that affected West US, the failover to the secondary succeeded, but the application experienced significant performance degradation and many timeouts for read operations. Investigation reveals that the secondary replica was overwhelmed with read traffic after failover. The business requires an RTO of 30 seconds and RPO of 5 seconds. The application must be able to handle read-heavy workloads even during a failover. You need to recommend a solution to improve read scalability and disaster recovery without changing the application code. What should you do?

Which TWO configurations are required to enable automatic failover for an Azure SQL Database configured with active geo-replication?

Match each Azure SQL Database error code to its meaning.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Service is busy; retry the request later

Database is not currently available

Cannot open server '%.*ls' requested by the login

Login failed for user

Refer to the exhibit. An administrator creates a geo-replica for SalesDB. After 30 minutes, the replication state remains SEEDING. What is the most likely cause?

Network Topology
az sql db showname SalesDBresource-group rg1partner-server sqlsrv2server sqlsrv1query '{recovery:recoveryModel"recovery": "Full","geoReplication": true,"zones": false"id": "/subscriptions/.../resourceGroups/rg1/providers/Microsoft.Sql/servers/sqlsrv2/databases/SalesDB","name": "SalesDB","replicationState": "SEEDING","role": "Secondary"

Refer to the exhibit. An administrator wants to ensure that during a regional outage, the failover group automatically fails over without data loss if possible. What is the current configuration gap?

Network Topology
az sql mi showname mi1resource-group rg1query '{failoverGroup:failoverGrouplocation eastus -o yaml"failoverGroup": "/subscriptions/.../resourceGroups/rg1/providers/Microsoft.Sql/locations/eastus/failoverGroups/fg1","backupRedundancy": "Local"- databases:- db1name: fg1partnerServers:- id: /subscriptions/.../resourceGroups/rg1/providers/Microsoft.Sql/managedInstances/mi2location: westusreplicationRole: SecondaryreadWriteEndpoint:failoverPolicy: AutomaticfailoverWithDataLossGracePeriodMinutes: 60readOnlyEndpoint:failoverPolicy: DisabledreplicationRole: PrimaryreplicationState: Synchronized

Refer to the exhibit. An administrator tries to restore the database OrdersDB to a point in time 2025-03-14 10:00 UTC and receives error 406. What is the most likely reason?

Exhibit

Error log excerpt:
2025-03-15 14:23:45.67 Error: 406, Severity: 16, State: 0.
The database 'OrdersDB' has an automated backup frequency of 12 hours and a point-in-time restore (PITR) retention period of 7 days.
The long-term retention (LTR) policy is configured as:
- Weekly: Sunday 02:00, retention 4 weeks
- Monthly: First Sunday 02:00, retention 12 months
- Yearly: First Sunday of March 02:00, retention 3 years

Current time: 2025-03-15 14:30 (Saturday)
Last successful backup: 2025-03-15 02:00

Attempted restore to 2025-03-14 10:00 UTC failed with error 406.

Refer to the exhibit. An administrator wants to restore the primary database SalesDB to a point in time 2025-03-15T09:00:00Z. What is the impact on the geo-replication?

Network Topology
server sqlsrv1 -o tableresource-group rg1name SalesDBserver sqlsrv1az sql db showquery '{earliestRestoreTime:earliestRestorePointAzure SQL Database geo-replication status:PartnerServer PartnerDatabase ReplicationState SecondaryTypesqlsrv2 SalesDB SEEDING Geo"earliestRestoreTime": "2025-03-10T00:00:00Z","latestRestoreTime": "2025-03-15T10:00:00Z"Current time: 2025-03-15T14:00:00Z

Refer to the exhibit. An administrator is configuring geo-replication for an Azure SQL Database. The admin runs the commands and sees the output shown. What is the current status of the geo-replication link?

Network Topology
az sql db showresource-group rg1server server1name db1database db1query 'replicationLinks'replication-link-type GEO"id": "/subscriptions/.../replicationLinks/1","partnerServer": "server2","partnerDatabase": "db1","role": "Primary","partnerRole": "Secondary","replicationState": "CATCH_UP","percentComplete": 100,"isTerminationAllowed": true,"linkType": "GEO""name": "1","percentComplete": 100

Refer to the exhibit. A backup administrator checks the protection status of a VM and receives an error. What is the most likely cause?

Exhibit

{
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "workloadType": "VM",
    "containerName": "iaasvmcontainer;myVM",
    "sourceResourceId": "/subscriptions/.../resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/myVM",
    "policyId": "/subscriptions/.../backupPolicies/DefaultPolicy",
    "protectedItemType": "Microsoft.Compute/virtualMachines",
    "lastBackupStatus": "Healthy",
    "lastRecoveryPoint": "2023-03-15T10:30:00Z",
    "protectionState": "Protected"
  }
}

$ az backup protection check-vm --vm myVM
{
  "errorCode": "UserErrorVMNotFound",
  "errorMessage": "The specified virtual machine 'myVM' was not found. It may have been deleted."
}

Refer to the exhibit. An administrator configures an auto-failover group for Azure SQL Database. The primary server is in East US and the secondary in West US. What will happen if the primary region becomes unavailable?

Exhibit

{
  "properties": {
    "autoFailoverGroups": [
      {
        "name": "myAG",
        "partnerServers": ["server2"],
        "readWriteEndpoint": {
          "failoverPolicy": "Automatic",
          "failoverGracePeriodMinutes": 60
        },
        "readOnlyEndpoint": {
          "failoverPolicy": "Disabled"
        },
        "databases": ["db1", "db2"],
        "replicationState": "CATCH_UP"
      }
    ]
  },
  "location": "eastus",
  "id": "/subscriptions/.../servers/server1"
}

Refer to the exhibit. An administrator is trying to perform a point-in-time restore for a managed instance database. The output shows the state of the instance and databases. What is the most likely reason db1 shows 'Restoring' status?

Network Topology
az sql mi showresource-group rg1name mi1az sql midb listmi mi1query 'properties.state'query '[].{Name:namedatabase db1"Ready""Name": "db1","Status": "Restoring"},"Name": "db2","Status": "Online""name": "db1_20230315_1030","recoveryPointId": "123456","time": "2023-03-15T10:30:00Z"

Refer to the exhibit. An administrator configures an Azure Cache for Redis instance with zone redundancy and a replica in a different region. What is the current state of the geo-replication setup?

Exhibit

{
  "properties": {
    "availabilityZones": ["1", "2", "3"],
    "zoneRedundant": true,
    "replicas": [
      {
        "location": "East US",
        "capacity": 100,
        "status": "Provisioning"
      },
      {
        "location": "West US",
        "capacity": 100,
        "status": "Ready"
      }
    ]
  },
  "name": "cache1",
  "resourceGroup": "rg1",
  "sku": {
    "name": "Premium",
    "family": "P",
    "capacity": 2
  }
}

You administer an Azure SQL Database named SalesDB in the East US region. The business requires a secondary read-only copy in West US for disaster recovery. You need the secondary to become writable automatically if East US fails, with no application connection string changes. The solution must minimize cost. What should you configure?

You manage a SQL Server 2019 instance on an Azure Virtual Machine named SQLVM1. The instance hosts a database that must be highly available. You have configured an Always On availability group with a primary replica on SQLVM1 and a secondary replica on SQLVM2 in the same region. You need to ensure that the availability group automatically fails over to SQLVM2 if SQLVM1 becomes unresponsive. The cluster quorum is currently configured with a disk witness. What should you do?

You manage an Azure SQL Database in the East US region using the Business Critical service tier. The database is critical and must be recoverable in a different Azure region with an RPO of less than 5 minutes and an RTO of less than 1 hour. You need to configure a disaster recovery solution that meets these requirements with minimal administrative effort. What should you do?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Plan and configure high availability and disaster recovery sessions

Start a Plan and configure high availability and disaster recovery only practice session

Every question in these sessions is drawn from the Plan and configure high availability and disaster recovery domain — nothing else.

Related practice questions

Related DP-300 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the DP-300 exam test about Plan and configure high availability and disaster recovery?
Be able to choose and configure the right HA/DR feature for Azure SQL Database, Managed Instance, and SQL Server on Azure VMs, including failover groups, geo-replication, and Always On. The most important thing is matching the feature to the required RPO, RTO, and failover automation.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Plan and configure high availability and disaster recovery questions in a focused session?
Yes — the session launcher on this page draws every question from the Plan and configure high availability and disaster recovery domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other DP-300 topics?
Use the topic links above to move to related areas, or go back to the DP-300 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the DP-300 exam covers. They are not copied from any real exam or dump site.