
Answer-first summary for fast verification
Answer: Have users upload the images to Cloud Storage using a signed URL that expires after 24 hours.
The correct answer is B. The use of signed URLs allows users to upload images to Cloud Storage without requiring them to have a Google Account. A signed URL is a URL that grants temporary access to a specific resource in Cloud Storage, and it can be configured to expire after a specified period, in this case, 24 hours. This approach is secure, straightforward, and does not involve creating additional infrastructure or managing user authentication complexities. Option A is incorrect because passwords for Cloud Storage buckets do not natively support expiration. Options C and D are more complex than necessary and involve using App Engine and Cloud Identity, which is overkill for this scenario.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have developed an application using Google Cloud Machine Learning (ML) Engine that recognizes famous paintings from images uploaded by users. To ensure quality and functionality, you want to conduct a test where a selected group of users can upload images for the next 24 hours. However, not all of these users have Google Accounts. Given these constraints, how should you allow these users to upload images during the testing period?
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.
No comments yet.