Courseiva

DP-300 Implement a secure environment Practice Question

Which TWO actions should you take to implement a secure environment for Azure SQL Database that meets the principle of least privilege?

⚠ Common exam trap

Test-takers frequently confuse server-level logins with contained database users, assuming that server-level logins are required for all Azure SQL Database scenarios, when in fact contained users with Microsoft Entra ID authentication provide a more secure, least-privilege-compliant alternative.

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

✓

Assign database roles instead of individual permissions.

Assigning database roles instead of individual permissions (Option A) aligns with the principle of least privilege by grouping necessary permissions into predefined roles, reducing the risk of over-privileging and simplifying permission management. Contained database users with Microsoft Entra ID authentication (Option C) eliminate the dependency on server-level logins, allowing authentication at the database level and enabling fine-grained access control without granting server-wide privileges.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    Assign database roles instead of individual permissions.

    Why this is correct

    Database roles bundle permissions, so members inherit only what the role grants rather than accumulating broad individual grants. This directly satisfies least privilege by keeping each principal's effective permissions minimal and auditable within Azure SQL Database.

  • ✗

    Enable all database features for maximum functionality.

    Why it's wrong here

    Enabling every database feature widens the attack surface and grants capabilities beyond each user's task, contradicting least privilege. Least privilege requires granting only the specific permissions each identity needs. Enabling all features would suit a disposable development instance, never a hardened production database.

  • ✓

    Use contained database users with Microsoft Entra ID authentication.

    Why this is correct

    Contained database users with Microsoft Entra ID authentication live inside the database, so no server-level login is required. This satisfies least privilege by granting access scoped to that database alone, avoiding broad server logins and eliminating credential sprawl, since authentication is centralised and password management shifts to Entra ID.

  • ✗

    Use server-level logins for all users.

    Why it's wrong here

    Server-level logins grant access across every database on the logical server, exceeding the permissions each user requires and violating least privilege. Contained database users scoped to one database limit that reach. Server-level logins would be correct for administrators who genuinely need server-wide access.

  • ✗

    Grant the db_owner role to all application users.

    Why it's wrong here

    db_owner confers full control over the database, including schema changes and permission grants, so every application user could escalate privileges. Least privilege instead assigns narrowly scoped roles or contained database users. Granting db_owner would be correct only for a single trusted administrator account.

Go deeper

Related to this question

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 →

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.