PROFESSIONAL-DATA-ENGINEER · Question #354
You have a BigQuery dataset named "customers". All tables will be tagged by using a Data Catalog tag template named "gdpr". The template contains one mandatory field, "has_sensitive_data", with a…
The correct answer is C. Create the "gdpr" tag template with public visibility. Assign the bigquery.dataViewer role to the HR group on the tables that contain sensitive data. Option C is correct because creating the tag template with public visibility allows all authenticated users in the organization to search Data Catalog using that template's fields without any additional IAM grants - directly satisfying the all-employees search requirement with…
Question
Options
- ACreate the "gdpr" tag template with private visibility. Assign the bigquery.dataViewer role to the HR group on the tables that contain sensitive data.
- BCreate the "gdpr" tag template with private visibility. Assign the datacatalog.tagTemplateViewer role on this tag to the all employees group, and assign the
- CCreate the "gdpr" tag template with public visibility. Assign the bigquery.dataViewer role to the HR group on the tables that contain sensitive data.
- DCreate the "gdpr" tag template with public visibility. Assign the datacatalog.tagTemplateViewer role on this tag to the all employees group, and assign the
How the community answered
(43 responses)- A12% (5)
- B2% (1)
- C79% (34)
- D7% (3)
Explanation
Option C is correct because creating the tag template with public visibility allows all authenticated users in the organization to search Data Catalog using that template's fields without any additional IAM grants - directly satisfying the all-employees search requirement with zero extra configuration. Assigning bigquery.dataViewer to the HR group only on the sensitive tables then restricts actual data access to HR, fulfilling the second requirement cleanly.
Option A is wrong because private visibility requires you to explicitly grant datacatalog.tagTemplateViewer to every employee (or the all-employees group) so they can see and search by the tag - that's an extra IAM assignment that public visibility makes unnecessary, increasing overhead.
Options B and D are wrong because they both assign datacatalog.tagTemplateViewer to the all-employees group: with private visibility (B) this is a required but avoidable step; with public visibility (D) it is entirely redundant since public already covers it. Both add unnecessary configuration.
Memory tip: Think of tag template visibility like a Google Doc - "public" means anyone in the org can read it without being explicitly added, while "private" means you must invite each person. When the goal is minimize overhead and everyone needs search access, public visibility is the obvious choice.
Topics
Community Discussion
No community discussion yet for this question.