nerdexam
Microsoft

70-457 · Question #153

70-457 Question #153: Real Exam Question with Answer & Explanation

The correct answer is H. DENY SELECT ON Schema::Customers 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 any of the tables in the Customers schema. Which Transact-SQL statement should you use?

Options

  • ADENY SELECT ON Object::Regions FROM UserA
  • BDENY SELECT ON Object::Regions FROM Sales
  • CREVOKE SELECT ON Schema::Customers FROM Sales
  • DREVOKE SELECT ON Schema::Customers FROM UserA
  • EREVOKE SELECT ON Object::Regions FROM Sales
  • FREVOKE SELECT ON Object::Regions FROM UserA
  • GDENY SELECT ON Schema::Customers FROM Sales
  • HDENY SELECT ON Schema::Customers FROM UserA
  • JEXEC sp droprolemember 'Sales', 'UserA'

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice