
Answer-first summary for fast verification
Answer: Set up a Cloud Storage lifecycle policy to automatically delete objects after 45 days., Generate signed URLs for users, granting them temporary access to upload and access their invoices for a limited time.
**A** is correct because Cloud Storage lifecycle policies can automatically delete objects after a specified period, ensuring invoices are removed after 45 days without manual intervention. **B** is correct as signed URLs provide secure, time-limited access to Cloud Storage, allowing users to upload and access their invoices within the 30-minute window. **C** is incorrect because an SFTP server does not enforce the required time-limited access or automatic deletion. **D** is unnecessary since Cloud Storage lifecycle policies already offer this functionality without the need for custom Cloud Functions. **E** is impractical and risky, as it involves deleting entire buckets based on age, which could affect other data and does not address the specific requirements for invoice access and deletion.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are developing multi-tenant accounting software for various organizations. A key feature allows users to upload invoices. To ensure data security, each user must only access their own invoices, with write access limited to 30 minutes and invoices automatically deleted after 45 days. How can you implement this functionality efficiently with minimal maintenance? (Select two.)
A
Set up a Cloud Storage lifecycle policy to automatically delete objects after 45 days.
B
Generate signed URLs for users, granting them temporary access to upload and access their invoices for a limited time.
C
Configure an SFTP server with individual user accounts for each supplier to manage invoice uploads.
D
Implement a Cloud Function that triggers after 45 days to delete expired invoice objects.
E
Create a script to periodically scan and delete Cloud Storage buckets older than 45 days.
No comments yet.