D2: Build-Time vs Runtime Secret Injection
Google Cloud Professional Cloud DevOps Engineer exam practice questions · 10 flashcards
Question
Build-time secret injection?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Build-Time vs Runtime Secret Injection practice questions and answers
- Build-time secret injection?Secrets available during build steps (e.g. private package tokens).
- Runtime secret injection?Secrets fetched or mounted when the app runs.
- Why prefer runtime injection for app secrets?Secrets aren't baked into images and can rotate without rebuild.
- Risk of build-time secrets in images?Secrets persist in image layers.
- Cloud Build secrets?availableSecrets with secretEnv in steps.
- Docker build secrets safely?BuildKit secret mounts, not ARG/ENV.
- Runtime on GKE?Secret Manager add-on or CSI driver.
- Runtime on Cloud Run?Secret Manager references.
- Rotation impact?Runtime injection picks up new versions.
- Detect leaked secrets in images?Scanning tools and reviews.