Google Cloud Professional Cloud Architect — Question 24
You have developed an application using Cloud ML Engine that recognizes famous paintings from uploaded images. You want to test the application and allow specific people to upload images for the next 24 hours. Not all users have a Google Account. How should you have users upload images?
Answer options
- A. Have users upload the images to Cloud Storage. Protect the bucket with a password that expires after 24 hours.
- B. Have users upload the images to Cloud Storage using a signed URL that expires after 24 hours.
- C. Create an App Engine web application where users can upload images. Configure App Engine to disable the application after 24 hours. Authenticate users via Cloud Identity.
- D. Create an App Engine web application where users can upload images for the next 24 hours. Authenticate users via Cloud Identity.
Correct answer: B
Explanation
The correct choice is B because using a signed URL allows users to upload images securely while providing temporary access that expires after 24 hours, accommodating those without a Google Account. Option A is incorrect as password protection is not suitable for image uploads and offers less security. Options C and D, while functional, require user authentication, which is not feasible for all users in this scenario.