exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 2 question 55 discussion

Actual exam question from Microsoft's DP-300
Question #: 55
Topic #: 2
[All DP-300 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have the on-premises networks shown in the following table.



You have an Azure subscription that contains an Azure SQL Database server named SQL1. SQL1 contains two databases named DB1 and DB2.

You need to configure access to DB1 and DB2. The solution must meet the following requirements:

• Ensure that DB1 can be accessed only by users in Branch1.
• Ensure that DB2 can be accessed only by users in Branch2.

Solution: You connect to DB1 and run the following command.

EXECUTE sp_set_firewall_rule ‘Allow db1 users’, ‘131.107.10.0’, ‘131.107.10.255’

You connect to DB2 and run the following command.

EXECUTE sp_set_database_firewall_rule ‘Allow db2 users’, ‘131.107.11.0’, ‘131.107.11.255’

Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
voodoo_sh
2 months ago
Selected Answer: B
No If there was a typo in the question and they meant "sp_set_database_firewall_rule", the answer is correct. If we assume there is no typo and they really mean "sp_set_firewall_rule" in context of DB1, it will throw an error: Msg 5001, Level 16, State 5, Procedure sp_set_firewall_rule, Line 1 [Batch Start Line 693] User must be in the master database.
upvoted 1 times
...
c80f499
3 months, 3 weeks ago
Selected Answer: B
No, the solution does not meet the goal as it uses a server-level firewall rule for DB1, which allows access to all databases. The correct approach is to use database-level firewall rules for both DB1 and DB2.
upvoted 1 times
...
voodoo_sh
5 months, 3 weeks ago
it should be "sp_set_database_firewall_rule" for DB1, not "sp_set_firewall_rule". Otherwise, answer is correct.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago