Google Cloud Certified Associate Cloud Engineer Practice

Disable ads (and more) with a membership for a one time $2.99 payment

Question: 1 / 50

You're trying to provide temporary access to some files in a Cloud Storage bucket. You want to limit the time that the files are available to 10 minutes. With the fewest steps possible, what is the best way to generate a signed URL?

A. In the UI select the objects and click the Generate Signed URL button.

B. Create a service account and JSON key. Use the gsutil signurl -t 10m command and pass in the JSON key and bucket.

C. In the UI select the objects and click the "Sign With Key" button.

D. Create a service account and JSON key. Use the gsutil signurl -d 10m command and pass in the JSON key and bucket.

Option A is incorrect because it does not mention a specific time limit for the signed URL. Option B is incorrect because it suggests using the "gsutil signurl" command with a time limit of 10 minutes, while the correct command is "gsutil signurl -d 10m" where "d" stands for "duration". Option C is incorrect because it does not mention a JSON key, which is required to generate a signed URL. So the best and shortest way to generate a signed URL with a 10-minute time limit is to use the "gsutil signurl -d 10m" command with a service account and JSON key. This command will generate a signed URL that will expire after 10 minutes.

Next

Report this question