Google Cloud Professional Machine Learning Engineer — Question 94

You work for the AI team of an automobile company, and you are developing a visual defect detection model using TensorFlow and Keras. To improve your model performance, you want to incorporate some image augmentation functions such as translation, cropping, and contrast tweaking. You randomly apply these functions to each training batch. You want to optimize your data processing pipeline for run time and compute resources utilization. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because embedding augmentation functions within the tf.Data pipeline allows for efficient execution during training, leveraging TensorFlow's optimized data handling. Options B and C do not provide the same level of runtime efficiency, and D, while it suggests dynamic generation, does not utilize the tf.Data pipeline's strengths.