Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Microsoft Administering Microsoft Azure SQL Solutions DP-300 Exam Questions

Last updated: · 15 practice questions with answers and explanations

Page: 1 / 29 Total 422 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Plan and implement data platform resources

Skill tested: Select an Azure SQL deployment model that meets workload compatibility and operating constraints.

A regional retailer plans to move a 4-TB SQL Server database to Azure. The application depends on SQL Server Agent jobs, cross-database queries, and a third-party component that requires operating-system access. The database experiences predictable monthly peaks, and the team wants to control SQL Server configuration while reducing hardware maintenance. A full application rewrite is out of scope, and the company can accept responsibility for patching the guest operating system. Which deployment is the best fit?

Correct Answer: A. SQL Server on an Azure virtual machine, because it preserves instance-level and operating-system control
Explanation:

SQL Server on an Azure virtual machine is the appropriate choice when the workload requires guest operating-system access and full control over the SQL Server instance. It also supports SQL Server Agent and familiar instance-level features, allowing migration without a substantial redesign. Managed Instance provides broad SQL Server compatibility and instance-level features, but it does not expose the guest operating system for arbitrary third-party installation. Azure SQL Database does not provide the required operating-system or full instance control, and an elastic pool does not restore those capabilities.

Question 2

New Multiple answers

Topic: Plan and implement data platform resources

Skill tested: Choose Azure SQL deployment architecture based on database count, isolation, and utilization patterns.

A software company operates 60 small customer databases on Azure SQL Database. Each database has short bursts of activity at different times, but most remain lightly used. Customers require separate databases and independent backup/restore operations; they do not require dedicated compute for every database. The company wants to reduce compute cost without consolidating customer data into one database, and it wants to retain the ability to move an unusually busy customer to a different resource later. Which two actions best meet these requirements? Select TWO.

Correct Answer: B. Use an elastic pool and select a service tier that supports the required database count and workload limits; E. Place the databases in an elastic pool sized for their combined workload and monitor pool utilization
Explanation:

An elastic pool shares compute among multiple Azure SQL Database databases, which is cost-effective when demand is intermittent and peaks do not coincide. Each database remains a separate database with its own backup and restore operations. Pool sizing and the chosen service tier must still satisfy aggregate resource use, per-database limits, and supported database counts. Consolidating schemas changes the isolation and recovery model; per-database serverless provisioning does not share capacity in the same way. A virtual machine adds operational overhead and is not needed for these database requirements.

Question 3

New Single answer

Topic: Plan and implement data platform resources

Skill tested: Evaluate Azure SQL Database service tiers against latency, availability, and cost requirements.

A payment processor is choosing a service tier for an Azure SQL Database. Its transaction volume varies throughout the day, and short periods of heavy write activity cause latency spikes. The business requires high availability within the region and wants to avoid paying for a permanently oversized compute allocation. It does not require readable secondary replicas, and the database size is within the supported range of both candidate tiers. Which approach should the administrator take first?

Correct Answer: B. Evaluate provisioned General Purpose compute sizing against workload metrics, then test an appropriate higher compute allocation
Explanation:

The correct first step is to use observed workload metrics to select and test a suitable General Purpose compute allocation, rather than assume that a different tier automatically resolves latency. A provisioned allocation can be sized for the measured write demand, while scaling can be adjusted as workload patterns become clearer. Hyperscale primarily addresses large database scale and rapid growth, not a guaranteed write-latency improvement. Serverless may have scaling and resume behavior that is unsuitable for latency-sensitive bursts, especially with a zero minimum. Business Critical provides different performance and availability characteristics but is not universally the lowest-cost tier.

Question 4

New Single answer

Topic: Plan and implement data platform resources

Skill tested: Choose a migration approach that balances downtime, compatibility assessment, and Azure hosting requirements.

A manufacturer must migrate a SQL Server database to Azure with a maintenance window of no more than 20 minutes. The database uses a feature available in Azure SQL Managed Instance but not in Azure SQL Database. The company can establish network connectivity from its data center to Azure and wants to minimize application changes. The source remains online during most of the migration, and the team is prepared to perform a final cutover after synchronization. Which plan is most appropriate?

Correct Answer: C. Assess compatibility for Managed Instance, use an online migration method that keeps data synchronized, and cut over during the window
Explanation:

Azure SQL Managed Instance fits the stated feature compatibility and minimizes application changes relative to Azure SQL Database. A compatibility assessment should identify potential blockers, and an online migration approach can keep the target synchronized while the source remains available; only the final cutover needs the short maintenance window. A BACPAC export/import is generally an offline movement approach and targets the wrong service in this scenario. Restoring to a virtual machine may be viable in other cases, but it ignores the stated preference for a managed platform and fails to address the compatibility and migration plan. An elastic pool does not provide Managed Instance features.

Question 5

New Single answer

Topic: Implement a secure environment

Skill tested: Configure Microsoft Entra authentication for Azure SQL while preserving a controlled administrator recovery path.

A company is configuring a new Azure SQL Database server. Administrators must authenticate with Microsoft Entra ID, including multifactor authentication, and database access must be managed through Entra groups. The company also needs a documented recovery method if Entra-based administration is temporarily unavailable. Which configuration best meets these requirements without making SQL authentication the normal sign-in method?

Correct Answer: B. Set a Microsoft Entra administrator, use Entra group-based database users, and retain the SQL server administrator credential in a controlled break-glass vault
Explanation:

Setting a Microsoft Entra administrator enables Entra authentication and administration for Azure SQL, while Entra groups provide manageable, auditable membership for database permissions. Retaining the SQL server administrator credential in a tightly controlled break-glass vault provides a recovery path if Entra administration is unavailable; it need not be used for routine access. SQL logins do not provide Entra MFA. A shared Entra identity weakens accountability and grants excessive access, while eliminating every recovery credential removes a practical administrative fallback.

Question 6

New Multiple answers

Topic: Implement a secure environment

Skill tested: Grant an application identity least-privilege access to Azure SQL objects.

A payroll application running in Azure App Service must connect to Azure SQL Database without storing passwords or connection secrets. It only needs to execute two stored procedures in the `PayrollApi` schema and must not read tables directly. The operations team wants to grant and revoke access through identity membership rather than maintain a SQL login. Which two steps should the administrator take? Select TWO.

Correct Answer: A. Grant the database user `EXECUTE` permission on the required procedures, or on the narrowly scoped schema if appropriate; D. Enable a system-assigned managed identity for the App Service and create a corresponding contained database user
Explanation:

A system-assigned managed identity avoids a stored password, and a contained database user maps that identity to a database principal. Granting `EXECUTE` only on the required stored procedures provides the stated access while preventing direct table reads, provided the procedures are designed and permissioned appropriately. Membership in `db_owner` is far broader than necessary. A stored password defeats the passwordless identity requirement, and broad table `SELECT` permissions violate the requirement that the application not read tables directly.

Question 7

New Single answer

Topic: Implement a secure environment

Skill tested: Apply database role membership and object permissions to enforce least privilege.

A reporting analyst needs read-only access to three views in an Azure SQL Database. The analyst must not read other tables, modify data, or create database objects. Several analysts will need the same access, and access should be removable centrally. What is the most appropriate implementation?

Correct Answer: B. Create a database role, grant it `SELECT` on the three views, and add the analysts to that role
Explanation:

A custom database role with `SELECT` on only the specified views matches the narrow access requirement and makes onboarding and revocation manageable through role membership. The analysts receive no table-wide read permission or object-creation rights by default. `db_datareader` grants access to all user tables and views, which is excessive. `db_owner` and database-level `CONTROL` grant broad authority and cannot be made least-privilege merely by adding selected denials.

Question 8

New Single answer

Topic: Implement a secure environment

Skill tested: Select an Azure SQL auditing configuration that records database activity for centralized retention.

A financial services team must retain database audit events centrally for at least one year and analyze them alongside logs from other Azure resources. Database administrators must not be able to erase the centrally retained audit history by changing database settings. Which approach best meets the requirement?

Correct Answer: B. Enable Azure SQL auditing to write to a protected Azure Storage account, and configure the required retention and access controls there
Explanation:

Azure SQL auditing can write audit records to Azure Storage, where access controls and retention policies can protect the retained data from routine database administrators. Diagnostic settings can also route supported audit data to centralized monitoring destinations for analysis alongside other resource logs. A user table controlled by database administrators is not an independently protected audit repository. Query Store is for query performance history, not a complete security audit trail, and error messages do not record all successful activity.

Question 9

New Multiple answers

Topic: Implement a secure environment

Skill tested: Configure identity-based database access and prevent unnecessary exposure of Azure SQL endpoints.

A web API hosted on an Azure virtual machine must access Azure SQL Database. The organization requires passwordless service authentication and wants to reduce exposure to public network access. The database administrator must provide connectivity only from the API subnet and must not grant the application interactive administrative privileges. Which two actions should be implemented? Select TWO.

Correct Answer: A. Assign a managed identity to the virtual machine and create a database user for that identity; D. Configure a virtual network rule or private endpoint path for the API subnet, with public access restricted as required
Explanation:

A managed identity provides passwordless authentication, and a corresponding database user can receive only the application permissions it needs. Network access should be limited using the appropriate Azure SQL networking option, such as a virtual network rule where supported or a private endpoint with the required DNS and routing, while public access is restricted according to policy. `db_owner` is excessive and is not required to connect. Allowing all Azure services broadens exposure, and a VM administrator account is not a suitable SQL identity.

Question 10

New Single answer

Topic: Monitor, configure, and optimize database resources

Skill tested: Use Query Store runtime history to identify and mitigate a plan-related performance regression.

After a deployment, an Azure SQL Database query that normally completes in under one second begins taking 18 seconds. Query Store shows a recent plan change for the same query, with a substantial increase in duration and logical reads. The prior plan is still present in Query Store, and there is no evidence of blocking or resource saturation. The team needs an immediate, reversible mitigation while developers investigate the query change. What should the administrator do first?

Correct Answer: D. Force the previously successful plan for the query using Query Store plan forcing
Explanation:

Query Store identifies a plan-related regression, and the known-good plan remains available. Forcing that plan is a targeted, reversible mitigation that can restore prior performance while the underlying query or statistics issue is investigated. Rebuilding every index is broad and may not address the regression; disabling Query Store would remove valuable evidence. Logical reads alone do not prove storage is undersized. Clearing the procedure cache discards plans and can produce another unpredictable plan rather than restoring the known-good one.

Question 11

New Multiple answers

Topic: Monitor, configure, and optimize database resources

Skill tested: Interpret query performance evidence and select index changes that address lookup and scan costs.

A frequently executed Azure SQL query filters on `CustomerId` and `OrderDate`, returns `OrderStatus` and `TotalAmount`, and sorts by `OrderDate`. Actual execution plans show repeated key lookups against the orders table, while Query Store shows this query accounts for a large share of logical reads. The table receives frequent inserts, so the team wants to improve reads without adding several overlapping indexes. Which two actions are the best next steps? Select TWO.

Correct Answer: B. Use Query Store and actual execution plans to validate whether the proposed index reduces reads and avoids lookups; E. Review the existing indexes and test a composite index with appropriate key columns and included output columns
Explanation:

A composite nonclustered index can support the filter and ordering pattern, while included columns can cover the returned values and avoid repeated key lookups. Existing index definitions and write overhead must be considered, especially on an insert-heavy table. Query Store and actual execution plans provide evidence to validate the change against representative workload behavior. Adding one index per column can create redundant storage and maintenance cost. Columnstore is not automatically appropriate for this transactional access pattern, and disabling statistics updates can make estimates and plans worse.

Question 12

New Single answer

Topic: Monitor, configure, and optimize database resources

Skill tested: Diagnose resource pressure by correlating Azure SQL metrics with query-level performance data.

Users report intermittent timeouts from an Azure SQL Database during a nightly import. Azure Monitor shows CPU remaining moderate, but data I/O utilization reaches its limit during the timeouts. Query Store identifies several import statements with high logical reads and long durations. The application team proposes increasing compute immediately, but the database administrator must first determine whether the workload or capacity is the primary issue. What is the most appropriate next step?

Correct Answer: A. Correlate the affected query intervals with database resource metrics and execution plans, then tune the highest-impact scans or access paths
Explanation:

High data I/O utilization combined with high logical reads points to a need to investigate the import queries' access paths and resource consumption. Correlating Query Store intervals with Azure SQL metrics and execution plans helps distinguish inefficient scans or excessive query volume from a genuine capacity ceiling. Increasing the database's maximum storage does not necessarily increase its provisioned I/O performance. Disabling Query Store removes diagnostic history, and a readable secondary does not offload writes from the primary.

Question 13

New Single answer

Topic: Monitor, configure, and optimize database resources

Skill tested: Use Query Store wait statistics and workload evidence to target a concurrency bottleneck.

A customer-facing database has acceptable average query duration but experiences periodic slowdowns when many sessions execute a reporting query. Query Store reports elevated wait time associated with data-page access for that query, and the execution plan scans a large portion of a table despite a selective predicate. CPU is not saturated, and the database tier has available headroom. Which response is the best initial optimization?

Correct Answer: A. Add or adjust an index that supports the selective predicate, then measure the impact on reads and write overhead
Explanation:

The execution plan shows an avoidable broad scan for a selective predicate, and the database has capacity headroom. An appropriate index can reduce pages read and shorten the period during which sessions contend for data access. The change should be measured because indexes add storage and write-maintenance overhead. Scaling compute is not the best initial response when the evidence points to an access-path problem. Forcing MAXDOP without plan and concurrency analysis can worsen contention, while snapshot isolation does not eliminate reads or make an unsuitable scan efficient.

Question 14

New Single answer

Topic: Configure and manage automation of tasks

Skill tested: Deploy Azure SQL resources declaratively with Bicep and verify the deployment result.

A platform team must create an Azure SQL logical server and database repeatedly for development environments. The deployment must be reproducible, parameterized, and reviewed in source control. The team wants the pipeline to detect deployment failures rather than treating a submitted template as proof that resources were created successfully. Which workflow is most appropriate?

Correct Answer: D. Define the resources in Bicep, validate and deploy the compiled ARM template through an Azure Resource Manager deployment, and inspect deployment status and operations
Explanation:

Bicep provides a declarative, source-controlled way to define Azure resources and parameters; it is compiled to an ARM template for deployment through Azure Resource Manager. A reliable pipeline validates the template, runs the deployment, and checks the deployment result and operations so that errors are surfaced. Portal-only creation is not repeatable or suitably reviewed, and exporting a template does not prove a successful deployment. T-SQL manages database objects, not Azure resource provisioning. A spreadsheet and notifications are not deployment validation.

Question 15

New Multiple answers

Topic: Configure and manage automation of tasks

Skill tested: Build repeatable deployments with parameterization, dependency ordering, and post-deployment verification.

An infrastructure pipeline deploys a logical SQL server, a database, and a diagnostic setting that sends supported database logs to a Log Analytics workspace. Deployments are run in several subscriptions and regions. Recent runs have failed because values were hard-coded and because the pipeline reported success before confirming resource provisioning. Which two improvements should the team make? Select TWO.

Correct Answer: A. Parameterize environment-specific values and use deployment scope and target subscription or resource group deliberately; B. Use explicit resource dependencies where required, and verify the deployment result plus resource provisioning state after deployment
Explanation:

Parameterization makes the deployment reusable across subscriptions and regions, while selecting the correct deployment scope ensures resources are created in the intended location. Explicit dependencies are useful when resource creation order matters, and checking the deployment operation result and resource provisioning state confirms that the resources were actually provisioned. Portal runbooks reduce repeatability. A hard-coded workspace ID is not portable across environments, and template parsing only validates syntax or structure; it does not establish successful resource creation.