0% found this document useful (0 votes)
128 views

SQL Server Interview Questions and Answers - (31-40)

This document contains 40 multiple choice questions related to SQL Server concepts like Always On Availability Groups, replication, database mirroring, and log shipping. Some key points covered in the questions include: - You can create multiple listeners for a single Always On Availability Group. - Database level health detection became available in SQL Server 2016. - The db_owner and sysadmin roles can create publications for replication. - Replication and Always On Availability Groups can be configured for the same database but with some limitations. - A snapshot replication does not require the table to have a primary key. - You can put a database in read-only mode when it is offline by using

Uploaded by

L Janardana
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
128 views

SQL Server Interview Questions and Answers - (31-40)

This document contains 40 multiple choice questions related to SQL Server concepts like Always On Availability Groups, replication, database mirroring, and log shipping. Some key points covered in the questions include: - You can create multiple listeners for a single Always On Availability Group. - Database level health detection became available in SQL Server 2016. - The db_owner and sysadmin roles can create publications for replication. - Replication and Always On Availability Groups can be configured for the same database but with some limitations. - A snapshot replication does not require the table to have a primary key. - You can put a database in read-only mode when it is offline by using

Uploaded by

L Janardana
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

SQL Server Interview Questions-(31-40)

31. Can we create multiple listeners for the single Always On Availability Group?
a. Yes
b. No
32. From which SQL Server version the database level health detection is available in
Always On?
a. 2014
b. 2016
c. 2017
d. 2019
33. Which permission is needed to create a Publication in SQL Server Replication?
a. Db_Datawriter
b. Security Admin
c. Process Admin
d. Db_Owner
34. Can we configure SQL Server Replication for the database which is part of
Availability Group?
a. Yes
b. No
35. To configure Snapshot replication a table must contain a primary key. True or
false?
a. True
b. False
36. Can we put the database in read_only mode when it is offline?
a. Yes
b. No
37. To Configure SQL Server Database mirroring the partner and the Witness must
be running on the same edition. True or false?
a. True
b. False
38. We can configure Database mirroring for the database which is in Bulk-logged
recovery model. True or false?
a. True
b. False
39. A mirrored database can be renamed during a database mirroring session. True
or false?
a. True
b. False
40. We can't configure both log shipping and database mirroring on the same
database. True or false?
a. True
b. False
Answers
31. Can we create multiple listeners for the single Always On Availability Group?
a. Yes
b. No
A. We can create multiple listeners for Single AG Group but we can able to configure one listener
though Management Studio.

 If you want to configure additional listener you have to do it using failover cluster
manager.
 You will be getting the below error if you are trying to configure other than one listener
through Management studio

 But still you can add another listener using failover cluster manager

 You can click on Add resource and select Client Access Point
 Provide a unique listener name

--Source: MS SQL DBA Tech Support YouTube Channel


32. From which SQL Server version the database level health detection is available in Always
On?
a. 2014
b. 2016
c. 2017
d. 2019
A. Database level health detection is available from SQL Server 2016.

 An availability group fails over at the availability-replica level.


 Unless Database Level Health Detection is configured, issues at the database level,
such as a database becoming suspect due to the loss of a data file, deletion of a database,
or corruption of a transaction log, do not cause an availability group to failover

33. Which permission is needed to create a Publication in SQL Server Replication?


a. Db_Datawriter
b. Security Admin
c. Process Admin
d. Db_Owner
A. Sys Admin and db_owner can create publication.

--Source: learn.microsoft.com

34. Can we configure SQL Server Replication for the database which is part of
Availability Group?
a. Yes
b. No

A. Yes, we can configure replication and always on the same database but we have some
limitations.
 In an AlwaysOn availability group a secondary database cannot be a publisher.

 Re-publishing is not supported when replication is combined with AlwaysOn Availability


Groups.
 We can have a dedicated server (which is not part of the AG) acting as a distributor or we
can have the distributor on the subscriber (provided subscriber is not part of an AG).

35. To configure Snapshot replication a table must contain a primary key. True or
false?

a. True
b. False
A. To configure Snapshot replication it’s not a mandatory to have a primary key for the
table.
When we use snapshot replication:

 Data changes infrequently.


 Replicating small volumes of data.
 It is acceptable to have copies of data that are out of date with respect to the
Publisher for a period of time.
 A large volume of changes occurs over a short period of time.

--Source: learn.microsoft.com
36. Can we put the database in read_only mode when it is offline?
a. Yes
b. No

A. Yes, you can put the database in read_only mode when it is in offline state, but not in
GUI, we have to run the below script.
USE [master]
GO
ALTER DATABASE [Test] SET READ_ONLY WITH NO_WAIT
GO

 You can’t put the database in read_only mode in GUI, you can’t see the properties
of a database

37. To Configure SQL Server Database mirroring the partner and the Witness must
be running on the same edition. True or false?
a. True
b. False
A. To configure Database mirroring both Principle and Mirror server editions should be
same but Witness must not be the same edition.

 Witness server can run on any edition of SQL Server that supports database
mirroring.

38. We can configure Database mirroring for the database which is in Bulk-logged
recovery model. True or false?
a. True
b. False
A. The database must be in Full recovery model and we can not include system
databases in mirroring.

39. A mirrored database can be renamed during a database mirroring session. True
or false?
a. True
b. False
A. A mirrored database can not be renamed during a database mirroring session.
40. We can't configure both log shipping and database mirroring on the same
database. True or false?
a. True
b. False

A. Yes, we can configure log shipping and mirroring on the same database but there are
some limitations.

You might also like