GCP Professional Data Engineer Practice Question

A multinational bank keeps all credit-card transactions in a single BigQuery table called finance_prod.payment_txn. The table contains the columns pan (primary account number), txn_amount, merchant_id, and region_code.

  • Members of the group [email protected] must be able to explore the data freely but must never see raw pan values.
  • Members of the group [email protected] need full access to pan, yet they should only view rows where region_code equals the geographic region (EU or US) assigned to them.
  • The security team requires that no data be copied or duplicated into additional tables or projects.
    Which approach best meets these requirements while honoring the principle of least privilege?
  • Move payment_txn into a separate dataset; create a duplicate dataset without the pan column for data scientists and use dataset-level IAM to control access; no row-level filters are applied.

  • Enable Customer-Managed Encryption Keys (CMEK) on payment_txn, grant the Viewer role on the dataset to [email protected], and the BigQuery Data Viewer role to [email protected]; rely on CMEK to protect sensitive data.

  • Tag the pan column with a Data Catalog policy tag and grant only [email protected] the Fine-Grained Reader role on that tag; add a row-level access policy on payment_txn filtering by region_code for each audit region; publish an authorized view that omits pan and grant [email protected] access to the view.

  • Create two new tables, one per region, each containing all columns; mask pan with SHA256() in views for [email protected], and grant auditors direct access to both regional tables.

GCP Professional Data Engineer
Designing data processing systems
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot