
Answer-first summary for fast verification
Answer: Create a quarantine bucket for uploads. Trigger a Cloud Function upon file upload to call the Data Loss Prevention (DLP) API, applying infotypes to detect PII. If PII is detected, relocate the file to the 'Classified Data' bucket.
The optimal solution involves creating a quarantine bucket that activates a Cloud Function upon file upload. This function then utilizes the DLP API to check for PII and moves the file accordingly. Cloud Scheduler is less suitable as it operates on a fixed schedule, not immediately upon upload. While a custom machine learning model is an option, it demands significant development and upkeep. Leveraging a managed service like DLP is more efficient. For more details, visit [Google Cloud DLP API documentation](https://cloud.google.com/dlp/docs/reference/rest).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
An insurance claim review company, which provides expert opinions on contested insurance claims, utilizes Google Cloud for its data analysis pipelines. Clients upload documents to Cloud Storage. The company aims to immediately relocate files to a 'Classified Data' bucket upon upload if the file contains personally identifying information (PII). Which method would you recommend to achieve this?
A
Establish a quarantine bucket for uploads. Upon file upload, trigger a Cloud Function to invoke a custom-built machine learning model designed to detect PII. If PII is identified, transfer the file to the 'Classified Data' bucket.
B
Set up a quarantine bucket for uploads. Utilize Cloud Scheduler to execute an hourly job that calls a custom-built machine learning model trained to detect PII. If PII is found, move the file to the 'Classified Data' bucket.
C
Create a quarantine bucket for uploads. Trigger a Cloud Function upon file upload to call the Data Loss Prevention (DLP) API, applying infotypes to detect PII. If PII is detected, relocate the file to the 'Classified Data' bucket.
D
Implement a quarantine bucket for uploads. Use Cloud Scheduler to run an hourly job that invokes the DLP API to apply infotypes for PII detection. If PII is detected, move the file to the 'Classified Data' bucket.
No comments yet.