A team already runs Amazon Aurora PostgreSQL for its application data and wants to add semantic search without another database. What fits?
- Exam domain
- Foundation Model Integration, Data Management, and Compliance31% of the exam
- Difficulty
- Medium
- In this mock
- 28 questions on this domainPractise this domain
Why the exam asks this
Task 1.5: Design retrieval mechanisms for FM augmentation.
Objective in the exam guide: Skill 1.5.3: Deploy and configure vector search solutions (for example, by using OpenSearch Service with vector search capabilities, Amazon Aurora with the pgvector extension, Amazon Bedrock Knowledge Bases).
Every new database is another system to secure, back up and pay for. Reusing what a team already runs is often the most practical vector store choice.
Why A is the answer
Use the pgvector extension in Aurora PostgreSQL as the vector store
pgvector adds vector storage and similarity search to PostgreSQL, so the existing Aurora database can serve as the vector store.
Remember: Already on PostgreSQL? pgvector adds vector search without a new database.
How it works
pgvector is a PostgreSQL extension that stores vectors and runs similarity search.
Aurora PostgreSQL supports it, and can act as the vector store for Bedrock Knowledge Bases.
Other options include OpenSearch Service and the vector store a knowledge base sets up for you.
Clues in the question
The words that point to the answer, and what each one tells you.
- Already runs Aurora PostgreSQL
- Reuse it with an extension.
- Without another database
- Rules out adding a new store.
In detail
- Aurora PostgreSQL can serve as the vector store for a Bedrock knowledge base.
- Keeping vectors next to application data simplifies joins and operations.
Side by side with look-alikes
| Vector store | Best when |
|---|---|
| Aurora PostgreSQL with pgvector | You already run PostgreSQL |
| OpenSearch Service | You need search features at scale |
| Store created by a knowledge base | You want it fully set up for you |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Use the pgvector extension in Aurora PostgreSQL as the vector storeRight
Already on PostgreSQL? pgvector adds vector search without a new database.
B. Add a new graph database just for vectorsWrongMost tempting
A new database is exactly what the team wanted to avoid.
Why it tempts: Graph databases come up in RAG designs, so it sounds advanced. But it adds the extra database the team wants to avoid.
C. Store vectors as text in an S3 bucket and scan themWrong
Scanning text files is slow and is not vector search.
D. Put all embeddings in the system promptWrong
Embeddings are not useful to a model as prompt text, and would not fit.
In practice
- Create a vector index in pgvector so searches stay fast as data grows.
Use case
An illustrative scenario, not a real incident.
A team stores product embeddings in its existing Aurora cluster and joins search results with live stock levels in one query.
See how it works
flowchart LR Q["Search query embedding"] --> A["Aurora PostgreSQL with pgvector"] A --> J["Join with live product data"] J --> R["Results"]
How to read this chart
- Read it in order: Search query embedding, then Aurora PostgreSQL with pgvector, then Join with live product data, then Results.