QuestionQ106

Integrating applications with Google Cloud services

You need 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 a 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]/
Explanation

gsutil cp copies a local object to a Cloud Storage URI, and a destination beginning with gs:// identifies the target Cloud Storage bucket. The current Google Cloud CLI replacement is gcloud storage cp; gcloud cp is not that command.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!