From an on-premises VM, upload local files to a Google Cloud Storage bucket for use by a Dataproc Hadoop cluster. Which command should you run?
Choose an answer
Tap an option to check your answer.
Correct answer: gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/.
Why this is the answer
The gsutil cp command is the correct tool for copying files to and from Google Cloud Storage buckets. It's part of the gsutil command-line utility specifically designed for interacting with Cloud Storage. gcloud cp is not a valid gcloud command for file transfers. The gcloud command-line tool is for managing Google Cloud resources generally, but file operations with Cloud Storage are handled by gsutil. hadoop fs cp is used for copying files within HDFS (Hadoop Distributed File System) or between HDFS and local filesystems, not directly to Google Cloud Storage from an external VM. While Dataproc uses HDFS, this command wouldn't directly upload from an on-premises VM to a GCS bucket. gcloud dataproc cp is not a valid command. The gcloud dataproc command is used for managing Dataproc clusters, jobs, and workflows, not for file transfers.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed