QuestionQ70

Ensuring data protection

A company backs up application logs to a Cloud Storage bucket that both analysts and the administrator share. Analysts must access only logs that contain no personally identifiable information (PII). Log files that contain PII must be kept in a separate bucket accessible only to the administrator.

What should you do?

  • A Use Cloud Pub/Sub and Cloud Functions to trigger a Data Loss Prevention scan every time a file is uploaded to the shared bucket. If the scan detects PII, have the function move into a Cloud Storage bucket only accessible by the administrator.
  • B Upload the logs to both the shared bucket and the bucket only accessible by the administrator. Create a job trigger using the Cloud Data Loss Prevention API. Configure the trigger to delete any files from the shared bucket that contain PII.
  • C On the bucket shared with both the analysts and the administrator, configure Object Lifecycle Management to delete objects that contain any PII.
  • D On the bucket shared with both the analysts and the administrator, configure a Cloud Storage Trigger that is only triggered when PII data is uploaded. Use Cloud Functions to capture the trigger and delete such files.
Explanation

Sensitive Data Protection can inspect uploaded Cloud Storage files for PII, and an event-driven Cloud Function can use the inspection result to move PII-containing logs to an administrator-only bucket. This creates separate storage and access boundaries for sensitive and non-sensitive logs. Cloud Storage lifecycle rules and event filters do not inspect object contents for PII.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!