Google Professional Machine Learning Engineer exam dumps

Google Professional Machine Learning Engineer practice question 369 of 522

Professional Machine Learning Engineer. Professional level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Machine Learning Engineer Question 369

Single answerGoogle Cloud Platform

You are building a machine learning pipeline on Google Cloud. During training, you preprocess raw data by normalizing numerical features and encoding categorical features using TensorFlow Transform (TFX). To ensure consistent data preprocessing during both training and serving, what should you do?

  1. A

    Export the preprocessing logic as a SavedModel using TFX and apply it during serving.

  2. B

    Manually rewrite the preprocessing code in the serving application to match the training pipeline.

  3. C

    Precompute the preprocessed data during training and serve the preprocessed data directly.

  4. D

    Use a custom preprocessing library to ensure consistency between training and serving.

Show answer and explanation

Correct answer: A

Explanation

Ensuring consistent data preprocessing between training and serving is critical to avoid data skew and ensure reliable model performance. By using TFX to export preprocessing logic as a SavedModel, you can apply the exact same transformations during both training and serving, avoiding the need for manual replication or external libraries.

  • A. Correct.

    This is correct. TFX allows you to export preprocessing logic as a SavedModel, ensuring the same logic is applied during both training and serving.

  • B. Incorrect.

    This is incorrect. Manually rewriting the preprocessing logic increases the risk of inconsistencies and errors between training and serving.

  • C. Incorrect.

    This is incorrect. Precomputing preprocessed data is not scalable for real-time inference scenarios and does not ensure flexibility for new data.

  • D. Incorrect.

    This is incorrect. A custom preprocessing library might reduce inconsistencies but does not guarantee compatibility with TensorFlow pipelines in training and serving.

Timed practice exam

Take a Google Professional Machine Learning Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam