Google Cloud Associate Cloud Engineer — Question 248

Your company is moving its continuous integration and delivery (CI/CD) pipeline to Compute Engine instances. The pipeline will manage the entire cloud infrastructure through code. How can you ensure that the pipeline has appropriate permissions while your system is following security best practices?

Answer options

Correct answer: D

Explanation

The correct answer is D because creating separate service accounts for each pipeline helps maintain a principle of least privilege, ensuring that each account has only the necessary permissions. Option A is less secure as it combines permissions into one account, while options B and C do not effectively address the need for minimal permissions across multiple pipelines.