
Explanation:
The correct answer is B because the signurl command generates a signed URL that includes authentication data, allowing access without a Google account. The -d option specifies the duration the URL remains valid, which is exactly what's needed here. For more details, refer to the GCP documentation on Cloud Storage gsutil signurl. Key options include -m for specifying the HTTP method (default is GET), -d for duration (default is 1 hour), and -p for the keystore password. The maximum allowed duration is 7 days.
Ultimate access to all questions.
No comments yet.
You need to provide temporary access to files in a Cloud Storage bucket, limiting availability to just 10 minutes. What's the most efficient method to generate a signed URL with these constraints?
A
Generate a service account and JSON key, then use the gsutil signurl -p 10m command with the JSON key and bucket.
B
Generate a service account and JSON key, then use the gsutil signurl -d 10m command with the JSON key and bucket.
C
Generate a service account and JSON key, then use the gsutil signurl -t 10m command with the JSON key and bucket.
D
Generate a service account and JSON key, then use the gsutil signurl -m 10m command with the JSON key and bucket.