Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Data Engineer All Questions

View all questions & answers for the Professional Data Engineer exam

Exam Professional Data Engineer topic 1 question 118 discussion

Actual exam question from Google's Professional Data Engineer
Question #: 118
Topic #: 1
[All Professional Data Engineer Questions]

You need to set access to BigQuery for different departments within your company. Your solution should comply with the following requirements:
✑ Each department should have access only to their data.
✑ Each department will have one or more leads who need to be able to create and update tables and provide them to their team.
✑ Each department has data analysts who need to be able to query but not modify data.
How should you set access to the data in BigQuery?

  • A. Create a dataset for each department. Assign the department leads the role of OWNER, and assign the data analysts the role of WRITER on their dataset.
  • B. Create a dataset for each department. Assign the department leads the role of WRITER, and assign the data analysts the role of READER on their dataset.
  • C. Create a table for each department. Assign the department leads the role of Owner, and assign the data analysts the role of Editor on the project the table is in.
  • D. Create a table for each department. Assign the department leads the role of Editor, and assign the data analysts the role of Viewer on the project the table is in.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
juliobs
Highly Voted 1 year, 8 months ago
Old question. It's done using IAM nowadays: bigquery.dataEditor and bigquery.dataViewer
upvoted 11 times
...
AWSandeep
Highly Voted 2 years, 2 months ago
Selected Answer: B
B. Create a dataset for each department. Assign the department leads the role of WRITER, and assign the data analysts the role of READER on their dataset.
upvoted 8 times
...
SamuelTsch
Most Recent 1 month ago
Selected Answer: D
No writer, reader role
upvoted 1 times
...
mothkuri
8 months, 3 weeks ago
Selected Answer: D
WRITER role is not there in roles of BigQuery table/dataset
upvoted 1 times
...
Kalai_1
11 months, 1 week ago
Answer : D. There is no role called WRITER or READER as preliminary role.
upvoted 1 times
...
forepick
1 year, 5 months ago
Selected Answer: B
both C & D violate the principle of least privilege. A talks about OWNER and WRITER roles, and the analyst doesn't need a writer role. So we're left with B.
upvoted 1 times
...
Joane_
1 year, 7 months ago
Selected Answer: D
https://cloud.google.com/bigquery/docs/access-control#bigquery
upvoted 1 times
...
midgoo
1 year, 8 months ago
Selected Answer: B
B - Lead needs to have the role to create tables and also Analyst only need to read
upvoted 1 times
...
musumusu
1 year, 9 months ago
Answer B: Why not D, mentioned in question: Data lead will create tables in dataset. Imagine, other department leads are creating unnecessory tables in shared dataset and you are struggling to find your tables as everyday there are some new tables. Headache right ? better to give them seperate dataset and do whatever you want in that dataset.
upvoted 5 times
...
xj_kevin
1 year, 9 months ago
Vote B, both BD can fullfill the job requirement but B is on dataset level and D on project level. "By default, granting access to a project also grants access to datasets within it." D may issue unnecessary accesses to other content in the project.
upvoted 3 times
...
desertlotus1211
1 year, 10 months ago
Interestingly enough - I know believe the answer is A... Deleting is not the same as modify...
upvoted 1 times
...
desertlotus1211
1 year, 10 months ago
Answer is B: https://cloud.google.com/bigquery/docs/access-control The question ask for the lead to be able to: CREATE, UPDATE, and SHARE with the team... BigQuery Data Owner can do that (roles/bigquery.dataOwner) When applied to a table or view, this role provides permissions to: Read and update data and metadata for the table or view. Share the table or view. Delete the table or view. Editor cannot do that. Thoughts?
upvoted 1 times
desertlotus1211
1 year, 10 months ago
I apologize - I thought B said Owner... This questions makes no sense now...
upvoted 1 times
...
...
odacir
1 year, 11 months ago
Selected Answer: D
It's D, because this is an outdated question, before IAM you cannot set Editor to a dataset; but the best practice is: Create a dataset for each department. Assign the department leads the role of EDITOR(NOT OWNER), and assign the data analysts the role of READER on their dataset.
upvoted 2 times
jkhong
1 year, 11 months ago
Dude, I know there are updates to IAM, but the key point of the question is to have the leads have table creation and update roles... So they already need roles at the dataset level and hence C and D is out. We wouldn't be able to memorise all the roles, but clearly we cannot provide access on a table level...
upvoted 7 times
Wonka87
1 year, 11 months ago
and to supplement why does it need viewer role on the project the table is in?
upvoted 1 times
...
...
...
Atnafu
2 years ago
Wow B is an answer https://cloud.google.com/bigquery/docs/access-control-basic-roles#dataset-basic-roles
upvoted 4 times
...
MisuLava
2 years ago
Selected Answer: D
It CANNOT BE B BECAUSE OF : Caution: BigQuery's dataset-level basic roles existed prior to the introduction of IAM. We recommend that you minimize the use of basic roles. In production environments, don't grant basic roles unless there is no alternative. Instead, use predefined IAM roles. https://cloud.google.com/bigquery/docs/access-control-basic-roles
upvoted 2 times
desertlotus1211
1 year, 10 months ago
Ummm owner is a predefined role https://cloud.google.com/bigquery/docs/access-control BigQuery Data Owner (roles/bigquery.dataOwner)
upvoted 1 times
...
...
josrojgra
2 years, 1 month ago
Selected Answer: B
I vote B because C and D says that the role is on the project that the table is in, this mean that the role is at the project level that implies that: If you create a dataset in a project that contains any editors, BigQuery grants those users the bigquery.dataEditor predefined role for the new dataset. (from https://cloud.google.com/bigquery/docs/access-control-basic-roles#project-basic-roles) A can't not be because the analysts, in this case, can access the data. B grant to the leads update their datasets, that's mean create tables, and the analysts only read their datasets.
upvoted 3 times
...
VipinSingla
2 years, 1 month ago
Selected Answer: D
https://cloud.google.com/bigquery/docs/access-control-basic-roles Caution: BigQuery's dataset-level basic roles existed prior to the introduction of IAM. We recommend that you minimize the use of basic roles. In production environments, don't grant basic roles unless there is no alternative. Instead, use predefined IAM roles.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...