Courseiva
Implement a secure environmentmediumMultiple ChoiceObjective-mapped

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

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 →

How Courseiva writes practice questions · Editorial policy

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.