Bird
0
0

Given the following Policy Troubleshooter output snippet:

medium📝 service behavior Q13 of 15
GCP - Cloud IAM Advanced
Given the following Policy Troubleshooter output snippet:
{"access": "GRANTED", "reasons": ["User has role roles/viewer on project"]}

What does this output mean?
AThe user is denied access because no role matches
BThe user has access because they have the viewer role on the project
CThe user has access but only to storage buckets
DThe output is invalid and shows an error
Step-by-Step Solution
Solution:
  1. Step 1: Interpret the access field

    The field "access": "GRANTED" means the user is allowed access.
  2. Step 2: Understand the reason given

    The reason states the user has the role "roles/viewer" on the project, which grants read access.
  3. Final Answer:

    The user has access because they have the viewer role on the project -> Option B
  4. Quick Check:

    Access GRANTED with viewer role = B [OK]
Quick Trick: Look for 'access: GRANTED' and role in reasons [OK]
Common Mistakes:
  • Confusing GRANTED with denied access
  • Assuming access is limited to storage only
  • Thinking the output is an error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes