Courseiva

DP-300 Implement a secure environment Practice Question

You are configuring Azure SQL Database firewall rules. You need to allow a team of developers to connect from their office IP range (192.168.1.0/24) to a specific database. The developers should not be able to access other databases on the same logical server. What should you do?

⚠ Common exam trap

A common mix-up: candidates assume server-level firewall rules are sufficient for all scenarios, but the DP-300 exam tests the distinction that database-level rules are required when you need to restrict access to a specific database on a logical server.

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

✓

Add a database-level firewall rule for the IP range 192.168.1.0/24.

Database-level firewall rules in Azure SQL Database allow you to restrict access to a specific database on a logical server, rather than the entire server. By adding a rule for the IP range 192.168.1.0/24 at the database level, the developers can connect only to that database, and they will be blocked from accessing other databases on the same server. This is the correct approach because server-level rules would grant access to all databases, which violates the requirement.

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 private endpoint for the database.

    Why it's wrong here

    A private endpoint grants network access to the whole logical server, not a single database, so it cannot restrict the developers to one database. It is tempting because private endpoints give secure private connectivity, and would be correct if the requirement were private access to the server rather than per-database scoping.

  • ✗

    Add a server-level firewall rule for the IP range 192.168.1.0/24.

    Why it's wrong here

    Server-level firewall rules apply to every database on the logical server, so the developers could reach the others, breaching the requirement. It is tempting because server-level rules are the quickest way to admit an IP range, and would be correct if access to all databases on that server were intended.

  • ✓

    Add a database-level firewall rule for the IP range 192.168.1.0/24.

    Why this is correct

    Database-level firewall rules apply only to the specified database, not the whole logical server. A server-level rule would grant the developers access to every database on that server, breaching the isolation requirement. Scoping the rule to 192.168.1.0/24 at database level satisfies the constraint that other databases remain unreachable.

  • ✗

    Configure a virtual network service endpoint for the server.

    Why it's wrong here

    A virtual network service endpoint permits traffic from the subnet to the entire logical server, so it cannot limit the developers to one database. It is tempting because service endpoints are the standard way to allow subnet-based access, and would be correct if all databases on the server should be reachable.

Go deeper

Related to this question

About these practice questions

This DP-300 question is part of Courseiva's 574-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.