exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 2 question 7 discussion

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

You have 40 Azure SQL databases, each for a different customer. All the databases reside on the same Azure SQL Database server.
You need to ensure that each customer can only connect to and access their respective database.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Implement row-level security (RLS).
  • B. Create users in each database.
  • C. Configure the database firewall.
  • D. Configure the server firewall.
  • E. Create logins in the master database.
  • F. Implement Always Encrypted.
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

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
Mend
Highly Voted 4 years ago
The key is "only connect to and access their respective database", which means Contained DB's. In that case creating in each DB is the right choice.
upvoted 17 times
o2091
3 years, 7 months ago
its BD? Opinions??
upvoted 1 times
quermi
3 years, 6 months ago
Server firewall allows access to all logical server databases, it does not discriminate databases. Must be database firewall
upvoted 3 times
licna
2 years, 5 months ago
There is not anything like database firewall. There are only server firewall and database FW rules. Besides, what the rules would be? We'd need to know source IPs. There is no request to allow customers to connect from a specific location so they should be able to connect from anywhere. Moreover, setting DB level FW rules assumes to create server level FW rules first.
upvoted 4 times
...
...
gerard
3 years, 6 months ago
DB is not the answer it means database in this case :-) the answer is BC
upvoted 13 times
...
...
yyc585
1 year, 5 months ago
B & E Database-level firewall rules can only be configured using Transact-SQL (T-SQL) statements, and only after you've configured a server-level firewall rule. https://learn.microsoft.com/en-us/azure/azure-sql/database/secure-database-tutorial?view=azuresql#:~:text=Database%2Dlevel%20firewall%20rules%20can%20only%20be%20configured%20using%20Transact%2DSQL%20(T%2DSQL)%20statements%2C%20and%20only%20after%20you%27ve%20configured%20a%20server%2Dlevel%20firewall%20rule.
upvoted 1 times
...
...
ChikuLal
Highly Voted 4 years, 1 month ago
correct
upvoted 11 times
...
voodoo_sh
Most Recent 6 months ago
Selected Answer: BC
B,C - isolate the customers from each other using the database-level firewall rules, and also create separate contained database users for each customer in each database
upvoted 1 times
...
2f5c7cd
8 months ago
Selected Answer: BC
https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure?view=azuresql#server-level-versus-database-level-ip-firewall-rules
upvoted 1 times
...
2f5c7cd
8 months, 2 weeks ago
BC
upvoted 1 times
...
bingomutant
8 months, 3 weeks ago
I would go for BC. Not A as that implies access to the database itself. B is an obvious requirement for customer to access own database. C allows control of ip addresses or ports or ranges to restrict access to the correct user. D is for server-level control not individual databases. Not E as master database login is server-level access not individual database. Not F as encryption does not address access.
upvoted 1 times
...
Natali
10 months, 3 weeks ago
Selected Answer: BE
Logins in the master database are necessary for authenticating users at the server level. Without a login, a user cannot connect to the SQL server to access any database. Once authenticated, the login is mapped to a user within a specific database. This mapping allows the user to access only the database for which they have been granted permissions. While firewalls can restrict access to specific IP addresses, they do not inherently differentiate between different databases on the same server. Firewalls control network access rather than database-specific access.
upvoted 1 times
...
sca88
1 year, 2 months ago
Selected Answer: BE
Answer is correct. You need to create Logins in the master database and create a user for each database linked to its Login "CRETE USER user1 FOR LOGIN enterprise1" on database 1 "CREATE USER user2 FOR LOGIN enterprise2" on database2" ecc. The question doesn't talk about IP address limitation, so there is no need to configure Firewall
upvoted 2 times
...
EW3772
1 year, 5 months ago
Bing Chat Result: To ensure that each customer can only connect to and access their respective database, you should perform the following two actions: Create users in each database. This will allow you to grant permissions to specific users for accessing their respective databases 1. Configure the database firewall. This will enable you to restrict access to each database by configuring the firewall rules for each database 2. Please note that this is a high-level answer and there may be other factors to consider when implementing security for your Azure SQL databases. I recommend consulting the Azure SQL Database documentation for more information.
upvoted 1 times
...
boopytoob
1 year, 8 months ago
B. Create users in each database. E. Create logins in the master database. Under the section "Create accounts for non-administrator users" https://learn.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage?view=azuresql
upvoted 1 times
boopytoob
1 year, 8 months ago
Please ignore the parent comment. Correct answer is B&C. In addition to the above link, check this one out. https://learn.microsoft.com/en-us/sql/relational-databases/security/contained-database-users-making-your-database-portable?view=sql-server-ver16
upvoted 2 times
...
...
testdumps2017
1 year, 10 months ago
it really is coorect - you need to create logins (master db by default, there is no way around) and database users associated to those logins.
upvoted 1 times
...
fede_are
1 year, 11 months ago
Selected Answer: BC
My opinion
upvoted 1 times
...
Socket
1 year, 11 months ago
Selected Answer: BC
To ensure that each customer can only connect to and access their respective database in Azure SQL, you should perform the following two actions: B. Create users in each database: Creating separate users for each customer in their respective databases allows you to control access at the database level. Each user will have its own set of permissions and can only connect to and access their assigned database. C. Configure the database firewall: The database firewall provides an additional layer of security by controlling the incoming connections to the Azure SQL Database server. By configuring the database firewall, you can define IP address ranges or individual IP addresses that are allowed to connect to each database. This ensures that only authorized connections from specific sources can access the databases. Therefore, the correct actions to perform are B. Create users in each database and C. Configure the database firewall.
upvoted 2 times
...
uvj
1 year, 11 months ago
BE, logins mapped to the specific users in respective DBs would fulfill the requirement here.
upvoted 1 times
...
PMiao
2 years, 2 months ago
Selected Answer: BC
my answer
upvoted 2 times
...
amazonalex
2 years, 2 months ago
because you can only create and manage database-level IP firewall rules for master and user databases by using Transact-SQL statements and only after you configure the first server-level firewall. therefore i think the answer is correct
upvoted 1 times
...
KIET2131
2 years, 3 months ago
B. Create users in each database: For each database, create a user that corresponds to the login that the customer will use to connect to their database. This will allow you to control which login has access to which database. C. Configure the database firewall: Configure the database firewall to allow only connections from the IP addresses or IP address ranges that correspond to the customers who are authorized to access each database
upvoted 1 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 ...