SQL Server Questions and Answers – Authentication

This set of SQL Server Multiple Choice Questions & Answers (MCQs) focuses on “Authentication”.

1. Which of the following code is used to enable the sa login?
a)

ALTER LOGIN sa ENABLE ;
GO
ALTER LOGIN sa WITH PASSWORD = '<enterStrongPasswordHere>' ;
GO

b)

advertisement
advertisement
ALTER LOGIN sa DISABLE ;
GO
ALTER LOGIN sa WITH PASSWORD = '<enterStrongPasswordHere>' ;
GO

c)

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!
ALTER LOGIN sa ENABLE ;
GO
ALTER LOGIN san WITH PASSWORD = '<enterStrongPasswordHere>' ;
GO

d) None of the mentioned
View Answer

Answer: a
Explanation: SSMS can also be used to enable the sa login.

advertisement

2. Point out the correct statement.
a) SQL Server 2008 offers three authentication mode options
b) Microsoft’s best practice recommendation is that you use Windows authentication mode whenever possible
c) If you use mixed authentication mode, you should enable the DBA’s Windows account
d) None of the mentioned
View Answer

Answer: b
Explanation: Windows authentication mode allows you to centralize account administration for your entire enterprise in a single place.

3. Which of the following feature prefers SQL Server authentication mode over windows authentication?
a) Backward compatibility
b) Forward compatibility
c) Security
d) All of the mentioned
View Answer

Answer: a
Explanation: SQL Server Authentication is provided for backward compatibility. For example, if you create a single Windows 2000 group and add all necessary users to that group you will need to grant the Windows 2000 group login rights to SQL Server and access to any necessary databases.

advertisement

4. Windows Authentication Mode is not available when an instance of SQL Server is running on ____________
a) Windows 98
b) Windows 7
c) Windows 95
d) All of the mentioned
View Answer

Answer: a
Explanation: Windows Authentication Mode is also unavailable on Microsoft Windows Millennium Edition.

5. Point out the wrong statement.
a) Windows authentication mode dramatically reduces the chances of error or oversight
b) Account administration details in windows mode is stored in passive directory
c) The sa account is a well-known SQL Server account and it is often targeted by malicious users
d) All of the mentioned
View Answer

Answer: b
Explanation: Account administration details in windows authentication mode are stored in single place:Active directory.

6. Which of the following authentication modes is more secure?
a) SQL Server Authentication
b) Windows Authentication
c) Mixed Mode
d) All of the mentioned
View Answer

Answer: b
Explanation: Windows Authentication uses Kerberos security protocol, provides password policy enforcement with regard to complexity validation for strong passwords.

7. By using Windows Authentication, Windows groups can be created at the _________ level.
a) Login
b) Domain
c) User
d) None of the mentioned
View Answer

Answer: b
Explanation: Managing access from the domain level can simplify account administration.

8. ________ optional password policies are available for SQL Server logins.
a) 2
b) 3
c) 5
d) All of the mentioned
View Answer

Answer: b
Explanation: When using SQL Server Authentication, logins are created in SQL Server that are not based on Windows user accounts.

9. Which of the following is the biggest disadvantage of SQL Server Authentication mode?
a) SQL Server Authentication cannot use Kerberos security protocol
b) Allows SQL Server to support Web-based applications where users create their own identities
c) Allows SQL Server to support older applications and applications provided by third parties that require SQL Server Authentication
d) None of the mentioned
View Answer

Answer: a
Explanation: Windows Authentication uses Kerberos security protocol.

10. The Windows password policies enforced for SQL Server logins depends upon _____________________ API.
a) NetValidate
b) NetValidatePasswordPolicy
c) NetValidatePolicy
d) ValidatePasswordPolicy
View Answer

Answer: b
Explanation: NetValidatePasswordPolicy API is only available in Windows Server 2003 and later versions.

Sanfoundry Global Education & Learning Series – SQL Server.

To practice all areas of SQL Server, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.