Google Cloud Professional Machine Learning Engineer — Question 25

You work for an advertising company and want to understand the effectiveness of your company's latest advertising campaign. You have streamed 500 MB of campaign data into BigQuery. You want to query the table, and then manipulate the results of that query with a pandas dataframe in an AI Platform notebook.
What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because using AI Platform Notebooks' BigQuery cell magic is the most efficient way to query data directly and ingest the results as a pandas dataframe without intermediate steps. Options B and C involve unnecessary file exports and uploads, which can complicate the workflow, while D introduces additional steps that could lead to errors and delays.