An organization is onboarding a database maintenance specialist who requires full operational control over Cloud SQL database instances—including modifying instance flags, restarting instances, and creating backups—within a target project named `finance-prod`. To satisfy strict compliance policies, the specialist must not be granted permissions to modify VPC network settings, manage project-level access controls, or access resources in adjacent environment projects. Which IAM role assignment strategy correctly fulfills these operational requirements while adhering to the principle of least privilege?
- Grant the Cloud SQL Admin (`roles/cloudsql.admin`) role to the specialist on the `finance-prod` project.Cevap
- BGrant the Editor (`roles/editor`) role to the specialist on the `finance-prod` project.
- CGrant the Cloud SQL Admin (`roles/cloudsql.admin`) role to the specialist at the parent Folder level containing all environment projects.
- DGrant the Owner (`roles/owner`) role to the specialist on the `finance-prod` project.
Cevap
Granting the predefined Cloud SQL Admin (`roles/cloudsql.admin`) role specifically on the `finance-prod` project.
The Cloud SQL Admin (`roles/cloudsql.admin`) role is a service-specific predefined role that contains all permissions needed to manage Cloud SQL instances, flags, and backups. Binding this role directly on the `finance-prod` project restricts access exclusively to Cloud SQL within that single project, perfectly aligning with the principle of least privilege without exposing VPC networking or IAM access controls.
Adım Adım Çözüm
Anahtar Kavram
Principle of Least Privilege using Predefined IAM Roles and Project-Level Scoping