exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 2 question 3 discussion

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

DRAG DROP -
You have a new Azure SQL database named DB1 on an Azure SQL server named AzSQL1.
The only user who was created is the server administrator.
You need to create a contained database user in DB1 who will use Azure Active Directory (Azure AD) for authentication.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: Set up the Active Directory Admin for AzSQL1.
Step 2: Connect to DB1 by using the server administrator.
Sign into your managed instance with an Azure AD login granted with the sysadmin role.
Step 3: Create a user by using the FROM EXTERNAL PROVIDER clause.
FROM EXTERNAL PROVIDER is available for creating server-level Azure AD logins in SQL Database managed instance. Azure AD logins allow database-level
Azure AD principals to be mapped to server-level Azure AD logins. To create an Azure AD user from an Azure AD login use the following syntax:
CREATE USER [AAD_principal] FROM LOGIN [Azure AD login]
Reference:
https://docs.microsoft.com/en-us/sql/t-sql/statements/create-user-transact-sql

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
Jas_dandiwal
Highly Voted 2 years, 7 months ago
answer is correct, you have to connect using AD otherwise you will see this error. Principal '[email protected]' could not be created. Only connections established with Active Directory accounts can create other Active Directory users.
upvoted 22 times
...
Anshul08
Highly Voted 2 years, 11 months ago
Step 2 is having contradiction in answer and explanation. How should we connect to DB1? 'using server administrator or Azure AD authentication"?
upvoted 6 times
mrsmjparker
2 years, 11 months ago
Looks like the picture has more detail on this than the actual answers below. It is using Azure AD Authentication in the picture.
upvoted 1 times
...
...
Daemon69
Most Recent 9 months, 3 weeks ago
I will go with the explanation
upvoted 1 times
...
valente_sven1
2 years ago
I would go with provided answers.
upvoted 3 times
...
erssiws
2 years, 2 months ago
The answers are correct: https://docs.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-configure?tabs=azure-powershell#azure-ad-admin-with-a-server-in-sql-database
upvoted 2 times
...
mark9999
2 years, 6 months ago
You first set the AD Admin account, then use that AD Admin account to connect to DB1 so there's a typo in the word explanation
upvoted 2 times
...
mosbbs
2 years, 7 months ago
https://medium.com/@letienthanh0212/setup-azure-sql-server-to-useazure-active-directory-option-b90dccd9e277
upvoted 4 times
...
Manish3658
2 years, 8 months ago
Answers are correct
upvoted 2 times
...
yuck
2 years, 8 months ago
https://docs.microsoft.com/en-gb/learn/paths/implement-secure-environment-database-service/
upvoted 2 times
...
kapt
2 years, 8 months ago
What is the right answer?
upvoted 1 times
...
BurhanUddin
2 years, 9 months ago
What is the answer for 2nd option?
upvoted 1 times
...
Luke97
2 years, 10 months ago
A contained database user does not have a login in the master database, and maps to an identity in Azure AD that is associated with the database. The Azure AD identity can be either an individual user account or a group.
upvoted 5 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