DP-300 Plan and implement data platform resources Practice Question
You are planning to deploy an Azure SQL Managed Instance to host several databases migrated from an on-premises SQL Server. The applications use cross-database queries, SQL Server Agent jobs, and CLR assemblies. You need to ensure the instance can support these features and that the network configuration allows the instance to be reached from an on-premises network over a site-to-site VPN. What should you do first?
⚠ Common exam trap
The trap here is assuming that a managed instance can share a subnet with a VPN gateway, when it requires its own dedicated delegated subnet.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Create a virtual network with a dedicated subnet delegated to Microsoft.Sql/managedInstances and configure a site-to-site VPN gateway.
Azure SQL Managed Instance must be placed in a dedicated subnet delegated to Microsoft.Sql/managedInstances, and that subnet cannot host other resources. To connect from on-premises over a site-to-site VPN, you also need a VPN gateway in the virtual network or a peered network. The managed instance natively supports cross-database queries, SQL Server Agent, and CLR, so the network and subnet configuration is the critical first step.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create a virtual network with a gateway subnet and configure a site-to-site VPN gateway, then deploy the instance into the same subnet as the gateway.
Why it's wrong here
Azure SQL Managed Instance requires its own dedicated subnet delegated to Microsoft.Sql/managedInstances. It cannot share a subnet with a VPN gateway or any other resource. Deploying the instance into the gateway subnet would fail validation. Although the VPN gateway is needed, the instance subnet must be separate, so this option is not valid.
- ✗
Create a virtual network with a subnet delegated to Microsoft.Sql/managedInstances and configure a private endpoint for the instance.
Why it's wrong here
A private endpoint is used for Azure SQL Database and other PaaS services, but Azure SQL Managed Instance is deployed natively into a delegated subnet and does not use private endpoints for its own connectivity. The private endpoint concept does not apply to the managed instance itself. This option also does not provide the site-to-site VPN connectivity required from on-premises.
- ✗
Create a virtual network with a subnet delegated to Microsoft.Sql/managedInstances and enable public endpoint access on the instance.
Why it's wrong here
Enabling the public endpoint on a managed instance exposes it to the internet and does not provide the private on-premises connectivity required. It also does not replace the need for a site-to-site VPN or ExpressRoute. The scenario requires connectivity from an on-premises network, which is better served by a VPN gateway, and the public endpoint would add unnecessary exposure.
- ✓
Create a virtual network with a dedicated subnet delegated to Microsoft.Sql/managedInstances and configure a site-to-site VPN gateway.
Why this is correct
Azure SQL Managed Instance must be deployed into a dedicated subnet delegated to Microsoft.Sql/managedInstances, and the subnet must not contain other resources. A site-to-site VPN gateway in the same virtual network or a peered network provides connectivity from on-premises. This configuration supports cross-database queries, SQL Server Agent, and CLR because those are built-in managed instance capabilities.
Visual reference
Go deeper
Related to this question
Learn chapter
Implementing High Availability for Azure SQL Databases
Key term
Azure SQL Managed Instance
Azure SQL Managed Instance is a fully managed cloud database service that gives you nearly all the features of Microsoft SQL Server on your own server, without you having to manage the hardware or operating system.
About these practice questions
One of 574 original DP-300 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Microsoft exam blueprint
This DP-300 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DP-300 exam.