Diagnose slow Cloud Storage download API performance to gather data for GCP support. Which command should you run?
Choose an answer
Tap an option to check your answer.
Correct answer: gsutil perfdiag -o output.json gs://my-bucket.
Why this is the answer
The gsutil perfdiag command is designed specifically for diagnosing performance issues with Cloud Storage. It runs a series of tests to measure upload and download speeds, latency, and other relevant metrics, outputting detailed results in a specified format (e.g., JSON). This data is crucial for identifying bottlenecks and providing actionable information to GCP support. gsutil test is a general command for running unit and integration tests for the gsutil tool itself, not for diagnosing Cloud Storage performance. gcloud compute scp is used for copying files between a Compute Engine instance and Cloud Storage, or between instances, and doesn't provide performance diagnostics for Cloud Storage API calls. gcloud services test is a non-existent command; gcloud services is used to manage APIs and services, not to test their performance.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed