Allow browser clients to upload music files directly to a Cloud Storage bucket from an App Engine-hosted web app without proxying uploads through the backend. What do you configure?
Choose an answer
Tap an option to check your answer.
Correct answer: Set a CORS configuration on the target Cloud Storage bucket with the App Engine app base URL as an allowed origin, and use Cloud Storage Signed URLs to generate a POST URL..
Why this is the answer
To allow direct browser uploads from an App Engine app, you need two key components. First, Cross-Origin Resource Sharing (CORS) must be configured on the Cloud Storage bucket to permit requests from your App Engine domain. This prevents browser security restrictions from blocking the upload. Second, Cloud Storage Signed URLs provide a secure, time-limited URL that the client can use to directly upload the file without exposing your backend credentials. The App Engine backend generates this signed URL and sends it to the client. Assigning the Storage WRITER role to users is insecure as it grants broad write access. Using App Engine default credentials to sign requests is for server-side operations, not direct browser uploads.
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