Google Cloud Associate Data Practitioner — Question 42
You need to create a weekly aggregated sales report based on a large volume of data. You want to use Python to design an efficient process for generating this report. What should you do?
Answer options
- A. Create a Cloud Run function that uses NumPy. Use Cloud Scheduler to schedule the function to run once a week.
- B. Create a Colab Enterprise notebook and use the bigframes.pandas library. Schedule the notebook to execute once a week.
- C. Create a Cloud Data Fusion and Wrangler flow. Schedule the flow to run once a week.
- D. Create a Dataflow directed acyclic graph (DAG) coded in Python. Use Cloud Scheduler to schedule the code to run once a week.
Correct answer: B
Explanation
The correct answer is B because Colab Enterprise notebooks offer a user-friendly environment for running Python code, especially with libraries like bigframes.pandas, which is suited for handling large datasets. The other options, while feasible, do not leverage the specific advantages of Colab for this type of task as effectively.