Google Cloud Professional Data Engineer — Question 218

You are preparing an organization-wide dataset. You need to preprocess customer data stored in a restricted bucket in Cloud Storage. The data will be used to create consumer analyses. You need to comply with data privacy requirements.

What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because it utilizes Dataflow and the Cloud Data Loss Prevention API to effectively mask sensitive data, ensuring compliance with privacy requirements while writing the processed data to BigQuery. Options B and D involve encryption rather than data masking, which does not meet the specific requirement of preprocessing for consumer analysis. Option C, while similar, does not mask data but removes sensitive fields instead, which might not suffice for the intended analysis.