
Answer-first summary for fast verification
Answer: Grant the developers the Source Repository Writer role at Repo level
The correct answer is to grant the developers the Source Repository Writer role at the Repo level. This approach follows the principle of least privilege by providing only the necessary permissions to list, clone, fetch, and update repositories without granting excessive access. Other options either provide too much access (admin roles at project or repo level) or insufficient permissions (reader role), which do not align with the least privilege best practice.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company has deployed all its Cloud Source Repositories in a separate GCP Project. You are tasked with granting developers in the dev Project access to commit code to the dev repository in that Project, following Google's best practice of least privilege. How would you proceed?
A
Grant the developers the Source Repository Admin role at the Repo level
B
Grant the developers the Source Repository Reader role at Project level
C
Grant the developers the Source Repository Admin role at Project level
D
Grant the developers the Source Repository Writer role at Repo level
No comments yet.