Question 207 of 280
Single answerYou have trained a model by using data that was preprocessed in a batch Dataflow pipeline. Your use case requires real-time inference. You want to ensure that the data preprocessing logic is applied consistently between training and serving. What should you do?
APerform data validation to ensure that the input data to the pipeline is the same format as the input data to the endpoint.
✓BRefactor the transformation code in the batch data pipeline so that it can be used outside of the pipeline. Use the same code in the endpoint.
CRefactor the transformation code in the batch data pipeline so that it can be used outside of the pipeline. Share this code with the end users of the endpoint.
DBatch the real-time requests by using a time window and then use the Dataflow pipeline to preprocess the batched requests. Send the preprocessed requests to the endpoint.
✓
Correct Answer: B
Refactor the transformation code in the batch data pipeline so that it can be used outside of the pipeline. Use the same code in the endpoint.
▥
Explanation
The correct answer is highlighted above. Review the wording carefully, then use the next question to continue building your understanding of Google certification topics.