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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
Your enterprise stores sensitive sales and customer data in BigQuery. The dataset implements row-level security (RLS) to restrict sales data access based on each manager's region (SESSION_USER()), along with column-level security policy tags to mask personally identifiable information (PII).
You need to configure access for business intelligence (BI) visualization dashboards in Looker Studio so that multiple regional sales managers can view their respective metrics securely while strictly adhering to the principle of least privilege.
Which configuration should you implement?
Configure the visualization data source to use Viewer's credentials, and assign the basic Project Viewer role to the sales managers at the Google Cloud project level.
Configure the visualization data source to use Viewer's (OAuth) credentials, grant each manager the BigQuery Job User role on the query project, and grant the BigQuery Data Viewer role on the specific dataset.
Configure the visualization data source to use Owner's credentials backed by a user-managed service account, and assign the BigQuery Admin role to the service account.
Generate a JSON service account key with the BigQuery Data Viewer role, embed the key directly into the visualization tool connection string, and grant managers the BigQuery User role.
Configure the visualization data source to use Viewer's credentials, and assign the basic Project Viewer role to the sales managers at the Google Cloud project level.
Configure the visualization data source to use Viewer's (OAuth) credentials, grant each manager the BigQuery Job User role on the query project, and grant the BigQuery Data Viewer role on the specific dataset.
Viewer's Credentials (OAuth) require individual dashboard viewers to authenticate against Google Cloud BigQuery using their own identity rather than a shared service account. Combining this credential model with predefined IAM roles at specific resource hierarchy levels enforces least-privilege access and activates fine-grained security policies.
SESSION_USER(). This ensures that regional sales managers see only the rows authorized by the row-level security (RLS) policy.roles/bigquery.jobUser on the project provides only the ability to run query jobs without exposing data, while roles/bigquery.dataViewer is restricted specifically to the target dataset rather than the entire project or organization.bigquery.jobs.create) from dataset-level storage read permissions (bigquery.tables.getData).Using Owner's Credentials or a single service account bypasses user-specific row-level security and column-level policy tags because BigQuery sees only the service identity. Delegating the query context via Viewer's (OAuth) credentials with narrow dataset-scoped roles guarantees that security controls and least privilege are enforced natively at query execution time.
Configure the visualization data source to use Owner's credentials backed by a user-managed service account, and assign the BigQuery Admin role to the service account.
Generate a JSON service account key with the BigQuery Data Viewer role, embed the key directly into the visualization tool connection string, and grant managers the BigQuery User role.