GATE / CS ARCHIVE

GATE CSE 2013 / QUESTION 15

Clustered-index definition

Database Management Systems · Indexing, Storage & Query Processing · Full GATE CSE 2013 paper

GATE 2013, Q15 1 mark · MCQ
Report issue

Indexing, Storage & Query Processing

Question 15, GATE 2013: An index is clustered if A its fields form a candidate key; B its fields include the primary key; C data records follow the same order as index data entries; D data records do not follow that order.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

A clustered index has its data records physically organized in the same order as the index’s data entries. This is about file ordering, not merely whether the indexed fields form a candidate or primary key. Hence C.

Clustering describes physical locality/order of the records relative to the index ordering. Scanning adjacent index entries can therefore correspond to nearby ordered records. Key uniqueness is a different property: an index can be clustered on a nonunique field, and a primary-key index need not determine the physical record order in every storage design. Thus C states the defining relationship, while A/B confuse clustering with key constraints and D describes the opposite relationship.

Original paper, page 4 · Answer key