You have one BigQuery dataset which includes customers' street addresses. You want to…
- User
You have one BigQuery dataset which includes customers' street addresses. You want to retrieve all occurrences of street addresses from the dataset. What should you do?
codeWrite a SQL query in BigQuery by using REGEXP_CONTAINS on all tables in your dataset to find rows where the word "street" appears. Create a deep inspection job on each table in your dataset with Cloud Data Loss Prevention and create an inspection template that includes the STREET_ADDRESS infoType. Create a discovery scan configuration on your organization with Cloud Data Loss Prevention and create an inspection template that includes the STREET_ADDRESS infoType. Create a de-identification job in Cloud Data Loss Prevention and use the masking transformation. - Assistant
To effectively and accurately retrieve all occurrences of street addresses from a BigQuery dataset, adopting a systematic approach to identify and process potentially sensitive data like addresses is recommended. This ensures compliance with privacy laws and regulations while handling data efficiently. Here’s the most suitable method from the provided options: