Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 192 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 192
Topic #: 1
[All Professional Cloud Architect Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mmathiou
Highly Voted 1 year, 2 months ago
Selected Answer: 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.
upvoted 10 times
...
cruel_sun
Most Recent 5 months ago
Selected Answer: A
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. Here's why this approach is most suitable: • CORS configuration: This allows cross-origin requests from your App Engine application to access the Cloud Storage bucket for uploads. Setting the App Engine base URL as an allowed origin ensures secure communication. • Cloud Storage Signed URL: This feature generates a temporary URL with specific permissions and expiration time. You can provide this signed URL to the user's browser for uploading files directly to Cloud Storage. The payload (music file) doesn't pass through your backend, reducing server load.
upvoted 3 times
...
madcloud32
8 months, 4 weeks ago
Selected Answer: A
I would go for A as per its definition and it works good that way
upvoted 1 times
...
Amrita2012
9 months, 3 weeks ago
It's between A and C. But if you select C then you have to justify the use of "Use App Engine default credentials to sign requests against Cloud Storage. " hence go with option A.
upvoted 1 times
...
Namanjain7206
10 months ago
Selected Answer: C
https://cloud.google.com/blog/products/storage-data-transfer/uploading-images-directly-to-cloud-storage-by-using-signed-url
upvoted 2 times
...
91d8ca7
10 months, 3 weeks ago
Selected Answer: C
I'm also not sure either A or C. But in my PCA exam today, I choose C. And I have passed.
upvoted 1 times
...
Anudeep58
11 months, 3 weeks ago
C is the Answer. https://cloud.google.com/storage/docs/cross-origin
upvoted 2 times
Patrick2708
11 months, 2 weeks ago
if its cross-origin. Then why C is answer? Shouldn't it be A
upvoted 2 times
...
...
Prakzz
1 year, 1 month ago
Signed URL is for TIme-Based access. This needs access all the time.
upvoted 3 times
...
someone2011
1 year, 2 months ago
A: https://cloud.google.com/storage/docs/cross-origin#server-side-support "Cloud Storage supports this specification by allowing you to configure your buckets to support CORS. Continuing the above example, you can configure the example.storage.googleapis.com bucket so that a browser can share its resources with scripts from example.appspot.com."
upvoted 3 times
...
Murtuza
1 year, 2 months ago
The correct answer is A
upvoted 1 times
...
sheucm89
1 year, 2 months ago
Not sure is A or C. I will go with C. https://cloud.google.com/blog/products/storage-data-transfer/uploading-images-directly-to-cloud-storage-by-using-signed-url
upvoted 3 times
xaqanik
1 year, 1 month ago
There is no any relationship between App engine application and cloud storage. You need bind them.
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...