nerdexam
Microsoft

70-432 · Question #76

You are the administrator of a SQL Server 2008 instance with a database named DB1. DB1 is available to a Windows group which is named WIIKIGO\Supervisors. A Windows user named User1 is a member of…

The correct answer is D. CREATE LOGIN "WIIKIGO\User1" FROM Windows;DENY CONNECT SQL TO "WIIKIGO\User1". See the full explanation below for the reasoning.

Question

You are the administrator of a SQL Server 2008 instance with a database named DB1. DB1 is available to a Windows group which is named WIIKIGO\Supervisors. A Windows user named User1 is a member of the WIIKIGO\Supervisors group. WIIKIGO\Supervisors is a member of the db_owner role in the DB1 database. You have to make sure that the SQL Server instance is (not?) available to User1. In the DB1 database, which Transact-SQL statement(s) should you execute?

Options

  • ADROP LOGIN "WIIKIGO\User1";
  • BEXEC dbo.sp_droprolemember 'db_owner', 'WIIKIGO\User1';
  • CEXEC dbo.sp_revokedbaccess 'WIIKIGO\User1';
  • DCREATE LOGIN "WIIKIGO\User1" FROM Windows;DENY CONNECT SQL TO "WIIKIGO\User1";

How the community answered

(27 responses)
  • A
    11% (3)
  • B
    4% (1)
  • C
    7% (2)
  • D
    78% (21)

Community Discussion

No community discussion yet for this question.

Full 70-432 Practice