
Answer-first summary for fast verification
Answer: Store the file in Cloud Storage. Generate a signed URL with a 4-hour expiry and share it with the auditors.
The correct answer is **A** because using Cloud Storage signed URLs allows for quick and secure sharing of files with third parties without requiring them to have a Google account. Signed URLs provide time-limited access to the resource, which automatically expires after the specified duration (4 hours in this case). This method is efficient and adheres to Google's best practices for secure file sharing. Options B and D involve unnecessary manual effort and are not quick solutions. Option C is incorrect as granting `allUsers` access is not secure and would make the files public.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You need to grant external auditors access to sensitive files for exactly 4 hours, after which the files should no longer be accessible. According to Google's best practices, what is the most efficient method to share these files?
A
Store the file in Cloud Storage. Generate a signed URL with a 4-hour expiry and share it with the auditors.
B
Host a website on Compute Engine instance and expose the files using Public DNS and share the URL with the auditors. Bring down the instance after 4 hours.
C
Store the file in Cloud Storage. Grant the allUsers access to the file share it with the auditors. Remove allUsers access after 4 hours.
D
Host a website on App Engine instance and expose the files using Public DNS and share the URL with the auditors. Bring down the instance after 4 hours.