A team builds a vector store for a RAG app. It needs hybrid keyword and semantic search at large scale, and has no existing PostgreSQL. Which option fits best?
- Exam domain
- Data Preparation for ML and AI28% of the exam
- Difficulty
- Medium
- In this mock
- 24 questions on this domainPractise this domain
Why the exam asks this
Task 1.1: Collect and store data.
Objective in the exam guide: Skill 1.1.7: Configure scalable vector databases for AI applications (for example, OpenSearch Service, Amazon RDS with pgvector, Amazon S3) based on specific requirements.
The vector store choice is hard to change once millions of vectors are indexed. Requirements such as hybrid search and existing databases should drive it.
Why B is the answer
Amazon OpenSearch Service with vector search
OpenSearch Service supports vector search alongside keyword search, and scales for large indexes.
Remember: Hybrid search at scale with no PostgreSQL to reuse: OpenSearch Service.
How it works
Vector databases store embeddings and find the nearest ones to a query.
Amazon OpenSearch Service supports vector search together with keyword search, which enables hybrid search at scale.
Teams already on PostgreSQL can use pgvector instead, and Bedrock Knowledge Bases can set up a store for you.
Clues in the question
The words that point to the answer, and what each one tells you.
- Hybrid keyword and semantic search
- Both search types in one store.
- No existing PostgreSQL
- No reason to choose pgvector.
In detail
- Aurora or RDS for PostgreSQL with pgvector fits teams already on PostgreSQL.
- Knowledge bases can also create and manage a vector store for you.
Side by side with look-alikes
| Store | Best when |
|---|---|
| OpenSearch Service | Hybrid search at scale |
| Aurora or RDS with pgvector | Already on PostgreSQL |
| Managed by a knowledge base | You want it set up for you |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Amazon SQSWrong
SQS is a queue.
B. Amazon OpenSearch Service with vector searchRight
Hybrid search at scale with no PostgreSQL to reuse: OpenSearch Service.
C. A CSV file of embeddings in S3, scanned on each queryWrong
Scanning a file per query does not scale and is not vector search.
D. An Amazon RDS table with no vector extensionWrongMost tempting
Without a vector extension, the table cannot run similarity search.
Why it tempts: RDS is a familiar managed database. But without a vector extension it cannot run similarity search.
In practice
- Size the cluster from vector count and dimension.
- Benchmark recall and latency on real queries.
Use case
An illustrative scenario, not a real incident.
A team indexes 50 million chunks in OpenSearch and combines keyword and vector scores for product questions.
See how it works
flowchart TD
A{"Already running PostgreSQL?"} -->|"Yes"| P["pgvector"]
A -->|"No"| B{"Need hybrid search at large scale?"}
B -->|"Yes"| O["OpenSearch Service"]
B -->|"No"| K["Store managed by a knowledge base"]How to read this chart
- At "Already running PostgreSQL?": if "Yes", go to "pgvector"; if "No", go to "Need hybrid search at large scale?".
- At "Need hybrid search at large scale?": if "Yes", go to "OpenSearch Service"; if "No", go to "Store managed by a knowledge base".