Courseiva
Implement a secure environmenthardMultiple ChoiceObjective-mapped

DP-300 Implement a secure environment Practice Question

You are the database administrator for a company that uses Azure SQL Managed Instance. The security team has detected unusual query activity from a specific client IP address. You need to immediately block all connections from that IP address while maintaining connectivity for all other users. Which solution should you implement?

⚠ Common exam trap

It's easy for candidates to confuse Azure SQL Database's server-level firewall rules with Managed Instance's instance-level firewall rules, or incorrectly assume that NSG modifications are the correct way to block a single client IP without understanding that NSGs affect the entire 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

Add a firewall rule at the managed instance level that denies the specific IP address.

Azure SQL Managed Instance supports instance-level firewall rules that can explicitly deny a specific client IP address while allowing all other traffic. Unlike Azure SQL Database, which uses server-level firewall rules, Managed Instance firewall rules are configured directly on the instance and can include both allow and deny entries, enabling granular access control without affecting other users.

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 managed instance and disable public network access.

    Why it's wrong here

    Private endpoint removes public access entirely, not selectively block one IP.

  • Add a server-level firewall rule at the logical server level to deny the IP address.

    Why it's wrong here

    SQL Managed Instance does not have a logical server; firewall rules are at the instance level.

  • Add a firewall rule at the managed instance level that denies the specific IP address.

    Why this is correct

    Instance-level firewall rules can allow or deny specific IP addresses.

  • Modify the network security group (NSG) associated with the managed instance's subnet to deny the IP address.

    Why it's wrong here

    NSG denies all traffic from that IP to the subnet, affecting all resources, not just the managed instance.

Go deeper

Related to this question

About these practice questions

This DP-300 question is part of Courseiva's 906-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.