Data Preparation for ML and AI

An application stores product records in Amazon RDS for PostgreSQL. It needs similarity searches over product embeddings and transactional updates to embeddings and product attributes together; which configuration best meets these requirements?

Show the answer

Correct answerD. Enable pgvector in the existing PostgreSQL database.

AWhy not this: OpenSearch supports vector search, but updates across OpenSearch and RDS do not share one database transaction.

BWhy not this: Parquet supports analytical storage, not transactional vector similarity queries alongside PostgreSQL records.

CWhy not this: A separate DynamoDB table does not provide native vector similarity search or a shared transaction with RDS.

DWhy this is right: pgvector supports similarity search while keeping embeddings and product attributes within PostgreSQL transactions.

pgvector provides vector storage and similarity search within PostgreSQL, allowing embeddings and product attributes to share database transactions. OpenSearch Service supports vector search but does not share an atomic database transaction with RDS.