GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice question 7 of 35

Your data is stored in Cloud Storage buckets. Fellow developers have reported that data downloaded from Cloud Storage is resulting in slow API performance. You want to research the issue to provide details to the GCP support team. Which command should you run?

Full set: 265 questions
Answer options
A: gsutil test –o output.json gs://my-bucket
B: gsutil perfdiag –o output.json gs://my-bucket Correct answer
C: gcloud compute scp example-instance:~/test-data –o output.json gs://my-bucket
D: gcloud services test –o output.json gs://my-bucket
Correct Answer:
B. gsutil perfdiag –o output.json gs://my-bucket
Explanation

The gsutil perfdiag command is the designated tool for diagnosing performance issues with Google Cloud Storage. It runs a suite of diagnostic tests, including latency and throughput measurements for uploads and downloads, and collects information about the local environment (e.g., network configuration, CPU). The -o flag is used to specify an output file for the diagnostic report, which can then be shared with the Google Cloud support team for analysis. This command directly addresses the need to research slow download performance and generate a detailed report.

Why Incorrect

A. gsutil test is used to run the internal unit and integration tests for the gsutil tool itself, not to diagnose the performance of a Cloud Storage bucket.
C. gcloud compute scp is a command for securely copying files between a local machine and a Compute Engine instance. It does not interact with Cloud Storage buckets.
D. gcloud services test is not a valid gcloud command. The gcloud services command group is used for managing service APIs, such as enabling or disabling them.

References

1. Google Cloud Documentation, gsutil perfdiag: "The gsutil perfdiag command helps you diagnose performance issues you may be experiencing with Cloud Storage... The command runs a number of tests and prints a diagnostic report that you can send to Google or post to a forum when asking for help." (See the "Description" section).

2. Google Cloud Documentation, gsutil test: "The gsutil test command runs the gsutil unit tests and integration tests." (See the "Description" section).

3. Google Cloud Documentation, gcloud compute scp: "gcloud compute scp securely copies files between a virtual machine instance and your local machine." (See the "Description" section).

4. Google Cloud Documentation, gcloud services: "The gcloud services command group lets you manage your project's access to Google Cloud services." (See the "Description" section).

Scroll to Top