nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #35

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. Wh

The correct answer is A. gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/. gsutil (A) is the official Google Cloud command-line tool for interacting with Cloud Storage. The command gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/ correctly copies files from a local path to a GCS bucket. There is no gcloud cp command (B) - gcloud manages GCP serv

Implementing Data Storage Solutions

Question

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?

Options

  • Agsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
  • Bgcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
  • Chadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
  • Dgcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/

How the community answered

(55 responses)
  • A
    91% (50)
  • B
    2% (1)
  • C
    5% (3)
  • D
    2% (1)

Explanation

gsutil (A) is the official Google Cloud command-line tool for interacting with Cloud Storage. The command gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/ correctly copies files from a local path to a GCS bucket. There is no gcloud cp command (B) - gcloud manages GCP services but not object-level storage operations. While hadoop fs (C) with the GCS connector can interact with Cloud Storage, it's designed for HDFS operations and is not the standard or recommended tool for data migration uploads. There is no gcloud dataproc cp command (D). gsutil is specifically designed for storage operations and is the correct tool for this task.

Topics

#Cloud Storage#gsutil#Data Ingestion#Cloud CLI

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice