Question 307 of 500
Ensuring data protectionhardMultiple ChoiceObjective-mapped

Quick Answer

The answer is to apply policy tags with data masking policies to PII columns and assign the tag to the analyst role. This approach is correct because BigQuery’s data masking with policy tags allows you to define column-level security rules that automatically mask sensitive data at query time based on a user’s role, without altering the underlying table. By attaching a masking policy to a policy tag and then applying that tag to PII columns, you ensure that users with the ‘analyst’ role see masked data, while ‘admin’ users—who typically have higher-level IAM permissions like BigQuery Data Owner—see the full data by default. On the Google Professional Cloud Security Engineer exam, this scenario tests your understanding of how BigQuery’s fine-grained access control differs from simple IAM roles; a common trap is to confuse policy tags with classification labels or to assume masking requires separate views. Remember the key distinction: policy tags enforce masking, while IAM roles grant access to the tag itself. Memory tip: “Tag it, mask it, role it”—policy tags define the mask, and the role determines who sees through it.

PCSE Ensuring data protection Practice Question

This PCSE practice question tests your understanding of ensuring data protection. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A security engineer needs to protect sensitive data in BigQuery. The data includes columns with personally identifiable information (PII). They want to automatically mask PII data for users with the role 'analyst' but allow full access for 'admin' users. Which approach should they use?

Question 1hardmultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Apply policy tags with data masking policies to PII columns and assign the tag to the analyst role.

Option D is correct because BigQuery's policy tags with data masking policies allow you to automatically mask sensitive columns (e.g., PII) at query time based on the user's role. You assign a masking policy to the policy tag, then attach that tag to the PII columns. By granting the 'analyst' role access to the tag with the masking rule applied, analysts see masked data, while 'admin' users (who have higher-level IAM permissions) see the full data without additional configuration.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use VPC Service Controls to restrict access to the dataset.

    Why it's wrong here

    VPC Service Controls do not provide data masking capabilities.

  • Create authorized views that exclude PII columns for the analyst role.

    Why it's wrong here

    Authorized views require creating separate views and do not automatically mask data.

  • Use column-level access control via IAM roles to deny access to PII columns for analysts.

    Why it's wrong here

    Column-level access control only grants or denies access entirely, not masking.

  • Apply policy tags with data masking policies to PII columns and assign the tag to the analyst role.

    Why this is correct

    Policy tags with masking policies can dynamically mask data based on user's role.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the distinction between column-level access control (which can only hide or deny columns) and data masking (which can partially obscure data while still allowing access), leading candidates to mistakenly choose option C.

Detailed technical explanation

How to think about this question

Under the hood, BigQuery data masking uses policy tags that are managed through Data Catalog. When a masking policy (e.g., 'Default Masking Rule' that replaces values with '****') is applied to a policy tag, any user who has the `roles/bigquery.dataViewer` on the dataset but is assigned the tag with the masking rule will see masked output. The masking is applied at query execution time by the BigQuery engine, so the underlying data remains unchanged in storage. A real-world scenario is a healthcare dataset where patient names must be partially masked for analysts but fully visible to administrators; policy tags with masking achieve this without duplicating data.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related PCSE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PCSE practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PCSE question test?

Ensuring data protection — This question tests Ensuring data protection — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Apply policy tags with data masking policies to PII columns and assign the tag to the analyst role. — Option D is correct because BigQuery's policy tags with data masking policies allow you to automatically mask sensitive columns (e.g., PII) at query time based on the user's role. You assign a masking policy to the policy tag, then attach that tag to the PII columns. By granting the 'analyst' role access to the tag with the masking rule applied, analysts see masked data, while 'admin' users (who have higher-level IAM permissions) see the full data without additional configuration.

What should I do if I get this PCSE question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on PCSE

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company uses BigQuery to store sensitive data and wants to implement data masking using policy tags. They have three user groups: data_engineers (full access), data_analysts (masked PII), and data_scientists (masked financial data). Which THREE steps should they take?

hard
  • A.Publish the taxonomy to make the policy tags available for use.
  • B.Create a taxonomy in Cloud Data Catalog with policy tags for PII and financial data.
  • C.Apply only one policy tag per column.
  • D.Enable Cloud Audit Logs to track policy tag usage.
  • E.Define data masking rules using BigQuery's conditional access on the policy tags.

Why A: Option A is correct because after creating a taxonomy with policy tags in Cloud Data Catalog, you must publish the taxonomy to make those policy tags available for use in BigQuery. Publishing associates the taxonomy with the project and allows BigQuery to enforce data masking rules based on the policy tags applied to columns.

Keep practising

More PCSE practice questions

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This PCSE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCSE exam.