
Ultimate access to all questions.
You need to store application logs in a shared Cloud Storage bucket accessible to both administrators and analysts. Analysts must not be able to access any logs containing personally identifiable information (PII). Log files with PII must be stored in a separate bucket that is only accessible to administrators. What should you do?
A
Upload the logs to both the shared bucket and the bucket with PII that is only accessible to the administrator. Use the Cloud Data Loss Prevention API to create a job trigger. Configure the trigger to delete any files that contain PII from the shared bucket.
B
On the shared bucket, configure Object Lifecycle Management to delete objects that contain PII.
C
On the shared bucket, configure a Cloud Storage trigger that is only triggered when PII is uploaded. Use Cloud Functions to capture the trigger and delete the files that contain PII.
D
Use Pub/Sub and Cloud Functions to trigger a Cloud Data Loss Prevention scan every time a file is uploaded to the administrator's bucket. If the scan does not detect PII, have the function move the objects into the shared Cloud Storage bucket.