Data Store Management
An Amazon Aurora PostgreSQL application needs an approximate nearest-neighbor index that can be created before vectors are loaded, without a clustering training step. Higher memory usage is acceptable; which index type fits?
Show the answer
Correct answerD. HNSW
AWhy not this: GIN indexes support inverted lookups for values such as array elements and text tokens, not this vector search requirement.
BWhy not this: B-tree indexes support ordered scalar lookups, not approximate nearest-neighbor vector searches.
CWhy not this: IVFFlat needs existing vectors to train its clustering structure during index construction.
DWhy this is right: HNSW uses a graph without a clustering training step and trades higher memory usage for strong search performance.
HNSW builds a multilayer graph and requires no clustering training step, so it can be created before data is loaded. IVFFlat forms clusters from existing vectors and needs representative data for effective index construction.