Google Cloud Associate Cloud Engineer — Question 280

You are managing the security configuration of your company’s Google Cloud organization. The Operations team needs specific permissions on both a Google Kubernetes Engine (GKE) cluster and a Cloud SQL instance. Two predefined Identity and Access Management (IAM) roles exist that contain a subset of the permissions needed by the team. You need to configure the necessary IAM permissions for this team while following Google-recommended practices. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because creating a custom IAM role that includes only the necessary permissions aligns with the principle of least privilege, which is a Google-recommended practice. Option A is incorrect because merging roles may provide unnecessary permissions. Option B does not follow the least privilege principle, and Option D grants broad permissions that may exceed the team's actual needs.