Topic 1 Question 192
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?
- Set a CORS configuration in the target Cloud Storage bucket where the base URL of the App Engine application is an allowed origin.
- Use the Cloud Storage Signed URL feature to generate a POST URL.
- Set a CORS configuration in the target Cloud Storage bucket where the base URL of the App Engine application is an allowed origin.
- Assign the Cloud Storage WRITER role to users who upload files.
- Use the Cloud Storage Signed URL feature to generate a POST URL.
- Use App Engine default credentials to sign requests against Cloud Storage.
- Assign the Cloud Storage WRITER role to users who upload files.
- Use App Engine default credentials to sign requests against Cloud Storage.
ユーザの投票
コメント(6)
- 正解だと思う選択肢: A
It should be A. Since it is stated that the payload should not passed from the backend and be send directly to the bucket, then a CORS configuration should be set to the bucket.
👍 6mmathiou2023/09/23 Not sure is A or C. I will go with C.
👍 3sheucm892023/09/22The correct answer is A
👍 1Murtuza2023/09/24
シャッフルモード