Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Google Cloud Certified Professional Cloud Developer · Google Cloud
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
The correct answer is B. gsutil perfdiag -o output.json gs://my-bucket . Here's why: gsutil perfdiag : This command is specifically designed to run a suite of diagnostic tests on a Cloud Storage bucket. It measures various performance aspects, including latency, throughput, and listing operations. This is exactly what you need to gather detailed information about the slow download performance. -o output.json : This option specifies that the results of the diagnostic tests should be saved to a JSON file named output.json . This file will contain detailed performance metrics that you can provide to the GCP support team.
Let's break down why the other options are incorrect: A. gsutil test -o output.json gs://my-bucket : gsutil test is not a valid command. There's no command in gsutil called test . C. gcloud compute scp example-instance:~/test-data -o output.json gs://my-bucket : This command is used to copy files from a Compute Engine instance to a Cloud Storage bucket. It doesn't perform any performance diagnostics. D. gcloud services test -o output.json gs://my-bucket : gcloud services test is used to test the availability and performance of Google Cloud services, but it's not specific to Cloud Storage.
To research the issue of slow API performance when downloading data from Cloud Storage, you can use the gsutil perfdiag command. This command runs a set of tests to report the actual performance of a Cloud Storage bucket and provides detailed information on the performance of individual operations.