You must allow clients to download a file from your site for a limited time while following Google best practices. How should you design this?
Choose an answer
Tap an option to check your answer.
Correct answer: Generate a Cloud Storage signed URL for the object that expires after the required time and provide that URL to the client..
Why this is the answer
Generating a Cloud Storage signed URL is the recommended best practice for providing temporary, time-limited access to objects. This method allows you to grant read access to a specific file without making it publicly accessible or requiring users to have Google credentials. The URL contains authentication information and an expiration timestamp, ensuring that access is automatically revoked after the specified duration. Sending the file as an email attachment is inefficient for large files and doesn't scale well. Creating a temporary bucket is overly complex and resource-intensive for a simple time-limited download. Issuing HTTP cookies with expiration would require your application to act as a proxy, downloading the file from Cloud Storage and then serving it, which adds latency, consumes application resources, and increases operational overhead compared to a direct signed URL download.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed