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?
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
Q01What is the highest level of the Google Cloud resource hierarchy?EasyQ02You need to enable the Compute Engine API in a new project using the command line. Which command ...EasyQ03You are setting up a new GCP environment. You need to grant a group of developers access to view ...MediumQ04You want to receive an email notification when your GCP spending exceeds $1000 this month. What s...EasyQ05You need to analyze your GCP billing data using complex SQL queries to understand cost trends acr...Medium
Expert