exam questions

Exam 70-765 All Questions

View all questions & answers for the 70-765 exam

Exam 70-765 topic 3 question 46 discussion

Actual exam question from Microsoft's 70-765
Question #: 46
Topic #: 3
[All 70-765 Questions]

You administer a SQL 2012 server that contains a database named SalesDB. SalesDb contains a schema named Customers that has a table named Regions. A user named UserA is a member of a role named Sales.
UserA is granted the Select permission on the Regions table. The Sales role is granted the Select permission on the Customers schema.
You need to remove the Select permission for UserA on the Regions table. You also need to ensure that UserA can still access all the tables in the Customers schema, including the Regions table, through the Sales role permissions.
Which Transact-SQL statement should you use?

  • A. REVOKE SELECT ON Schema::Customers FROM UserA
  • B. DENY SELECT ON Object::Regions FROM UserA
  • C. EXEC sp_addrolemember 'Sales', 'UserA'
  • D. DENY SELECT ON Object::Regions FROM Sales
  • E. REVOKE SELECT ON Object::Regions FROM UserA
  • F. DENY SELECT ON Schema::Customers FROM Sales
  • G. DENY SELECT ON Schema::Customers FROM UserA
  • H. EXEC sp_droprolemember 'Sales', 'UserA'
  • I. REVOKE SELECT ON Object::Regions FROM Sales
  • J. REVOKE SELECT ON Schema::Customers FROM Sales
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️
Use REVOKE to remove the grant or deny of a permission.
References:
https://docs.microsoft.com/en-us/sql/t-sql/statements/permissions-grant-deny-revoke-azure-sql-data-warehouse-parallel-data-warehouse

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
munro1900
4 years, 5 months ago
E is correct because it asks to remove (REVOKE) the select permission, not disallow (DENY) selecting of data within that table.
upvoted 1 times
...
huzein
4 years, 6 months ago
E is correct.
upvoted 3 times
...
banane01
4 years, 7 months ago
E is WRONG D is correct! If have tested this with an example.
upvoted 1 times
Cococo
4 years, 7 months ago
there is no such thing as DENY ... FROM.., only DENY ... TO.. so, what've you tested?
upvoted 4 times
mickeyisacat615
4 years, 7 months ago
Deny.. TO.. Revoke... FROM..
upvoted 3 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 ...