nerdexam
Microsoft

70-457 · Question #154

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…

The correct answer is D. REVOKE SELECT ON Object:: Regions FROM UserA. See the full explanation below for the reasoning.

Question

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?

Options

  • ADENY SELECT ON Object::Regions FROM UserA
  • BDENY SELECT ON Schema::Customers FROM UserA
  • CEXEC sp_addrolemember 'Sales', 'UserA'
  • DREVOKE SELECT ON Object:: Regions FROM UserA
  • EREVOKE SELECT ON Object::Regions FROM Sales
  • FEXEC sp_droproiemember 'Sales', 'DserA'
  • GREVOKE SELECT ON Schema::Customers FROM UserA
  • HDENY SELECT ON Object::Regions FROM Sales
  • JREVOKE SELECT ON Schema:: Customers FROM Sales

How the community answered

(21 responses)
  • A
    5% (1)
  • C
    5% (1)
  • D
    71% (15)
  • F
    14% (3)
  • J
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice