Q1
True / FalseAn index is a database object that improves the speed of data retrieval operations on a table in SQL Server.
Indexes are used to speed up the retrieval of data by creating a quick lookup method for the database.
Q2
True / FalseClustered indexes can be created on any column of a table in SQL Server.
In SQL Server, a clustered index can only be created on columns that are not part of text, ntext, or image data types.
Q3
True / FalseA unique index in SQL Server ensures that all values in a column are different.
A unique index enforces the uniqueness of the values in the indexed column or columns.
Q4
True / FalseNon-clustered indexes affect the physical order of rows in the table.
Non-clustered indexes do not affect the physical order of rows; they create a separate structure from the data table.
Q5
True / FalseFull-text indexes are used to search for text data efficiently in SQL Server.
Full-text indexes are specifically designed to optimize searching large text fields within SQL Server databases.
Q6
True / FalseClustered indexes are automatically created for all primary keys in SQL Server.
By default, a clustered index is created for primary keys unless specified otherwise, but it's not mandatory for all primary keys.
Q7
True / FalseFiltered indexes in SQL Server help optimize queries by indexing only a subset of rows based on a condition.
Filtered indexes improve query performance by indexing only the rows that meet a specific condition, rather than the entire table.
Q8
True / FalseIndexes on columns with low cardinality are usually more effective for performance optimization.
Indexes are less effective for columns with low cardinality as most values are repeated, leading to inefficiencies in query performance.
Q9
True / FalseCreating too many indexes on a table can negatively impact the performance of data modification operations.
While indexes speed up data retrieval, they can slow down data modifications (insert, update, delete) because of the overhead required to maintain the indexes.
Q10
True / FalseThe INCLUDE clause in a non-clustered index allows additional columns to be part of the index.
The INCLUDE clause in a non-clustered index adds non-key columns to the index, which helps improve query performance by allowing more columns to be covered by the index.
Q11
True / FalseA unique index and a primary key constraint are essentially the same in SQL Server.
While both ensure uniqueness, a primary key constraint also enforces the uniqueness and non-nullability of the key, and it creates a unique clustered index by default unless specified otherwise.
Q12
True / FalseSQL Server allows multiple clustered indexes per table.
A table can have only one clustered index, as the clustered index defines the physical order of the rows in the table.
Q13
True / FalseComposite indexes are useful for optimizing queries that filter or sort based on multiple columns.
Composite indexes are designed to improve performance for queries involving multiple columns by creating an index that includes these columns in a single index structure.
Q14
True / FalseIndexes can be created on columns with data types TEXT, NTEXT, or IMAGE.
Indexes cannot be created on TEXT, NTEXT, or IMAGE data types in SQL Server. Instead, VARCHAR(MAX) or VARBINARY(MAX) should be used.
Q15
True / FalseA full-text index improves the performance of exact match queries on large text fields.
Full-text indexes are optimized for searching large text fields using complex queries, such as those involving word proximity, not just exact matches.