Which SQL statement or statements should you use?

Correct Answer for the Question – Which SQL statement or statements should you use? is given below

You are the lead database administrator (DBA) of a Microsoft SQL Server 2012 environment.All DBAs are members of the DOMAINJrDBAs Active Directory group.You grant DOMAINJrDBAs access to the SQL Server.You need to create a server role named SpecialDBARole that can perform the following functions: View all databases.View the server state.Assign GRANT, DENY, and REVOKE permissions on logins.You need to add DOMAINJrDBAs to the server role.You also need to provide the least level of privileges necessary. Which SQL statement or statements should you use? Choose all that apply.

CREATE SERVER ROLE [SpecialDBARole] AUTHORIZATION setupadmin;

ALTER SERVER ROLE [SpecialDBARole] ADD MEMBER [DOMAINJrDBAs];

CREATE SERVER ROLE [SpecialDBARole] AUTHORIZATION securityadmin;

GRANT VIEW DEFINITION TO [SpecialDBARole];

CREATE SERVER ROLE [SpecialDBARole] AUTHORIZATION serveradmin;

GRANT VIEW SERVER STATE, VIEW ANY DATABASE TO [SpecialDBARole];

Correct Answer

The Correct Answer for this Question is

ALTER SERVER ROLE [SpecialDBARole] ADD MEMBER [DOMAINJrDBAs];
CREATE SERVER ROLE [SpecialDBARole] AUTHORIZATION securityadmin;
GRANT VIEW SERVER STATE, VIEW ANY DATABASE TO [SpecialDBARole];

The answers for the certifications of MNCs could be very tricky to understand. that’s why we have solved and pasted these exam answers here. The Question – Which SQL statement or statements should you use? has been answered correctly and answers for various other similar questions could be found in the search box of this site.

More about these Exams

These Exam Questions and the order of these questions keep changing. but the answers are obviously same. so if you don’t find a question after another we suggest you search it in the search box and we are sure you’ll find it. you can bookmark this site for Quick access in future.

We hope you found it helpful don’t forget to leave a comment if you feel a need to correct or ask we’re always here to help.

you can find more here at mnccertified

Feel free to contact via comment or email.

Happy Learning

Cheers, Team MNCcertified

Leave a Comment