You want to upload files from an on-premises virtual machine to Google Cloud Storage as part of a data migration. These files will be consumed by Cloud
DataProc Hadoop cluster in a GCP environment.
Which command should you use?
A. gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
B. gcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
C. hadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
D. gcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
DataProc Hadoop cluster in a GCP environment.
Which command should you use?
A. gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
B. gcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
C. hadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
D. gcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
Answer: A
✅ Explanation:
gsutil is the standard command-line tool for interacting with Google Cloud Storage (GCS).
-The cp command is used to copy files from your local file system to GCS.
-This is the recommended way to upload files from an on-premises VM to GCS, especially for data migration.
✅ Explanation:
gsutil is the standard command-line tool for interacting with Google Cloud Storage (GCS).
-The cp command is used to copy files from your local file system to GCS.
-This is the recommended way to upload files from an on-premises VM to GCS, especially for data migration.