A customer wants real-time inference latency under 50 ms and plans to use a Nearest Neighbor model. Which design most likely satisfies latency and scaling requirements on AWS?

Answer

Precompute embeddings and store the ANN index in a managed, scalable service or deploy a dedicated ANN inference layer with optimized hardware

Explanation

Approximate nearest neighbor with a prebuilt index and optimized serving reduces per-request computation. Full scans or on-the-fly index construction generally exceed strict latency targets.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list