nerdexam
Microsoft

70-457 · Question #155

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 J. DENY SELECT ON Object::Regions FROM Sales. 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 and the Sales role is granted the Select permission on the Customers schema. You need to ensure that the Sales role, including UserA, is disallowed to select from the Regions table. Which Transact-SQL statement should you use?

Options

  • AREVOKE SELECT OK Schema::Customers FROM UserA
  • BREVOKE SELECT ON Object::Regions FROM UserA
  • CEXEC sp_addrolemember 'Sales', 'UserA'
  • DDENY SELECT ON Schema::Customers FROM Sales
  • EEXEC sp_droprolemember 'Sales', 'UserA'
  • FREVOKE SELECT ON Schema::Customers FROM Sales
  • GDENY SELECT ON Object::Regions FROM UserA
  • HREVOKE SELECT ON Object::Regions FROM Sales
  • JDENY SELECT ON Object::Regions FROM Sales

How the community answered

(32 responses)
  • B
    9% (3)
  • F
    3% (1)
  • G
    6% (2)
  • J
    81% (26)

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice