QuestionQ352

Designing and planning a cloud solution architecture

Your company has an application running on App Engine that lets users upload music files and share them with other people. You want users to upload files directly to Cloud Storage from their browser session, without passing the payload through the backend. What should you do?

  • A
    1. Set a CORS configuration in the target Cloud Storage bucket where the base URL of the App Engine application is an allowed origin.2. Use the Cloud Storage Signed URL feature to generate a POST URL.
  • B
    1. Set a CORS configuration in the target Cloud Storage bucket where the base URL of the App Engine application is an allowed origin.2. Assign the Cloud Storage WRITER role to users who upload files.
  • C
    1. Use the Cloud Storage Signed URL feature to generate a POST URL.2. Use App Engine default credentials to sign requests against Cloud Storage.
  • D
    1. Assign the Cloud Storage WRITER role to users who upload files.2. Use App Engine default credentials to sign requests against Cloud Storage.
Explanation

Cloud Storage CORS configuration allows the browser application at the App Engine origin to make direct cross-origin upload requests. A signed POST URL or policy grants time-limited, constrained permission for the browser to upload without assigning Cloud Storage writer permissions to every user or routing file payloads through the backend.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!