Which three actions should you perform in sequence?

DRAG DROP
You deploy a new Microsoft Azure SQL Database instance to support a variety of mobile applications and
public websites. You plan to create a new security principal named User1.
The principal must have access to select all current and future objects in a database named Reporting. The
activity and authentication of the database user must be limited to the Reporting database.
You need to create the new security principal.
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:

DRAG DROP
You deploy a new Microsoft Azure SQL Database instance to support a variety of mobile applications and
public websites. You plan to create a new security principal named User1.
The principal must have access to select all current and future objects in a database named Reporting. The
activity and authentication of the database user must be limited to the Reporting database.
You need to create the new security principal.
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:

Answer:

Explanation:
Step 1, Step 2:
First you need to create a login for SQL Azure, it’s syntax is as follows:
CREATE LOGIN username WITH password=’password’;
This command needs to run in master db. Only afterwards can you run commands to create a user in the
database.
Step 3:
Users are created per database and are associated with logins. You must be connected to the database in
where you want to create the user. In most cases, this is not the master database. Here is some sample
Transact-SQL that creates a user:
CREATE USER readonlyuser FROM LOGIN readonlylogin;
https://azure.microsoft.com/en-us/blog/adding-users-to-your-sql-azure-database/



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Tina

Tina

I think this answer is incorrect because the question states “The
activity and authentication of the database user must be limited to the Reporting database.” The correct answer is:
1. In SSMS, create a connection to the Reporting database on the Azure SQL Server instance.
2. Create User ‘User1′ WITH PASSWORD=’Pa$$word’;
3. EXEC sp_addrolemember ‘db_datareader’,’User1′;