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
Related questions
A model must be trained on highly imbalanced data while minimizing false negatives for a minority class. Which training-time configuration most directly addresses this imbalance in SageMaker?
View question →
When using containerized training and inference, which configuration best supports repeatability across environments and prevents dependency-related inconsistencies?
View question →
For a streaming feature workflow, you must materialize features consistently for both training and online prediction using AWS Streaming + Feature Store. What approach best ensures consistent event-time handling?
View question →
A team is deciding between using built-in algorithms vs. custom training code for a transformer-based ranking model. Which criterion most strongly favors custom training?
View question →
A lead data-science team observes data drift and performance degradation after deployment. Which mitigation action is most aligned with operational ML monitoring in SageMaker?
View question →
You need a reproducible, secure pipeline that trains, registers, and deploys models with immutable artifacts. Which combination is most appropriate?
View question →