Professional Cloud Developer Exam QuestionsBrowse all questions from this exam

Professional Cloud Developer 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?

Show Answer
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

6 comments
Sign in to comment
donchickOption: B
Dec 21, 2020

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

syu31svc
Jul 11, 2021

Spot-on link and answer

tomato123Option: B
Aug 20, 2022

B is correct

omermahgoubOption: B
Jan 8, 2023

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.

ynaitam
Dec 4, 2022

CORRECT

RajanOption: B
Sep 20, 2023

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.

thewalkerOption: B
Jul 17, 2024

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
Jul 17, 2024

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.