exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 152 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 152
Topic #: 1
[All Professional Cloud Architect Questions]

Your company is planning to upload several important files to Cloud Storage. After the upload is completed, they want to verify that the uploaded content is identical to what they have on-premises. You want to minimize the cost and effort of performing this check. What should you do?

  • A. 1. Use Linux shasum to compute a digest of files you want to upload. 2. Use gsutil -m to upload all the files to Cloud Storage. 3. Use gsutil cp to download the uploaded files. 4. Use Linux shasum to compute a digest of the downloaded files. 5. Compare the hashes.
  • B. 1. Use gsutil -m to upload the files to Cloud Storage. 2. Develop a custom Java application that computes CRC32C hashes. 3. Use gsutil ls -L gs://[YOUR_BUCKET_NAME] to collect CRC32C hashes of the uploaded files. 4. Compare the hashes.
  • C. 1. Use gsutil -m to upload all the files to Cloud Storage. 2. Use gsutil cp to download the uploaded files. 3. Use Linux diff to compare the content of the files.
  • D. 1. Use gsutil -m to upload the files to Cloud Storage. 2. Use gsutil hash -c FILE_NAME to generate CRC32C hashes of all on-premises files. 3. Use gsutil ls -L gs://[YOUR_BUCKET_NAME] to collect CRC32C hashes of the uploaded files. 4. Compare the hashes.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
vladik820
Highly Voted 2 years, 4 months ago
D is ok . https://cloud.google.com/storage/docs/gsutil/commands/hash
upvoted 39 times
...
Bahubali1988
Highly Voted 1 year, 3 months ago
Seems most of the questions are having wrong answers.. If there is no discussion , its highly difficult to get the right answers.
upvoted 17 times
...
tamj123
Most Recent 2 months, 2 weeks ago
Selected Answer: D
created hash and compare after is way to go.
upvoted 2 times
...
RaviRS
3 months, 3 weeks ago
Selected Answer: D
I am losing faith on the answers given... Option C is downright absurd.
upvoted 1 times
...
Jerar
5 months ago
Selected Answer: D
https://cloud.google.com/storage/docs/gsutil/commands/hash Calculate hashes on local files, which can be used to compare with gsutil ls -L output. -c Calculate a CRC32c hash for the specified files.
upvoted 1 times
...
BiddlyBdoyng
6 months, 3 weeks ago
Downloading before hashing cannot be right. The upload might be fine but if the download could corrupt
upvoted 1 times
...
[Removed]
7 months, 2 weeks ago
The correct answer should be D: https://cloud.google.com/storage/docs/gsutil/commands/hash
upvoted 1 times
...
Selected Answer: D
D is the correct answer
upvoted 2 times
...
megumin
1 year, 1 month ago
Selected Answer: D
D is ok
upvoted 1 times
...
Nuwan_SriLanka
1 year, 2 months ago
Selected Answer: D
Calculate hashes on local files, which can be used to compare with gsutil ls -L output. If a specific hash option is not provided, this command calculates all gsutil-supported hashes for the files. Note that gsutil automatically performs hash validation when uploading or downloading files, so this command is only needed if you want to write a script that separately checks the hash. If you calculate a CRC32c hash for files without a precompiled crcmod installation, hashing will be very slow. See gsutil help crcmod for details. https://cloud.google.com/storage/docs/gsutil/commands/hash
upvoted 5 times
...
Mahmoud_E
1 year, 2 months ago
Selected Answer: D
D is the right answer per this doc https://cloud.google.com/storage/docs/gsutil/commands/hash
upvoted 1 times
...
Jay_Krish
1 year, 3 months ago
Selected Answer: C
All those who answered D.. can one of you if you're genuine tell how is this even possible - The second step in the option D? 2. Use gsutil hash -c FILE_NAME to generate CRC32C hashes of all on-premises files.
upvoted 2 times
Jay_Krish
1 year, 3 months ago
Reading again it's probably not C because it talks about Linux commands but what if the environment is Windows.. but I still have my doubts on D if someone could clarify?
upvoted 2 times
...
...
binpan
1 year, 5 months ago
Correct Answer C A- digest comparison does not gurantee file contents are same. moreover lot of extra steps. - not correct B - custom Java code - lot of effort - not correct D - gs util cannot be used for creating hash for on prem files stored on on prem filestore/database. Not correct C - not the best option but right answer for the options available.
upvoted 2 times
luamail
1 year, 2 months ago
dowload file has cost, C no is a option
upvoted 1 times
...
SIMMEAT
1 year, 4 months ago
there is a hash options in gsutil for local files. https://cloud.google.com/storage/docs/gsutil/commands/hash
upvoted 2 times
...
kaito789
1 year, 5 months ago
D is correct. you only need gs util to generate hash for cloud storage. you would use your own utility to create ash for on prem and then compare the two.
upvoted 1 times
...
...
AzureDP900
1 year, 6 months ago
D is correct , there is no need to build custom java script.
upvoted 2 times
...
Superr
1 year, 7 months ago
Selected Answer: D
D seems valid
upvoted 1 times
...
amxexam
1 year, 7 months ago
Selected Answer: D
I am eliminating tedious approaches that is downloading and doing custom coding so A B C are eliminated. D is the solution.
upvoted 1 times
...
cmamiusa
1 year, 8 months ago
Selected Answer: D
D makes sense
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago