Google Cloud Professional Data Engineer — Question 68

A data scientist has created a BigQuery ML model and asks you to create an ML pipeline to serve predictions. You have a REST API application with the requirement to serve predictions for an individual user ID with latency under 100 milliseconds. You use the following query to generate predictions: SELECT predicted_label, user_id FROM ML.PREDICT (MODEL 'dataset.model', table user_features). How should you create the ML pipeline?

Answer options

Correct answer: D

Explanation

Option D is correct because it allows for efficient storage and retrieval of predictions for individual users while meeting the latency requirements. The other options either do not satisfy the performance constraints or do not provide a scalable solution for serving predictions effectively.