Indexes & Performance · SQL SQL

What does a 'covering index' achieve in relational database performance optimization?

Practice question from Indexes & Performance (SQL SQL), with the correct answer and a step-by-step solution.

medium · MCQ · Q-1C2215

What does a 'covering index' achieve in relational database performance optimization?

  1. A.It hides sensitive column data from unauthorized users
  2. B.It satisfies a query completely from the index itself without requiring a separate lookup to the table heapCorrect answer
  3. C.It covers all foreign key constraints across multiple tables automatically
  4. D.It prevents deadlocks during concurrent write operations

Solution

A covering index contains all the columns needed to satisfy the query (both in the WHERE clause and the SELECT list). This allows an 'Index Only Scan', avoiding random I/O heap fetches to retrieve table rows.

More from Indexes & Performance

All of Indexes & Performance

Practise more SQL

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed