Exam Professional Cloud Developer All QuestionsBrowse all questions from this exam
Question 72

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?

    Correct Answer: B

    The correct command to diagnose performance issues with Cloud Storage is 'gsutil perfdiag'. This command is designed to perform a series of tests such as upload, download, and metadata operations to evaluate the performance of the Cloud Storage bucket. By using the '-o' flag, the results of these tests are saved in the specified output file (output.json), which can then be provided to the GCP support team for further investigation.

Discussion
donchickOption: B

B(https://cloud.google.com/storage/docs/gsutil/commands/perfdiag#providing-diagnostic-output-to-cloud-storage-team)

syu31svc

Spot-on link and answer

omermahgoubOption: B

B. gsutil perfdiag -o output.json gs://my-bucket The gsutil perfdiag command is used to diagnose performance issues with Cloud Storage. It can be used to perform various tests such as download, upload, and metadata operations. By using the -o flag, you can specify an output file where the results of the tests will be stored in JSON format. This output file can then be provided to the GCP support team to help them investigate the issue.

tomato123Option: B

B is correct

thewalkerOption: B

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.

thewalker

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.

RajanOption: B

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.

ynaitam

CORRECT