PROFESSIONAL-CLOUD-DEVELOPER · Question #135
PROFESSIONAL-CLOUD-DEVELOPER Question #135: Real Exam Question with Answer & Explanation
The correct answer is B: Generate and assign a Cloud Storage-signed URL for the file. Make the URL available for the. https://cloud.google.com/storage/docs/access-control/signed-urls A signed URL is a URL that provides limited permission and time to make a request. Signed URLs contain authentication information in their query string, allowing users without credentials to perform specific actions
Question
You are developing an application that will allow clients to download a file from your website for a specific period of time. How should you design the application to complete this task while following Google-recommended best practices?
Options
- AConfigure the application to send the file to the client as an email attachment.
- BGenerate and assign a Cloud Storage-signed URL for the file. Make the URL available for the
- CCreate a temporary Cloud Storage bucket with time expiration specified, and give download
- DGenerate the HTTP cookies with time expiration specified. If the time is valid, copy the file from
Explanation
https://cloud.google.com/storage/docs/access-control/signed-urls A signed URL is a URL that provides limited permission and time to make a request. Signed URLs contain authentication information in their query string, allowing users without credentials to perform specific actions on a resource. When you generate a signed URL, you specify a user or service account which must have sufficient permission to make the request that the signed URL will make. After you generate a signed URL, anyone who possesses it can use the signed URL to perform specified actions, such as reading an object, within a specified period of time.
Topics
Community Discussion
No community discussion yet for this question.