
Answer-first summary for fast verification
Answer: Store the file in Cloud Storage. Generate a signed URL with 4 hours expiry and share it with the auditors.
The correct answer is **A** because using Cloud Storage signed URLs is the most efficient and secure way to share files for a limited time. Signed URLs provide time-limited access to anyone in possession of the URL, without requiring a Google account. This method is quick 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 file public.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You need to grant external auditors access to sensitive files for a limited time period of 4 hours only, ensuring the files are inaccessible thereafter. According to Google best practices, what is the most efficient method to share these files?
A
Store the file in Cloud Storage. Generate a signed URL with 4 hours 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.