Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Professional Cloud DevOps Engineer practice bank has 1,455 more like it. Try 10 free: instant score, no account.
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?
Build-time secret baking retrieves credentials from Secret Manager during the CI build process and writes them directly into configuration files or binaries that are packaged inside the resulting container image.
The application ran in a completely disconnected, offline air-gapped system where dynamic network retrieval of secrets from an external secrets manager at container startup was technically impossible.
Multi-stage Docker builds allow developers to use intermediate container stages to perform compilation or artifact generation using sensitive credentials (such as private repository tokens), copying only the compiled binary to the final lean image.
The core problem was strictly securing build-time dependency fetching from private registries during compilation, rather than managing runtime environment credentials and rotation.
This pattern involves storing encrypted ciphertext files inside version control and embedding cryptographic keys or decryption logic into the container base image so that the application can decrypt the bundle when starting up.
The deployment platform strictly required static, offline decryption mechanisms and utilized external, non-embedded hardware security modules (HSM) rather than embedding keys directly in base images.
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.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated