Back to Microsoft Azure Database Administrator Associate DP-300 questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise Microsoft Azure Database Administrator Associate DP-300 practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

15
scenario questions
DP-300
exam code
Microsoft
vendor

Scenario guide

How to approach refer to the exhibit practice questions

Practise exhibit-style questions that ask you to read a topology, table, command output or diagram before choosing the best answer.

Quick answer

Exhibit-style questions test whether you can read a topology, command output, diagram or table before choosing the best answer.

How to extract the relevant detail from an exhibit.

How topology, command output or routing information affects the answer.

How to avoid answering from memory before reading the evidence.

How to map the exhibit back to the exam objective.

Related practice questions

Related DP-300 topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1mediummultiple choice
Full question →

Refer to the exhibit. A DBA is creating an Azure SQL Managed Instance using the ARM template snippet shown. The DBA needs to ensure the instance can survive a regional outage without data loss. What change should be made to the template?

Exhibit

Refer to the exhibit.

Exhibit:
```
{
    "properties": {
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": 214748364800,
        "sku": {
            "name": "GP_Gen5_4",
            "tier": "GeneralPurpose",
            "capacity": 4
        },
        "storageAccountType": "GRS",
        "zoneRedundant": false
    },
    "location": "eastus"
}
```
Question 2easymultiple choice
Full question →

You are reviewing an Azure SQL Database automated backup retention policy. The exhibit shows the current configuration. You need to ensure that the database can be restored to a point in time within the last 7 days at a granularity of 1 minute. Which of the following is a limitation of the current configuration?

Exhibit

Refer to the exhibit.
```json
{
  "properties": {
    "description": "Automated backup retention policy",
    "policyType": "Default",
    "retentionDays": 35,
    "backupIntervalInHours": 12,
    "geoRedundantBackup": "Enabled"
  }
}
```
Question 3hardmultiple choice
Full question →

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 4hardmultiple choice
Full question →

Refer to the exhibit. An Azure SQL Database administrator sees the error in the SQL Server error log. The database is in the General Purpose tier with 100 GB of storage. Which action should the DBA take to resolve the issue?

Exhibit

Refer to the exhibit.

Exhibit:
```
Event ID: 4140
Severity: 16
Message: Could not allocate space for object 'sys.sysrscols' in database 'mydb' because the 'PRIMARY' filegroup is full.
```
Question 5hardmultiple choice
Full question →

Refer to the exhibit. An Azure SQL Database is experiencing performance degradation. Based on the Extended Events and wait statistics, which is the most likely root cause?

Exhibit

Extended Events session trace:

name: system_health
session_id: 5
total_events: 12450
event_name: sql_statement_completed
cpu_time: 2500 ms
logical_reads: 45000
duration: 3000 ms

name: system_health
session_id: 5
total_events: 12451
event_name: sql_statement_completed
cpu_time: 3200 ms
logical_reads: 62000
duration: 4000 ms

Wait statistics from sys.dm_os_wait_stats:

wait_type: PAGEIOLATCH_SH
waiting_tasks_count: 500000
wait_time_ms: 120000

wait_type: LCK_M_S
waiting_tasks_count: 200
wait_time_ms: 500
Question 6hardmultiple choice
Full question →

Refer to the exhibit. An Azure SQL Database in the Standard tier (S2: 50 DTU) is consistently showing high DTU consumption. Which action would most effectively reduce DTU usage?

Exhibit

Azure Monitor metric for Azure SQL Database:

Metric: dtu_consumption_percent
Time range: Past hour
Average: 95%
Max: 100%
Min: 30%

Metric: cpu_percent
Average: 80%
Max: 95%

Metric: physical_data_read_percent
Average: 90%
Max: 100%

Metric: log_write_percent
Average: 20%

Query Store top resource consumers:

Query ID: 1234
Execution count: 5000
Total logical reads: 2.5 million
Total duration: 10,000 ms

Query ID: 5678
Execution count: 100
Total logical reads: 50,000
Total duration: 500 ms
Question 7hardmultiple choice
Full question →

Refer to the exhibit. The SalesDB database is experiencing log space full errors. Based on the exhibit, what is the most likely reason?

Exhibit

Azure CLI output from 'az sql db list-editions -o table':

Edition       | SLO        | DTU | MaxStorageGB
GeneralPurpose | GP_Gen5_2  | 100 | 512
GeneralPurpose | GP_Gen5_4  | 200 | 512
GeneralPurpose | GP_Gen5_8  | 400 | 1024
BusinessCritical | BC_Gen5_2 | 100 | 512
BusinessCritical | BC_Gen5_4 | 200 | 512

Current database properties:

Name: SalesDB
Edition: GeneralPurpose
ServiceObjective: GP_Gen5_2
Storage used: 480 GB
Max storage: 512 GB

Query Store shows:

Total log write rate: 5 MB/s
Log IO percentage: 80%

sys.dm_db_log_space_usage:

Total log space: 100 GB
Used log space: 95 GB
Question 8hardmultiple choice
Full question →

Refer to the exhibit. An automatic tuning recommendation to force the last good plan is active. What should the database administrator do next?

Exhibit

Azure SQL Database automatic tuning recommendations:

Recommendation ID: 1
Type: CREATE_INDEX
Reason: Improve query performance
Score: 80
State: Active
Impacted queries: 3

Recommendation ID: 2
Type: DROP_INDEX
Reason: Index not used
Score: 90
State: Pending verification
Impacted queries: 0

Recommendation ID: 3
Type: FORCE_LAST_GOOD_PLAN
Reason: Regression detected
Score: 100
State: Active
Impacted queries: 1

Current query performance metrics for impacted query of recommendation 3:

Before plan change: avg CPU 500 ms, avg duration 1000 ms
After plan change: avg CPU 1000 ms, avg duration 2000 ms
Question 9mediummultiple choice
Full question →

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
Question 10hardmultiple choice
Full question →

You are reviewing the encryption protector for an Azure SQL Server as shown in the exhibit. The server hosts multiple databases. You need to ensure that the databases are encrypted using the customer-managed key from Azure Key Vault. However, you find that the databases are not using this key. What is the most likely reason?

Exhibit

Refer to the exhibit.

{
  "properties": {
    "serverKeyType": "AzureKeyVault",
    "uri": "https://myvault.vault.azure.net/keys/mykey/123456",
    "serverKeyName": "mykey",
    "kind": "azurekeyvault"
  },
  "id": "/subscriptions/sub-id/resourceGroups/rg/providers/Microsoft.Sql/servers/myserver/encryptionProtector/current",
  "name": "current",
  "type": "Microsoft.Sql/servers/encryptionProtector"
}
Question 11mediummultiple choice
Full question →

Refer to the exhibit. You are reviewing an ARM template snippet for an Azure SQL Database backup long-term retention policy. The template is deployed successfully. Which statement is true about the resulting backup retention?

Exhibit

{
  "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
  "apiVersion": "2021-02-01-preview",
  "properties": {
    "weeklyRetention": "P4W",
    "monthlyRetention": "P12M",
    "yearlyRetention": "P5Y",
    "weekOfYear": 1
  }
}
Question 12hardmultiple choice
Full question →

Refer to the exhibit. You are monitoring index fragmentation in an Azure SQL Database. You need to automate the rebuild of this index when fragmentation exceeds 50%. The rebuild must be online to minimize downtime. Which T-SQL statement should you include in your automated maintenance job?

Exhibit

Refer to the exhibit.

```
-- Output from sys.dm_db_index_physical_stats
OBJECT_NAME = 'Orders'
index_type_desc = 'CLUSTERED'
avg_fragmentation_in_percent = 65
page_count = 25000
```
Question 13hardmultiple choice
Full question →

You are deploying an Azure SQL Database using PowerShell as shown in the exhibit. The database will be used by a development team that works intermittently. You need to ensure the database is cost-effective while being available on demand. What is the purpose of the AutoPauseDelayInMinutes parameter?

Exhibit

Refer to the exhibit.

```powershell
$params = @{
    ResourceGroupName = 'rg-sql'
    ServerName = 'sqlserver1'
    DatabaseName = 'db1'
    Edition = 'GeneralPurpose'
    ComputeGeneration = 'Gen5'
    VCores = 4
    MaxVCores = 8
    MinVCores = 0.5
    AutoPauseDelayInMinutes = 60
}
New-AzSqlDatabase @params
```
Question 14easymultiple choice
Full question →

You are configuring managed backup for an Azure SQL Managed Instance as shown in the exhibit. What is the purpose of this configuration?

Exhibit

Refer to the exhibit.

```json
{
  "properties": {
    "storageAccountUri": "https://mystorageaccount.blob.core.windows.net/backups",
    "retentionDays": 30,
    "storageAccountAccessKey": "..."
  }
}
```
Question 15easymultiple choice
Full question →

Refer to the exhibit. You run these commands in an Azure SQL Database. What is the result?

Exhibit

Refer to the exhibit.

```sql
CREATE USER [user@contoso.com] FROM EXTERNAL PROVIDER;
ALTER ROLE db_datareader ADD MEMBER [user@contoso.com];
```

These DP-300 practice questions are part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style DP-300 questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.