Practice Test 1 | Google Cloud Certified Professional Cloud DevOps Engineer | Dumps | Mock Test
Your company has deployed all its Cloud Source Repositories in a separate GCP Project. You have been tasked with granting permissions developers in the dev Project access to commit code to the dev repository in that Project.
How can you achieve this according to Google’s best practice of least privilege?
A. Grant the developers the Source Repository Admin role at Project level
B. Grant the developers the Source Repository Writer role at Repo level
C. Grant the developers the Source Repository Reader role at Project level
D. Grant the developers the Source Repository Admin role at Repo level
Correct Answer: B
- Option A is incorrect. This is too permissive, does not follow least privilege best practice and grants access to all the repos in that Project.
- Option B is CORRECT. This grants permissions at the repo level to list, clone, fetch and update repositories.
- Option C is incorrect. This does not give permissions to update repositories.
- Option D is incorrect. This is too permissive and does not follow least privilege best practice.
Reference:
Comments are closed, but trackbacks and pingbacks are open.