🔥 40% Off Crucial Exams Memberships — Deal ends today!

44 minutes, 40 seconds remaining!

GCP Professional Data Engineer Practice Question

Your organization stores transaction data in BigQuery. The cc_number column holds 16-digit credit-card numbers. Analysts build Looker Studio dashboards that only need the last four digits, while internal auditors must see the complete value. Analysts should automatically receive a masked value such as --****-1234, and auditors should see the unmasked value without changing their SQL or reports. Enforcement must occur at query time with minimal ongoing maintenance. Which approach best meets these requirements?

  • Create an authorized view that uses REGEXP_REPLACE to redact the first 12 digits and give analysts access to the view while auditors query the base table directly.

  • Run a recurring Dataflow job that copies the table to a separate masked dataset for analysts and keep auditors pointed to the original dataset.

  • Attach a data masking policy tag that reveals only the last four digits to the cc_number column, grant analysts roles/bigquery.maskedReader on that tag, and grant auditors roles/bigquery.unmaskedReader (or higher) so they bypass the mask.

  • Enable column-level access control on cc_number and grant auditors the policy tag user role while denying analysts any policy-tag roles.

GCP Professional Data Engineer
Preparing and using data for analysis
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