Professional Cloud DevOps 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.
Your team is building a secure CI/CD pipeline using Cloud Build that packages containerized applications and deploys them to Google Kubernetes Engine (GKE). The pipeline has two distinct secret management requirements:
Which configuration strategy should you implement to satisfy both requirements?
This approach uses Secret Manager as the centralized secrets store while strictly separating build-time and runtime execution phases and identities, applying the principle of least privilege through granular Identity and Access Management (IAM) role assignments.
availableSecrets (with secretManager) in cloudbuild.yaml, the secret is exposed only to designated ephemeral build steps via secretEnv. The API key is consumed dynamically during compilation without persisting in the intermediate image layers or final container image artifact.roles/secretmanager.secretAccessor only for the private repository secret, while the application runtime service account is granted roles/secretmanager.secretAccessor only for the database secret.roles/secretmanager.secretAccessor at the individual secret level rather than project-wide.Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.