Microsoft
70-458 · Question #4
You administer a SQL Server 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…
The correct answer is E. DENY SELECT ON Object::Regions FROM UserA. See the full explanation below for the reasoning.
Question
You administer a SQL Server 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 ensure that UserA is disallowed to select from the Regions table. Which Transact-SQL statement should you use?
Options
- ADENY SELECT ON Object::Regions FROM Sales
- BDENY SELECT ON Schema::Customers FROM Sales
- CREVOKE SELECT ON Object::Regions FROM Sales
- DREVOKE SELECT ON Schema::Customers FROM Sales
- EDENY SELECT ON Object::Regions FROM UserA
- FDENY SELECT ON Schema::Customers FROM UserA
- GREVOKE SELECT ON Object::Regions FROM UserA
- HREVOKE SELECT ON Schema::Customers FROM UserA
- JEXEC sp droprolemember 'Sales', 'UserA'
How the community answered
(38 responses)- B13% (5)
- D3% (1)
- E74% (28)
- F3% (1)
- G8% (3)
Community Discussion
No community discussion yet for this question.