DP-300 Implement a secure environment Practice Question
Your company has an Azure SQL Database that is accessed by multiple applications. You need to implement a security solution that meets the following requirements: - Each application must have its own database user with specific permissions. - All authentication must use Microsoft Entra ID. - You need to be able to rotate credentials for each application without impacting other applications. - The solution must support automatic credential rotation for service principals.
What should you do?
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 Microsoft Entra ID service principal for each application, store the client secret in Azure Key Vault, and create a contained database user mapped to each service principal.
It creates a separate Microsoft Entra ID service principal for each application, stores the client secret in Azure Key Vault for automatic rotation, and creates a contained database user mapped to each service principal. This meets all requirements: per-application users, Microsoft Entra ID authentication, independent credential rotation, and support for automatic rotation via Key Vault. Option A is incorrect because managed identities are tied to specific Azure resources (e.g., VMs, App Services) and cannot be used for all applications (e.g., on-premises). Additionally, they do not provide a separate credential that can be rotated independently for each application. Option B is incorrect because a single service principal would share the same identity across all applications, preventing individual permissions and making credential rotation affect all applications. Option C is incorrect because SQL logins do not use Microsoft Entra ID authentication.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use managed identities for each Azure resource and assign permissions to the database.
Why it's wrong here
Managed identities are tied to Azure resources; not all applications may be Azure-hosted.
- ✗
Create a single Microsoft Entra ID service principal for all applications and assign different database roles.
Why it's wrong here
A single service principal cannot differentiate permissions per application.
- ✗
Create SQL logins and users for each application with strong passwords, and configure password rotation policies.
Why it's wrong here
SQL authentication does not use Microsoft Entra ID.
- ✓
Create a Microsoft Entra ID service principal for each application, store the client secret in Azure Key Vault, and create a contained database user mapped to each service principal.
Why this is correct
This provides per-application identity, supports credential rotation, and uses Entra ID authentication.
Go deeper
Related to this question
Learn chapter
Overview of Azure Data Platform Options
Key term
Azure SQL Authentication
Azure SQL Authentication is the process of verifying a user's identity to access an Azure SQL database using either a username and password (SQL Authentication) or a Microsoft Entra ID (formerly Azure AD) identity.
Key term
Azure SQL Performance Tuning
Azure SQL Performance Tuning is the process of optimizing the speed and efficiency of queries and database operations in Microsoft Azure SQL Database or SQL Managed Instance to reduce latency and improve throughput.
About these practice questions
One of 906 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 by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.