Does the solution meet the goal?

Posted by: Pdfprep Category: 70-764 Tags: , ,

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 administer a SQL Server Instance at Contoso Ltd.

A new employee named Kim Ralls must be able to read data only from the dbo.Order table in the SalesDB database.

You create a SQL login named KimRalls. You then create a SQL user account named KimRalls in SalesDB. The user account is associated with the SQL login.

You need to grant KimRalls the necessary permission or permissions. Your solution must follow the principle of least privilege.

Solution: You perform the following actions:

– Create a custom database role named OrderReader in SalesDB.

– Grant the Select permission on dbo.Order to the OrderReader role.

– Add KimRalls to the OrderReader role.

Does the solution meet the goal?
A . Yes
B . No

Answer: A

Explanation:

We set up select permission on dbo.Order table.

References: https://docs.microsoft.com/en-us/sql/t-sql/statements/grant-object-permissions-transact-sql

Leave a Reply

Your email address will not be published.