AWS Certified Machine Learning – Specialty — Question 347
A machine learning (ML) engineer is integrating a production model with a customer metadata repository for real-time inference. The repository is hosted in Amazon SageMaker Feature Store. The engineer wants to retrieve only the latest version of the customer metadata record for a single customer at a time.
Which solution will meet these requirements?
Answer options
- A. Use the SageMaker Feature Store BatchGetRecord API with the record identifier. Filter to find the latest record.
- B. Create an Amazon Athena query to retrieve the data from the feature table.
- C. Create an Amazon Athena query to retrieve the data from the feature table. Use the write_time value to find the latest record.
- D. Use the SageMaker Feature Store GetRecord API with the record identifier.
Correct answer: D
Explanation
The GetRecord API is the most efficient and lowest-latency method to retrieve a single record from the Amazon SageMaker Feature Store Online Store, which always contains the latest version of the data. BatchGetRecord is designed for retrieving multiple records and adds unnecessary complexity for single-record retrieval. Amazon Athena queries run against the Offline Store, which is built for batch analysis and introduces too much latency for real-time inference.