An organization is onboarding a database administrator who is responsible for creating, modifying, and managing Cloud Spanner instances and databases within a specific development Google Cloud project. The administrator must not be granted permissions to manage IAM access policies or administer other unrelated cloud services in the project. Following the principle of least privilege, which IAM role should you grant to the administrator at the project level?
- Cloud Spanner Admin (roles/spanner.admin)Answer
- BEditor (roles/editor)
- COwner (roles/owner)
- DCloud Spanner Admin (roles/spanner.admin) at the parent Folder level
Answer
Grant the Cloud Spanner Admin (roles/spanner.admin) predefined role at the project level.
The Cloud Spanner Admin (roles/spanner.admin) predefined role provides complete access to manage Cloud Spanner instances and databases while strictly adhering to the principle of least privilege. Bound at the project level, it grants only the necessary privileges required for Cloud Spanner operations without opening permissions to other GCP services or allowing IAM policy modifications.
Step-by-Step Solution
Key Concept
Principle of Least Privilege and Role Scoping in GCP IAM