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]/
Took the exam 2 weeks and got pass, however, NOT A SINGLE question is from here! Although it is still good for practice purpose, DO NOT just remember these questions to take the exam.
-- My comment above is still waiting approval after two weeks, it seems someone doesn't want it to be published.
A. gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
gsutil is the correct tool because:
It's the dedicated command-line tool for Google Cloud Storage operations
Specifically designed for file and bucket management in GCS
Supports efficient file transfer between local systems and Cloud Storage
Provides reliable upload capabilities with automatic retry mechanisms
The command structure:
gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
cp: Copy command
[LOCAL_OBJECT]: Source file path
gs://: Protocol identifier for Google Cloud Storage
[DESTINATION_BUCKET_NAME]: Target bucket name
As updates to the Google Cloud SDK, the `gcloud` tool now includes a `storage` command group that allows you to interact with Google Cloud Storage (GCS) similarly to how you would with `gsutil` command
A. gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
This command is used to copy files from local storage to Google Cloud Storage. It’s the correct option for uploading data as part of a migration process that will be consumed by Cloud Dataproc.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
William88o
Highly Voted 1 week, 2 days agoi896ii
Highly Voted 3 years, 9 months ago1234567J
3 years, 9 months agolooseboy
3 years, 9 months agoHila_Sh
Most Recent 4 months, 1 week agoEdgar0123
6 months, 2 weeks agowww_certifiedumps_com_google
6 months, 3 weeks agoblackshuai
1 year, 5 months agowanrltw
1 year, 5 months ago__rajan__
1 year, 7 months agodidek1986
1 year, 8 months agoJigglypuff09
1 year, 11 months agoBossam
2 years, 1 month agoatoledo
2 years, 2 months agoNandak217
2 years, 4 months agotomato123
2 years, 8 months agoSuperDevops
3 years, 5 months agoDaywa1k3r
3 years, 10 months agoyuchun
3 years, 10 months ago