Professional Cloud Security Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An enterprise uses an external continuous deployment (CD) pipeline to deploy build artifacts into a specific Google Cloud Storage bucket (bucket-prod-artifacts). The designated service account (deployer-sa@project-id.iam.gserviceaccount.com) has the Storage Object Admin role at the project level.
To adhere to least-privilege security principles, the security engineer must implement a solution that fulfills the following requirements:
deployer-sa.bucket-prod-artifacts, preventing access to any other buckets.Which strategy should the security engineer implement?
This solution combines Workload Identity Federation with Service Account Impersonation and Token Downscoping using Credential Access Boundaries to enforce strict least-privilege access for external workloads.
roles/iam.workloadIdentityUser directly on deployer-sa to a specific principal identifier (principal://iam.googleapis.com/.../subject/PIPELINE_ID) ensures that only the authorized external CI/CD workflow can impersonate the service account.deployer-sa has broad project-level permissions, the downscoped token is mathematically and logically restricted to interact only with bucket-prod-artifacts and execute only the specified storage actions.Using roles/iam.workloadIdentityUser on the service account combined with token downscoping represents the architectural best practice for external CI/CD systems interacting with sensitive cloud resources. It decouples high-level service account grants from runtime execution privileges.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.