Exam Room · Advanced Generative AI Developer

Pop Quiz: S3 Vectors and the Latency Budget

· 4 min read

Exam-style

A compliance team holds 400 million embeddings covering a decade of archived case files. They run about thirty searches a month, and a wait of a second or two is fine. What is the cheapest fit?

Reveal the answer

A. S3 Vectors, storing the embeddings in a vector bucket and querying them through the s3vectors API

S3 Vectors is built for this shape: a large corpus, infrequent queries, and no need for single-digit-millisecond responses. A single vector index holds up to 2 billion vectors, so 400 million sits in one. There is no compute to provision. AWS charges USD$0.06 per GB-month of vector storage plus per-request query fees, and infrequent queries return in under a second. Every alternative runs compute. A NextGen OpenSearch Serverless collection group does scale to zero after ten minutes idle, but the first search then waits 10 to 30 seconds while workers are restored, and bills OCU-hours once they are. A provisioned domain bills warm nodes and dedicated master nodes around the clock, whether or not anyone searches. An HNSW build over 400 million rows runs for hours on a cluster that then sits there all month. MemoryDB keeps the index in RAM on hourly-billed nodes, for latency this workload never asks for.

Generative AI Development · part of The Exam Room

Q. You have a huge, rarely-queried vector archive and a wait of a second or two is acceptable. Cheapest fit?

A. S3 Vectors. Embeddings go into a vector bucket, a distinct bucket type queried through the s3vectors API, with no infrastructure to provision. One index holds up to 2 billion vectors. Infrequent queries return in under a second; AWS quotes latency as low as 100ms once queries become frequent. That floor rules the service out for an interactive assistant chasing 50ms.

Why? Match the store to the latency requirement. S3 Vectors bills storage and requests, not a cluster sitting idle between searches.

These posts are LLM-aided. Backbone, original writing, and structure by Craig. Research and editing by Craig + LLM. Proof-reading by Craig.