Medium1 markMultiple Choice

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

You have a CSV file named data.csv on your local machine. You need to upload this file to a Cloud Storage bucket named my-data-bucket. Which command should you use?

Answer options:

A.

gcloud storage upload data.csv my-data-bucket

B.

gsutil cp data.csv gs://my-data-bucket/

C.

bq load my-data-bucket data.csv

D.

gsutil mv data.csv gs://my-data-bucket/

How to approach this question

Remember the CLI tool for Cloud Storage (gsutil) and the standard Linux-like copy command (cp).

Full Answer

B.gsutil cp data.csv gs://my-data-bucket/✓ Correct
gsutil cp data.csv gs://my-data-bucket/
`gsutil` is the classic command-line tool for interacting with Cloud Storage. The `cp` (copy) command is used to upload, download, and copy objects. The destination bucket must be prefixed with `gs://`.

Common mistakes

Using BigQuery commands (`bq`) for Cloud Storage tasks.

Practice the full GCP Associate Cloud Engineer Practice Exam 1

50 questions · hints · full answers · grading

More questions from this exam