Courseiva
← 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 1hardmultiple choice
Full question →

You run the query in the exhibit on an Azure SQL Database. The result shows high wait_time_ms for PAGEIOLATCH_SH waits. What does this indicate?

Exhibit

Refer to the exhibit.
SELECT 
  wait_type,
  wait_time_ms,
  waiting_tasks_count
FROM sys.dm_os_wait_stats
WHERE wait_type = 'PAGEIOLATCH_SH'
ORDER BY wait_time_ms DESC;
Question 2mediummultiple choice
Full question →

Refer to the exhibit. You are reviewing an ARM template for an Azure SQL Database. The template configures backup retention. What is the effect of this configuration?

Exhibit

Refer to the exhibit.

```json
{
  "type": "Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies",
  "apiVersion": "2023-05-01-preview",
  "name": "Default",
  "properties": {
    "retentionDays": 7,
    "diffBackupIntervalInHours": 12
  }
}
```
Question 3easymultiple 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 4hardmultiple choice
Full question →

You are reviewing a JSON configuration for an Azure SQL Database. The exhibit shows the database properties. Which statement about this database is correct?

Exhibit

Refer to the exhibit.

{
  "properties": {
    "readScale": "Enabled",
    "requestedServiceObjectiveName": "GP_Gen5_2",
    "zoneRedundant": true,
    "highAvailabilityReplicaCount": 0,
    "backupStorageRedundancy": "Geo",
    "minCapacity": 0.5
  }
}
Question 5mediummultiple choice
Full question →

You are analyzing the exhibit KQL query that queries Azure Diagnostics logs for Query Store runtime statistics. The query is intended to show average CPU time per hour for each database. However, the result shows no data for the last 24 hours, although Query Store is enabled on all databases. What is the most likely reason?

Exhibit

Refer to the exhibit.
```kusto
AzureDiagnostics
| where ResourceProvider == "MICROSOFT.SQL"
| where Category == "QueryStoreRuntimeStatistics"
| summarize avg(avg_cpu_time) by DatabaseName, bin(TimeGenerated, 1h)
| render timechart
```
Question 6hardmultiple 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 7easymultiple choice
Full question →

You are analyzing query performance in an Azure SQL Database. The query in the exhibit returns a list of queries ordered by total_logical_reads. What does high total_logical_reads typically indicate?

Exhibit

Refer to the exhibit.
SELECT 
  plan_handle,
  execution_count,
  total_worker_time,
  total_logical_reads,
  total_elapsed_time
FROM sys.dm_exec_query_stats
ORDER BY total_logical_reads DESC;
Question 8mediummultiple choice
Full question →

You are reviewing an ARM template snippet that configures a long-term retention (LTR) policy for an Azure SQL Database. Based on the exhibit, how long will weekly backups be retained?

Exhibit

Refer to the exhibit.

```json
{
  "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
  "apiVersion": "2021-11-01",
  "properties": {
    "weeklyRetention": "P4W",
    "monthlyRetention": "P12M",
    "yearlyRetention": "P5Y",
    "weekOfYear": 16
  }
}
```
Question 9hardmultiple 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 10mediummultiple choice
Full question →

Refer to the exhibit. An Azure SQL Database is receiving Intelligent Insights degradation alerts. Which action should be taken first?

Exhibit

Azure SQL Database Intelligent Insights log:

{
  "id": "/subscriptions/.../resourceGroups/.../providers/Microsoft.Sql/servers/.../databases/.../metrics",
  "properties": {
    "startTime": "2024-05-01T10:00:00Z",
    "endTime": "2024-05-01T11:00:00Z",
    "metrics": [
      {
        "name": "cpu_percent",
        "average": 85,
        "max": 99,
        "min": 20
      },
      {
        "name": "physical_data_read_percent",
        "average": 95,
        "max": 100,
        "min": 50
      },
      {
        "name": "log_write_percent",
        "average": 10,
        "max": 15
      }
    ],
    "observations": [
      {
        "type": "Degradation",
        "subType": "ResourceLimit",
        "details": "DTU consumption reached 100% for extended period. Consider scaling up or optimizing queries."
      }
    ]
  }
}

Current database tier: Standard S2 (50 DTU)
Question 11hardmultiple choice
Full question →

You are reviewing an Azure RBAC role assignment for an Azure SQL Database. The role assignment shown in the exhibit is intended to allow a user to read data from the database. However, the user reports they cannot connect to the database. What is the most likely reason?

Exhibit

Refer to the exhibit.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "Microsoft.Sql/servers/databases/read"
      ],
      "Principal": {
        "AzureAD": "devops@contoso.com"
      },
      "Scope": "/subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/rg1/providers/Microsoft.Sql/servers/sqlsrv1/databases/db1"
    }
  ]
}
```
Question 12easymultiple choice
Full question →

Refer to the exhibit. You are configuring Azure SQL Database Transparent Data Encryption (TDE) with customer-managed keys (CMK) stored in Azure Key Vault. The deployment uses a user-assigned managed identity. However, after deployment, the TDE status shows 'Inaccessible'. What is the most likely cause?

Exhibit

{
  "identity": {
    "type": "UserAssigned",
    "userAssignedIdentities": {
      "/subscriptions/123/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mi-sql-access": {}
    }
  },
  "properties": {
    "serverKeyType": "AzureKeyVault",
    "uri": "https://kv-sql-keys.vault.azure.net/keys/sql-key/abc123",
    "serverKeyName": "sql-key"
  }
}
Question 13hardmultiple choice
Full question →

The database 'mydb' is experiencing performance issues during peak hours. Based on the exhibit, what is the most likely cause?

Exhibit

Refer to the exhibit. The following Azure CLI output shows the current configuration of an Azure SQL Database:

{
  "name": "mydb",
  "requestedServiceObjectiveName": "S3",
  "currentServiceObjectiveName": "S3",
  "maxSizeBytes": 268435456000,
  "status": "Online",
  "zoneRedundant": false,
  "readScale": "Disabled",
  "autoPauseDelay": 3600
}
Question 14easymultiple 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];
```
Question 15easymultiple choice
Full question →

You are preparing a disaster recovery runbook. You plan to use the PowerShell command shown in the exhibit to restore a database to a different region. What must be true for this command to succeed?

Exhibit

Refer to the exhibit.

```powershell
Get-AzSqlDatabaseGeoBackup -ResourceGroupName "rg1" -ServerName "sqlserver1" -DatabaseName "db1" | Restore-AzSqlDatabase -FromGeoBackup -TargetResourceGroupName "rg2" -TargetServerName "sqlserver2" -TargetDatabaseName "db1-restored"
```

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.