Analysts need to read BigQuery data in one project. Following IAM best practice, how should access be granted?
- Exam domain
- Designing for security and compliance~17.5% of the exam
- Difficulty
- Easy
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Identity and Access Management (IAM).
IAM design underpins all security.
Why D is the answer
Grant a predefined role with only the needed permissions to a Google group of analysts on that project
Least privilege uses the narrowest predefined or custom role, granted to groups at the lowest level that works.
How it works
IAM grants roles to principals on resources.
Predefined roles give narrower permissions than basic roles.
Granting to groups at the lowest needed level follows least privilege.
Clues in the question
The words that point to the answer, and what each one tells you.
- Read data in one project
- Narrow role, narrow scope.
In detail
- Basic roles, such as Owner and Editor, are very broad.
- Groups make joiners and leavers easy to manage.
Side by side with look-alikes
| Option | Least privilege? |
|---|---|
| Predefined role to group on project | Yes |
| Owner on organization | No |
| Shared account | No |
| Editor for domain | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Grant the basic Owner role to each analyst on the organizationWrong
Owner at the organization is far too broad.
B. Share one personal account among analystsWrong
Shared accounts break accountability.
C. Grant Editor to all users in the domainWrongMost tempting
Editor for everyone grants far too much.
Why it tempts: It is simple. But it grants far more than reading data.
D. Grant a predefined role with only the needed permissions to a Google group of analysts on that projectRight
Least privilege uses the narrowest predefined or custom role, granted to groups at the lowest level that works.
In practice
- Review role recommendations to remove unused permissions.