
Answer-first summary for fast verification
Answer: Grant the developers the Source Repository Writer role at Repo level
Option B is correct because it grants permissions at the repository level, allowing developers to list, clone, fetch, and update repositories, which aligns with the principle of least privilege. Option A is incorrect as it only provides read access. Options C and D are too permissive, granting admin privileges that exceed the necessary permissions for committing code.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your company has deployed all its Cloud Source Repositories in a separate GCP Project. You need to grant developers in the 'dev' Project access to commit code to the 'dev' repository in that Project, adhering to Google’s best practice of least privilege. What is the best way to achieve this?
A
Grant the developers the Source Repository Reader role at Project level
B
Grant the developers the Source Repository Writer role at Repo level
C
Grant the developers the Source Repository Admin role at Project level
D
Grant the developers the Source Repository Admin role at Repo level