Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu
Microsoft Azure, expert

DP-300 practice test and mock exam

For the Administering Microsoft Azure SQL Solutions exam. Original practice questions and timed mock exams for DP-300, built from the official skills outline. Practice questions on 92 of the 94 topics listed below, with every answer explained.

Ten free questions a day, no card. Full access to every exam is one pass: $29.99 a year.

DP-300 mock exam and practice questions

Practice questions
On 92 of 94 topics
Mock exam
50 questions, 100 min
Pass mark in our mocks
70%
Kept up to date
Updated every week
Pass guarantee
With the yearly pass

DP-300 sample questions with answers explained

Three free DP-300 practice questions, each with the right answer, why it is right and the official page it comes from. For more, try 5 questions. No account needed.

Sample question 1Multiple answers

Contoso runs eight instances of SQL Server 2022 on Azure virtual machines, named SQLVM1 to SQLVM8. On every instance, the SQL Server Agent service is stopped and its startup type is Manual.

You are creating a SQL Server Agent job that runs DBCC CHECKDB. You have the following requirements:

  • Define the job once, on SQLVM1, and run it on SQLVM2 to SQLVM8.
  • Later changes to the job's schedule must be made only on SQLVM1.
  • The job must run every Saturday at 22:00, including after the virtual machines restart.

Which three actions should you perform? Each correct answer presents part of the solution.

Choose 3 answers.
Why

Configure SQLVM1 as the master and assign its multiserver job to SQLVM2 through SQLVM8 as targets. The master distributes the job and its weekly Saturday schedule, allowing schedule changes to be managed on SQLVM1. SQL Server Agent must be running on every instance and configured for automatic startup so scheduled execution can continue after restarts.

Sample question 2Single answer

You are creating an elastic job. One job step creates a table named dbo.AuditLog in every database in a target group. Some databases might already contain dbo.AuditLog, with rows written by an earlier run. The step must be safe to run more than once against the same database without errors, and it must not remove existing rows.

Which T-SQL should you use for the job step?

Choose one answer
Why

Elastic job scripts should be idempotent so that repeating a successful step preserves its intended result. Jobs can be repeated accidentally or retried after a failure. Checking for the table before creating it makes this step repeatable while preserving existing rows. Dropping or truncating the existing table would remove those rows.

  • Not correct: CREATE TABLE dbo.AuditLog (Id int NOT NULL);. There is no existence check. A second run against a database that already has the table fails, so the script is not idempotent.
  • Not correct: IF OBJECT_ID(N'dbo.AuditLog', N'U') IS NOT NULL TRUNCATE TABLE dbo.AuditLog ELSE CREATE TABLE dbo.AuditLog (Id int NOT NULL);. The script avoids an error on a repeat run, but it truncates the existing table and deletes its rows. That breaks the requirement to keep existing data.
  • Not correct: DROP TABLE IF EXISTS dbo.AuditLog; CREATE TABLE dbo.AuditLog (Id int NOT NULL);. The script drops the existing table and its rows before recreating it. That violates the requirement to preserve existing rows.
  • Correct: IF OBJECT_ID(N'dbo.AuditLog', N'U') IS NULL CREATE TABLE dbo.AuditLog (Id int NOT NULL);. The script creates the table only when it does not exist and leaves existing rows unchanged.
Sample question 3Single answer

A vendor application runs on an Azure SQL Database. The vendor requires the database to stay at compatibility level 140, and you may not change any T-SQL code. A slow query joins a table to a multi-statement table-valued function that returns tens of thousands of rows. The query uses no scalar functions and no table variables of its own. The execution plan shows that the optimizer assumed the function returns very few rows. The query does not spill to tempdb, and its memory grant is adequate.

Which intelligent query processing feature is designed to improve the plan for this query?

Choose one answer
Why

Multi-statement table-valued functions used a fixed small row estimate, which can produce a poor plan when the function returns many rows. Interleaved execution obtains the actual row count from the function before compiling the rest of the plan. Compatibility level 140 enables interleaved execution by default for eligible queries, so the feature can improve the plan without a compatibility-level or code change. The other features target memory grants, table variables, scalar functions or distinct counts.

  • Not correct: Table variable deferred compilation. Deferred compilation gives table variables an actual row count at first compilation; the poor estimate here comes from the multi-statement table-valued function, which interleaved execution handles.
  • Correct: Interleaved execution. For an eligible query, interleaved execution gets the actual row count from the multi-statement table-valued function before compiling the rest of the plan. The feature is enabled by default at compatibility level 140 or higher.
  • Not correct: Memory grant feedback. Memory grant feedback corrects over- or under-sized memory grants; the scenario states the grant is adequate and there are no spills.
  • Not correct: Scalar user-defined function inlining. Inlining transforms scalar user-defined functions into subqueries; the query calls a table-valued function, not a scalar one.
  • Not correct: Approximate count distinct. Approximate count distinct is a function the query must call to get a faster distinct count, so it needs a code change and does not address the row estimate.
Try 5 free DP-300 questions, no account

What the DP-300 exam covers

The DP-300 topics

Plan and implement data platform resources (22 topics)
Plan and deploy Azure SQL solutionsRecommend a database offering based on specific requirementsChoose an automated deployment methodIdentify use cases for Azure Arc-enabled SQL servicesIdentify use cases for Azure SQL Database in Microsoft FabricPlan for table partitioningRecommend a database sharding solutionDeploy database offerings on selected platformsDeploy hybrid SQL Server solutionsApply patches and updates for hybrid and infrastructure as a service (IaaS) deploymentConfigure resources for scale and performanceConfigure Azure SQL Database for scale and performanceConfigure Azure SQL Managed Instance for scale and performanceConfigure SQL Server on Azure Virtual Machines for scale and performanceConfigure table partitioningConfigure data compressionPlan and implement a migration strategyEvaluate requirements for a migrationEvaluate offline or online migration strategiesImplement an online migration strategyImplement an offline migration strategyImplement a migration to AzureImplement a migration between Azure SQL servicesImplement Azure SQL Managed Instance database copy and moveTroubleshoot a migration
Implement a secure environment (20 topics)
Configure database authentication and authorizationConfigure Microsoft Entra ID authentication for Azure SQL Database, Azure SQL Managed Instance, and SQL ServerConfigure authentication for SQL on Azure VMs and Azure SQL Managed InstanceConfigure security principalsCreate users from Microsoft Entra identitiesConfigure database and object-level permissions using graphical toolsApply the principle of least privilege for all securablesTroubleshoot authentication and authorization issuesManage authentication and authorization by using T-SQLImplement security for data at rest and data in transitImplement transparent data encryption (TDE)Implement object-level encryptionConfigure server- and database-level firewall rulesImplement Always EncryptedImplement Always Encrypted with secure enclavesConfigure private links and service endpointsImplement compliance controls for sensitive dataApply a data classification strategyConfigure server and database auditsImplement change data trackingImplement dynamic data maskingImplement ledger in Azure SQLImplement row-level security
Monitor, configure, and optimize database resources (23 topics)
Monitor resource activity and performancePrepare an operational performance baselineDetermine sources for performance metricsInterpret performance metricsConfigure and monitor activity and performanceMonitor by using database watcher (no questions yet)Monitor by using Extended EventsMonitor and optimize query performanceConfigure Query StoreMonitor by using Query StoreIdentify and resolve session blockingIdentify performance issues using dynamic management views (DMVs)Identify and implement index changes for queriesRecommend query construct modifications based on resource usageReview execution plansMonitor by using Intelligent Insights (no questions yet)Configure database solutions for optimal performanceImplement index maintenance tasksImplement statistics maintenance tasksImplement database integrity checksConfigure database automatic tuningConfigure server settings for performanceConfigure Resource Governor for performanceImplement database-scoped configurationConfigure compute and storage resources for scalingIdentify use cases for intelligent query processing (IQP) features
Configure and manage automation of tasks (11 topics)
Create and manage SQL Server Agent jobsManage schedules for regular maintenance jobsConfigure job alerts and notificationsTroubleshoot SQL Server Agent jobsAutomate deployment of database resourcesAutomate deployment by using Azure Resource Manager (ARM) and Bicep templatesAutomate deployment by using Azure PowerShellAutomate deployment by using Azure CLIMonitor and troubleshoot deploymentsCreate and manage database tasks in AzureCreate and configure elastic jobsCreate and configure database tasks by using automationConfigure alerts and notifications on database tasksTroubleshoot automated database tasks
Plan and configure a high availability and disaster recovery (HA/DR) environment (18 topics)
Plan an HA/DR strategy for database solutionsRecommend HA/DR strategy based on Recovery Point Objective/Recovery Time Objective (RPO/RTO) requirementsEvaluate HA/DR for hybrid deploymentsEvaluate Azure-specific HA/DR solutionsPlan a testing procedure for an HA/DR solutionPlan and perform backup and restore of a databaseRecommend a database backup and restore strategyPerform a database backup by using native toolsPerform a database restore by using native toolsPerform a database restore to a point in timeConfigure long-term backup retentionBackup and restore a database by using T-SQLBackup to and restore from cloud storageConfigure HA/DR for database solutionsConfigure active geo-replicationConfigure Always On availability groups on SQL Managed Instance and Azure virtual machinesConfigure failover groupsConfigure Always On Failover Cluster Instances on Azure virtual machinesConfigure log shippingMonitor an HA/DR solutionTroubleshoot an HA/DR solution

DP-300 practice test: frequently asked questions

Is there a free DP-300 practice test?

Yes. 5 DP-300 questions need no account, and every answer is explained after you pick it. The free plan adds ten questions a day, and there is a free DP-300 question of the day.

Are these real DP-300 exam questions?

No. The questions are our own, written from Microsoft Azure's official documentation. Each answer links the page it comes from, so you can check it.

How long is the DP-300 mock exam?

50 questions in 100 minutes, the exam time Microsoft Azure publishes. Each domain is weighted as on the real exam, and the mock is timed so you practise pace as well as content.

What score do I need to pass DP-300?

In our mocks the pass line is 70%. Microsoft Azure marks the real exam on its own scaled score, so treat a practice percentage as a guide to readiness, not a prediction. The official study guide lists the real passing score.

How current are the DP-300 questions?

The question bank is updated every week, and every answer cites an official Microsoft Learn page, so you can see where the explanation comes from.

The pass guarantee covers DP-300

Reach 90% on every skill, keep it fresh within 14 days of your exam, and still fail? Your money back or a free extra year.

Read the conditions

Start your DP-300 streak today.

Try DP-300 free