Google Cloud Professional Machine Learning Engineer — Question 23
You have trained a text classification model in TensorFlow using AI Platform. You want to use the trained model for batch predictions on text data stored in
BigQuery while minimizing computational overhead. What should you do?
Answer options
- A. Export the model to BigQuery ML.
- B. Deploy and version the model on AI Platform.
- C. Use Dataflow with the SavedModel to read the data from BigQuery.
- D. Submit a batch prediction job on AI Platform that points to the model location in Cloud Storage.
Correct answer: A
Explanation
Exporting the model to BigQuery ML allows for efficient batch predictions directly within BigQuery, minimizing overhead. Deploying and versioning the model on AI Platform may incur additional computational costs and complexity, while using Dataflow or submitting a batch prediction job involves extra steps that might not be as efficient as leveraging BigQuery ML directly.