D2: Vector Index Types & Stores
AWS Associate Data Engineer – Associate exam practice questions · 10 flashcards
Question
What is a vector index?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Vector Index Types & Stores practice questions and answers
- What is a vector index?A data structure enabling fast nearest-neighbour search over embeddings.
- What is HNSW?Hierarchical Navigable Small World graph index: fast, accurate approximate search, more memory.
- What is IVF?Inverted file index: clusters vectors and searches nearby clusters; less memory, needs training.
- Exact vs approximate nearest neighbour?Exact (k-NN brute force) is accurate but slow; ANN trades slight accuracy for speed.
- AWS vector stores?OpenSearch Service, Aurora/RDS PostgreSQL (pgvector), Neptune Analytics, DocumentDB, MemoryDB, S3 Vectors.
- pgvector index types?HNSW and IVFFlat.
- Distance metrics?Cosine similarity, Euclidean (L2), dot product.
- Amazon S3 Vectors?Low-cost durable vector storage and query in S3 vector buckets.
- Scenario: lowest-cost storage of billions of rarely queried vectors. Choice?Amazon S3 Vectors.
- Scenario: millisecond vector search with high recall. Choice?OpenSearch with HNSW (or MemoryDB).