professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A healthcare analytics platform ingests tabular patient data through a streaming ingestion pipeline into BigQuery for visualization in Looker dashboards. To comply with privacy regulations, you must configure Cloud Data Loss Prevention (Cloud DLP / Sensitive Data Protection) to conditionally sanitize incoming records.
Specifically, you need to configure a de-identification pipeline where:
PATIENT and FACTOID fields are inspected for PERSON_NAME infoTypes.[PERSON_NAME].AGE field is greater than 89.How should you structure the DeidentifyConfig for this ingestion pipeline?
This solution uses Cloud DLP's structured tabular de-identification capabilities within DeidentifyConfig, specifically using RecordTransformations and FieldTransformations with a RecordCondition.
FieldId entries for PATIENT and FACTOID within FieldTransformation ensures that de-identification inspection is scoped precisely to the relevant columns.infoTypeTransformations with PERSON_NAME and applying a primitive transformation of ReplaceWithInfoTypeConfig replaces matching personal names with the infoType label [PERSON_NAME].RecordCondition with a relational operator of GREATER_THAN on the AGE field (value 89) ensures the transformation executes only on rows meeting the compliance threshold while leaving others unaltered.Table objects without requiring unnesting or flat string concatenation.This approach directly leverages Cloud DLP's native conditional record evaluation without requiring custom conditional routing code in the ingestion pipeline, ensuring consistent policy enforcement directly at the data protection layer.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.