Google Cloud Professional Cloud Architect — Question 239

Your company has an application running on App Engine that allows users to upload music files and share them with other people. You want to allow users to upload files directly into Cloud Storage from their browser session. The payload should not be passed through the backend. What should you do?

Answer options

Correct answer: A

Explanation

Option A is correct because it outlines the necessary steps to allow users to upload files directly to Cloud Storage using a signed URL while ensuring proper CORS configuration. Option B incorrectly suggests assigning the WRITER role, which is unnecessary for direct uploads via signed URLs. Options C and D do not address the CORS requirement, which is critical for browser-based uploads.