Exam Professional Machine Learning Engineer topic 1 question 29 discussion - ExamTopics


AI Summary Hide AI Generated Summary

Question:

The scenario involves a machine learning model trained on a dataset requiring computationally expensive preprocessing. The task is to choose the best architecture for deploying this model on Google's AI Platform for online prediction, ensuring the same preprocessing is applied at prediction time.

Options:

  • A: Retrain the model with raw data.
  • B: Use Pub/Sub, Dataflow, and AI Platform for data transformation and prediction.
  • C: Use Cloud Spanner, creating a view for preprocessing and querying every second.
  • D: Use Pub/Sub, Cloud Functions, and AI Platform for preprocessing and prediction.

Suggested Answer:

The suggested answer is B. This option leverages Pub/Sub for message queuing, Dataflow for parallel data processing (the preprocessing step), and AI Platform for model prediction, offering a scalable and efficient solution.

Sign in to unlock more AI features Sign in with Google

You have trained a model on a dataset that required computationally expensive preprocessing operations. You need to execute the same preprocessing at prediction time. You deployed the model on AI Platform for high-throughput online prediction. Which architecture should you use?

  • A. Validate the accuracy of the model that you trained on preprocessed data. Create a new model that uses the raw data and is available in real time. Deploy the new model onto AI Platform for online prediction.
  • B. Send incoming prediction requests to a Pub/Sub topic. Transform the incoming data using a Dataflow job. Submit a prediction request to AI Platform using the transformed data. Write the predictions to an outbound Pub/Sub queue.
  • C. Stream incoming prediction request data into Cloud Spanner. Create a view to abstract your preprocessing logic. Query the view every second for new records. Submit a prediction request to AI Platform using the transformed data. Write the predictions to an outbound Pub/Sub queue.
  • D. Send incoming prediction requests to a Pub/Sub topic. Set up a Cloud Function that is triggered when messages are published to the Pub/Sub topic. Implement your preprocessing logic in the Cloud Function. Submit a prediction request to AI Platform using the transformed data. Write the predictions to an outbound Pub/Sub queue.
Show Suggested Answer Hide Answer
Suggested Answer: B πŸ—³οΈ

Was this article displayed correctly? Not happy with what you see?

Tabs Reminder: Tabs piling up in your browser? Set a reminder for them, close them and get notified at the right time.

Try our Chrome extension today!


Share this article with your
friends and colleagues.
Earn points from views and
referrals who sign up.
Learn more

Facebook

Save articles to reading lists
and access them on any device


Share this article with your
friends and colleagues.
Earn points from views and
referrals who sign up.
Learn more

Facebook

Save articles to reading lists
and access them on any device