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.
An enterprise DevOps team is redesigning their continuous delivery pipeline on Google Cloud for a microservices application deployed to Google Kubernetes Engine (GKE). Currently, the pipeline passes environment-specific API keys and database credentials during the Cloud Build phase using build arguments, creating separate container images for development, staging, and production.
The team must eliminate secret exposure risks in Artifact Registry layers and build logs, maintain environment consistency by promoting an identical immutable artifact through all stages, and support rapid rollbacks and secret rotation without rebuilding images.
Which secret management and pipeline strategy should the team adopt?
Runtime secret injection decouples application configuration and sensitive credentials from the application build artifact. Instead of embedding credentials during compilation or image creation, the CI/CD pipeline produces a single, immutable container image that reads secrets dynamically when the container launches or executes in the target runtime environment (such as Google Kubernetes Engine).
Runtime injection satisfies the Twelve-Factor App methodology by completely separating config and credentials from code, ensuring zero credential leakage in image registries while maximizing operational deployment velocity.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.