Medium1 markMultiple Choice

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

You have a 50 GB CSV file stored locally on your on-premises server. You need to load this data into a BigQuery table named 'sales_data' in the dataset 'company_metrics'.

Which command should you use?

Answer options:

A.

gcloud bigquery load ./data.csv company_metrics.sales_data

B.

gsutil cp ./data.csv bq://company_metrics/sales_data

C.

bq load --source_format=CSV company_metrics.sales_data ./data.csv

D.

bq import ./data.csv company_metrics.sales_data

How to approach this question

Identify the specific CLI tool used for BigQuery and the command for ingesting data.

Full Answer

C.bq load --source_format=CSV company_metrics.sales_data ./data.csv✓ Correct
The `bq` command-line tool is used to interact with BigQuery. The `bq load` command is used to load data into a table. The syntax requires specifying the format, the destination table (dataset.table), and the source file.

Common mistakes

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

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam