All Questions
Database Indexing medium

In a Clustered Index (like MySQL-InnoDB Primary Key), how is data physically stored compared to a secondary index?

  1. A The index leaf nodes contain the full row data, effectively sorting the physical table storage by the Primary Key value.
  2. B The index is stored in a separate, unordered 'Heap' metadata structure that uses persistent pointers to reference the main table.
  3. C The index stores a memory-mapped pointer to the row in virtual memory, allowing for O(1) retrieval speeds for all active processes.
  4. D Clustered indexes are specialized columnar stores that prioritize high-frequency aggregations over standard row-based lookups.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions