Google Cloud Professional Data Engineer — Question 254

You are developing a fraud detection model using BigQuery ML. You have a raw transaction dataset and need to create new features such as the average_transaction_amount_last_24_hours and time_since_last_transaction. These features require aggregation and time-window calculations on the existing data. The goal is to ensure that these features are consistently applied during both model training and prediction without manual intervention. You need to prepare these features efficiently for your model. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because creating a separate BigQuery table with pre-computed features allows for efficient and consistent access during both training and serving phases. Option A involves additional complexity and potential delays with Cloud Run. Option B adds overhead from exporting and processing data externally, which is less efficient. Option C does not provide a way to consistently apply the features without manual intervention.