Medium1 markMultiple Choice

GCP ACE · Question 27 · Domain 3.4: Deploying and implementing data solutions

You have a 50 GB CSV file stored in a Cloud Storage bucket. You need to load this data into a BigQuery table named 'sales_data' in the 'finance' dataset.

Which command-line tool and command should you use?

Answer options:

A.

gsutil cp gs://my-bucket/data.csv bq://finance/sales_data

B.

gcloud bigquery load gs://my-bucket/data.csv finance.sales_data

C.

bq load finance.sales_data gs://my-bucket/data.csv

D.

bq import gs://my-bucket/data.csv finance.sales_data

How to approach this question

Identify the specific CLI tool used for BigQuery operations.

Full Answer

C.bq load finance.sales_data gs://my-bucket/data.csv✓ Correct
The `bq` command-line tool is used to interact with BigQuery. The `bq load` command loads data from a source (like a local file or a Cloud Storage URI) into a BigQuery table. The syntax is `bq load [DATASET].[TABLE] [SOURCE]`.

Common mistakes

Trying to use `gsutil` or `gcloud` for BigQuery data loading.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam